New issue
Advanced search Search tips

Issue 615871 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug

Blocked on:
issue 514920

Blocking:
issue 671916


Participants' hotlists:
MacViews-Task-Queue


Sign in to add a comment

MacViews: SadTab should use a views::View, not an NSView

Reported by k...@yandex-team.ru, May 30 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36

Steps to reproduce the problem:
1. Run MacViews browser, open some tabs.
2. Kill one of the tabs in task manager.

What is the expected behavior?
1. SadTabView opens instead tab and looks good.

What went wrong?
SadTabView positioned incorrect and does not change size according to browser frame.

Did this work before? N/A 

Chrome version: 51.0.2704.63  Channel: dev
OS Version: OS X 10.11.3
Flash Version: Shockwave Flash 21.0 r0
 

Comment 1 by meh...@chromium.org, May 30 2016

Labels: Proj-MacViews
Owner: tapted@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 4 by tapted@chromium.org, Dec 12 2016

Blocking: 671916

Comment 5 by varkha@chromium.org, Mar 24 2017

This seems fixed in #2. tapted@, flip the status or is there more work needed?
Labels: MacViews-Browser

Comment 7 by tapted@chromium.org, Apr 12 2017

Labels: -Pri-2 Pri-3
#c2 uses sad_tab_view_cocoa.mm but in the long term we _should_ be using sad_tab_view.cc -- i.e. a views::View, not an NSView.

But it can wait. Might not even need to block MacViews-Browser, but it will probably block what comes after.

Comment 8 by tapted@chromium.org, Apr 13 2017

Blockedon: 514920

Comment 9 by tapted@chromium.org, Apr 13 2017

Summary: MacViews: SadTab should use a views::View, not an NSView (was: MacViews: SadTab is broken.)
retitling
Project Member

Comment 10 by bugdroid1@chromium.org, Aug 16 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/68757f797cf6d990699503d1a47be59b42e109dc

commit 68757f797cf6d990699503d1a47be59b42e109dc
Author: jongkwon.lee <jongkwon.lee@navercorp.com>
Date: Wed Aug 16 08:04:13 2017

Use sad_tab_view.cc on MacViews

Implemented NativeWidgetPrivate::ReparentNativeView() to use
sad_tab_view.cc instead of sad_tab_view_cocoa.mm on MacViews.
BridgedContentView handles the reparented behavior.

Bug:  615871 ,  514920 
Change-Id: I2d5bc45cc1c63ad7bfcdeee1d5ac7d5ee3c7da2d
Reviewed-on: https://chromium-review.googlesource.com/605028
Commit-Queue: Simon Hong <simonhong@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Michael Wasserman <msw@chromium.org>
Reviewed-by: Trent Apted <tapted@chromium.org>
Cr-Commit-Position: refs/heads/master@{#494722}
[modify] https://crrev.com/68757f797cf6d990699503d1a47be59b42e109dc/AUTHORS
[modify] https://crrev.com/68757f797cf6d990699503d1a47be59b42e109dc/chrome/browser/ui/BUILD.gn
[modify] https://crrev.com/68757f797cf6d990699503d1a47be59b42e109dc/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.h
[modify] https://crrev.com/68757f797cf6d990699503d1a47be59b42e109dc/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm
[add] https://crrev.com/68757f797cf6d990699503d1a47be59b42e109dc/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views_mac.h
[add] https://crrev.com/68757f797cf6d990699503d1a47be59b42e109dc/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views_mac.mm
[modify] https://crrev.com/68757f797cf6d990699503d1a47be59b42e109dc/content/browser/web_contents/web_contents_view_mac.mm
[modify] https://crrev.com/68757f797cf6d990699503d1a47be59b42e109dc/ui/views/cocoa/bridged_content_view.mm
[modify] https://crrev.com/68757f797cf6d990699503d1a47be59b42e109dc/ui/views/cocoa/bridged_native_widget.mm
[modify] https://crrev.com/68757f797cf6d990699503d1a47be59b42e109dc/ui/views/view_unittest.cc
[modify] https://crrev.com/68757f797cf6d990699503d1a47be59b42e109dc/ui/views/widget/native_widget_mac.mm
[modify] https://crrev.com/68757f797cf6d990699503d1a47be59b42e109dc/ui/views/widget/native_widget_mac_unittest.mm

Cc: jongkwon...@navercorp.com tapted@chromium.org
Owner: ----
Status: Fixed (was: Assigned)
Thanks for the fix!

Sign in to add a comment