Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Issue 1248183004: [Mac] added support for show as tab on popups, similar behavior that exists in windows in which rep…

Created:
5 years, 5 months ago by bryjeep
Modified:
5 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac] added support for show as tab on popups, similar behavior that exists in windows in which replaces 'New Tab' with 'Show as tab' except now in file menu instead of right click on menu bar BUG=43953 TEST=Start Chrome and go to some website to launch a popup. Can easily make a test with <a href="JavaScript:newPopup('about:blank');">Test</a>. The new popup should have 'Show as Tab' instead of 'New Tab' in the File menu where all other windows should behave as normal. When clicking the 'Show as Tab' it should create a new window with it as a tab which can be dragged into the original window, which is the same behaviour as on Window.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -0 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/app/nibs/MainMenu.xib View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (3 generated)
bryjeep
I have added avi@chromium.org as blame shows he made modifications to a nearby section and ...
5 years, 5 months ago (2015-07-22 22:23:08 UTC) #2
Avi (use Gerrit)
5 years, 5 months ago (2015-07-23 00:50:21 UTC) #5
On 2015/07/22 22:23:08, bryjeep wrote:
> I have added mailto:avi@chromium.org as blame shows he made modifications to a
nearby
> section and /chrome/browser/ui/cocoa/OWNERS shows him in the list. This is my
> first contribution so let me know anything else I need to do.
> 
> I see that in /chrome/app/OWNERS  that I need to file a bug with google to get
> the string approved as I followed the convention that the rest of the MAC
cocoa
> code and created a IDS_SHOW_AS_TAB_MAC like all the IDS_*_MAC but it same
string
> as other platform so will also do that.

I asked for UI review on your bug.

Some issues. First, I googled up a page that opened popups to test it, and every
time I tried to do the window conversion it worked but both tabs immediately
crashed. I can't repro again, but can you test this?

Second:
- Open a page that has a popup link
- Click it to make a popup
- Close the original page
- Close the popup (without converting it)

That leaves the "convert to tab" in the file menu.

Powered by Google App Engine
This is Rietveld 408576698