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

Issue 9508008: Allow apps with background pages to request process-per-app-instance. (Closed)

Created:
8 years, 9 months ago by Charlie Reis
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip+watch_chromium.org
Visibility:
Public.

Description

Allow apps with background pages to request process-per-app-instance. Requires setting background.allow_js_access to false in manifest. BUG=113444 TEST=Example hosted app has different processes in different tabs. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124684

Patch Set 1 #

Total comments: 3

Patch Set 2 : Prevent script access to background page. #

Total comments: 7

Patch Set 3 : Adding API test. #

Total comments: 6

Patch Set 4 : Clean up tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+354 lines, -99 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 2 chunks +26 lines, -8 lines 0 comments Download
M chrome/browser/extensions/app_background_page_apitest.cc View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
M chrome/browser/extensions/app_process_apitest.cc View 7 chunks +95 lines, -89 lines 0 comments Download
M chrome/common/extensions/extension.h View 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 3 chunks +25 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_constants.h View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_constants.cc View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_manifests_unittest.cc View 2 chunks +8 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_background_page/no_js/content_script.js View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_background_page/no_js/manifest.json View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_background_page/no_js/test.js View 1 2 3 1 chunk +61 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_process_background_instances/manifest.json View 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_process_background_instances/path1/empty.html View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/app_process_background_instances/path2/empty.html View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/background_allow_no_js_access.json View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Charlie Reis
Mihai, can you review? Drew, you mentioned there was a way to prohibit these apps ...
8 years, 9 months ago (2012-02-29 02:56:32 UTC) #1
Andrew T Wilson (Slow)
I've got to run, but I'll try to look at this tomorrow. One note below ...
8 years, 9 months ago (2012-02-29 03:20:15 UTC) #2
Charlie Reis
https://chromiumcodereview.appspot.com/9508008/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://chromiumcodereview.appspot.com/9508008/diff/1/chrome/browser/chrome_content_browser_client.cc#newcode458 chrome/browser/chrome_content_browser_client.cc:458: !extension->allow_background_js_access()) { On 2012/02/29 03:20:15, Andrew T Wilson wrote: ...
8 years, 9 months ago (2012-03-01 00:38:22 UTC) #3
Charlie Reis
Test uploaded. PTAL. https://chromiumcodereview.appspot.com/9508008/diff/8001/chrome/browser/extensions/app_background_page_apitest.cc File chrome/browser/extensions/app_background_page_apitest.cc (right): https://chromiumcodereview.appspot.com/9508008/diff/8001/chrome/browser/extensions/app_background_page_apitest.cc#newcode182 chrome/browser/extensions/app_background_page_apitest.cc:182: ASSERT_TRUE(RunExtensionTest("app_background_page/no_js")) << message_; On 2012/03/01 00:38:22, ...
8 years, 9 months ago (2012-03-01 02:45:22 UTC) #4
Mihai Parparita -not on Chrome
https://chromiumcodereview.appspot.com/9508008/diff/8001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://chromiumcodereview.appspot.com/9508008/diff/8001/chrome/browser/chrome_content_browser_client.cc#newcode1178 chrome/browser/chrome_content_browser_client.cc:1178: // create the background page as long as the ...
8 years, 9 months ago (2012-03-01 02:48:11 UTC) #5
Mihai Parparita -not on Chrome
On Wed, Feb 29, 2012 at 6:48 PM, <mihaip@chromium.org> wrote: > https://chromiumcodereview.**appspot.com/9508008/diff/8001/** > chrome/browser/chrome_content_**browser_client.cc#newcode1178<https://chromiumcodereview.appspot.com/9508008/diff/8001/chrome/browser/chrome_content_browser_client.cc#newcode1178> > ...
8 years, 9 months ago (2012-03-01 02:50:17 UTC) #6
Mihai Parparita -not on Chrome
https://chromiumcodereview.appspot.com/9508008/diff/9013/chrome/test/data/extensions/api_test/app_background_page/no_js/manifest.json File chrome/test/data/extensions/api_test/app_background_page/no_js/manifest.json (right): https://chromiumcodereview.appspot.com/9508008/diff/9013/chrome/test/data/extensions/api_test/app_background_page/no_js/manifest.json#newcode7 chrome/test/data/extensions/api_test/app_background_page/no_js/manifest.json:7: "page": "test.html" Nit: You can use "script": "test.js" to ...
8 years, 9 months ago (2012-03-01 02:58:38 UTC) #7
Charlie Reis
https://chromiumcodereview.appspot.com/9508008/diff/8001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://chromiumcodereview.appspot.com/9508008/diff/8001/chrome/browser/chrome_content_browser_client.cc#newcode1178 chrome/browser/chrome_content_browser_client.cc:1178: // create the background page as long as the ...
8 years, 9 months ago (2012-03-01 20:12:12 UTC) #8
Mihai Parparita -not on Chrome
LGTM https://chromiumcodereview.appspot.com/9508008/diff/8001/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): https://chromiumcodereview.appspot.com/9508008/diff/8001/chrome/common/extensions/extension.cc#newcode1436 chrome/common/extensions/extension.cc:1436: bool Extension::LoadBackgroundAllowJsAccess( On 2012/03/01 20:12:12, creis wrote: > ...
8 years, 9 months ago (2012-03-02 01:10:05 UTC) #9
Andrew T Wilson (Slow)
LGTM. Thanks for tackling this!
8 years, 9 months ago (2012-03-02 05:54:12 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/creis@chromium.org/9508008/17001
8 years, 9 months ago (2012-03-02 16:29:55 UTC) #11
commit-bot: I haz the power
8 years, 9 months ago (2012-03-02 18:06:55 UTC) #12
Change committed as 124684

Powered by Google App Engine
This is Rietveld 408576698