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

Issue 10012053: Don't recreate background windows when allow_js_access if false (Closed)

Created:
8 years, 8 months ago by Mihai Parparita -not on Chrome
Modified:
8 years, 8 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip+watch_chromium.org, psolderitsch_google.com, dbk_google.com
Visibility:
Public.

Description

Don't recreate background windows when allow_js_access if false Ignore calls to window.open(..., "background") with allow_js_access: false when there's already a BackgroundContents instance. BUG=122408 R=creis@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131370

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -6 lines) Patch
M chrome/browser/extensions/app_background_page_apitest.cc View 1 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/api_test/app_background_page/no_js/bg.html View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/app_background_page/no_js/test.js View 1 3 chunks +32 lines, -3 lines 1 comment Download

Messages

Total messages: 15 (0 generated)
Mihai Parparita -not on Chrome
8 years, 8 months ago (2012-04-06 21:04:49 UTC) #1
Mihai Parparita -not on Chrome
http://codereview.chromium.org/10012053/diff/1/chrome/test/data/extensions/api_test/app_background_page/no_js/test.js File chrome/test/data/extensions/api_test/app_background_page/no_js/test.js (right): http://codereview.chromium.org/10012053/diff/1/chrome/test/data/extensions/api_test/app_background_page/no_js/test.js#newcode71 chrome/test/data/extensions/api_test/app_background_page/no_js/test.js:71: // We wait for a bit before declaring the ...
8 years, 8 months ago (2012-04-06 21:10:05 UTC) #2
Charlie Reis
Seems reasonable to me, but I wonder if we do want to notify the page ...
8 years, 8 months ago (2012-04-06 21:55:23 UTC) #3
Mihai Parparita -not on Chrome
+Peter and David, who are the representative developers in this case. Do you guys have ...
8 years, 8 months ago (2012-04-06 22:18:25 UTC) #4
Mihai Parparita -not on Chrome
https://chromiumcodereview.appspot.com/10012053/diff/1/chrome/browser/extensions/app_background_page_apitest.cc File chrome/browser/extensions/app_background_page_apitest.cc (right): https://chromiumcodereview.appspot.com/10012053/diff/1/chrome/browser/extensions/app_background_page_apitest.cc#newcode150 chrome/browser/extensions/app_background_page_apitest.cc:150: // window.open calls recreate instances, instead of being no-ops) ...
8 years, 8 months ago (2012-04-06 22:22:09 UTC) #5
psolderitsch_google.com
On Fri, Apr 6, 2012 at 6:18 PM, Mihai Parparita <mihaip@chromium.org> wrote: > +Peter and ...
8 years, 8 months ago (2012-04-06 22:36:57 UTC) #6
dbk_google.com
I have nothing to add, I think Peter's proposed approach is fine. -Dave On Fri, ...
8 years, 8 months ago (2012-04-07 00:59:31 UTC) #7
Charlie Reis
Ok. If we don't need the notification, the overhead of adding it for the test ...
8 years, 8 months ago (2012-04-07 01:06:03 UTC) #8
Mihai Parparita -not on Chrome
+Scott for browser/ui OWNERS
8 years, 8 months ago (2012-04-07 01:37:47 UTC) #9
Andrew T Wilson (Slow)
drive-by: LGTM with one nit https://chromiumcodereview.appspot.com/10012053/diff/2002/chrome/test/data/extensions/api_test/app_background_page/no_js/test.js File chrome/test/data/extensions/api_test/app_background_page/no_js/test.js (right): https://chromiumcodereview.appspot.com/10012053/diff/2002/chrome/test/data/extensions/api_test/app_background_page/no_js/test.js#newcode69 chrome/test/data/extensions/api_test/app_background_page/no_js/test.js:69: {url: launchUrl }, no ...
8 years, 8 months ago (2012-04-07 02:45:25 UTC) #10
Mihai Parparita -not on Chrome
I'm unexpectedly going on paternity leave two weeks earlier than expected, so I won't be ...
8 years, 8 months ago (2012-04-09 00:40:15 UTC) #11
Andrew T Wilson (Slow)
No worries, we'll get it landed. Thanks for handing it off, and congratulations!
8 years, 8 months ago (2012-04-09 02:04:44 UTC) #12
sky
LGTM
8 years, 8 months ago (2012-04-09 15:16:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mihaip@chromium.org/10012053/2002
8 years, 8 months ago (2012-04-09 15:18:42 UTC) #14
commit-bot: I haz the power
8 years, 8 months ago (2012-04-09 16:44:15 UTC) #15
Change committed as 131370

Powered by Google App Engine
This is Rietveld 408576698