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

Issue 6992018: Address bar is shown on pop-out extension windows. (Closed)

Created:
9 years, 7 months ago by prasadt
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Address bar is shown on pop-out extension windows. The code path for window.open() call from extensions is not setting the app_name_ on the browser instance which is causing the location bar to be displayed. This is a regression from "Cleanup popup related browser navigation code." - svn://svn.chromium.org/chrome/trunk/src@83399 BUG=83692 TEST=Invoke window.open() from an extension background page. There should be no location bar displayed. modified: chrome/browser/extensions/extension_host.cc modified: chrome/browser/ui/browser_navigator.cc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86768

Patch Set 1 #

Patch Set 2 : Added tests. #

Total comments: 4

Patch Set 3 : Code review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -1 line) Patch
M chrome/browser/extensions/extension_host.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/window_open_apitest.cc View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_navigator.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_navigator_browsertest.cc View 1 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/window_open/browser_is_app/background.html View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/window_open/browser_is_app/content.html View 1 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/window_open/browser_is_app/manifest.json View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
prasadt
Is there some test that I can extend to add coverage for this? The test ...
9 years, 7 months ago (2011-05-24 04:18:20 UTC) #1
stevenjb
LGTM We should at least add tests to browser_navigator_browsertest.cc to test that setting params.extension_app_id results ...
9 years, 7 months ago (2011-05-24 20:39:29 UTC) #2
Mihai Parparita -not on Chrome
We have some tests for extension window.open behavior: http://www.google.com/codesearch/p?hl=en#OAMlx_jo-ck/src/chrome/browser/extensions/extension_browsertests_misc.cc&q=windowopen%20file:browsertest%20file:extension&exact_package=chromium&l=613 Mihai On Tue, May 24, 2011 ...
9 years, 7 months ago (2011-05-24 21:45:47 UTC) #3
prasadt
On 2011/05/24 20:39:29, Steven Bennetts wrote: > LGTM > > We should at least add ...
9 years, 7 months ago (2011-05-25 03:02:39 UTC) #4
prasadt
On 2011/05/24 21:45:47, Mihai Parparita wrote: > We have some tests for extension window.open behavior: ...
9 years, 7 months ago (2011-05-25 03:06:15 UTC) #5
Erik does not do reviews
http://codereview.chromium.org/6992018/diff/3001/chrome/browser/extensions/extension_host.cc File chrome/browser/extensions/extension_host.cc (right): http://codereview.chromium.org/6992018/diff/3001/chrome/browser/extensions/extension_host.cc#newcode589 chrome/browser/extensions/extension_host.cc:589: params.extension_app_id = extension_id_; I forget the semantics of ShowCreatedWindow ...
9 years, 7 months ago (2011-05-25 15:13:03 UTC) #6
prasadt
http://codereview.chromium.org/6992018/diff/3001/chrome/browser/extensions/extension_host.cc File chrome/browser/extensions/extension_host.cc (right): http://codereview.chromium.org/6992018/diff/3001/chrome/browser/extensions/extension_host.cc#newcode589 chrome/browser/extensions/extension_host.cc:589: params.extension_app_id = extension_id_; On 2011/05/25 15:13:03, Erik Kay wrote: ...
9 years, 7 months ago (2011-05-25 17:53:00 UTC) #7
Erik does not do reviews
LGTM
9 years, 7 months ago (2011-05-25 19:23:38 UTC) #8
stevenjb
LGTM
9 years, 7 months ago (2011-05-25 21:16:34 UTC) #9
Mihai Parparita -not on Chrome
9 years, 7 months ago (2011-05-26 00:11:29 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld 408576698