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

Issue 13604005: Prevent chrome.app JSON schema from loading on every page (Closed)

Created:
7 years, 8 months ago by cduvall
Modified:
7 years, 8 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Prevent chrome.app JSON schema from loading on every page The app API along with app.window and app.runtime have been converted to use the feature system. Bindings are not added to the chrome object for unavailable APIs that are children of available APIs. For example, if chrome.app is available, we will not add lazy bindings to chrome for app.window and app.runtime. This eliminates the need to load the app schema, because we no longer need to get chrome.app to add the app.runtime and app.window bindings. BUG=55316 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196319

Patch Set 1 : #

Total comments: 10

Patch Set 2 : nits #

Patch Set 3 : fix unit tests #

Patch Set 4 : fix browser tests #

Patch Set 5 : more fixes #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : fix Stubs #

Patch Set 8 : register bindings only for APIs available to the context #

Total comments: 8

Patch Set 9 : don't Require("json"), fix _api_features.json #

Patch Set 10 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -60 lines) Patch
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 7 8 3 chunks +24 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/app.json View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/extension_api_unittest.cc View 1 2 3 4 5 2 chunks +12 lines, -7 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_context.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_context.cc View 1 2 3 4 5 6 7 1 chunk +12 lines, -1 line 0 comments Download
M chrome/renderer/extensions/dispatcher.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 5 6 7 8 9 4 chunks +45 lines, -39 lines 0 comments Download
M chrome/test/data/extensions/api_test/crazy_extension/background.js View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/test/data/extensions/api_test/stubs/content_script.js View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 34 (0 generated)
cduvall
7 years, 8 months ago (2013-04-04 00:57:24 UTC) #1
cduvall
Just realized that web pages will still have to load _manifest_features.json and _permission_features.json, since all ...
7 years, 8 months ago (2013-04-04 01:07:20 UTC) #2
not at google - send to devlin
lgtm with nits https://codereview.chromium.org/13604005/diff/8001/chrome/common/extensions/api/_api_features.json File chrome/common/extensions/api/_api_features.json (right): https://codereview.chromium.org/13604005/diff/8001/chrome/common/extensions/api/_api_features.json#newcode9 chrome/common/extensions/api/_api_features.json:9: "contexts": ["blessed_extension", "unblessed_extension", "content_script", "web_page"], 80 ...
7 years, 8 months ago (2013-04-04 01:30:26 UTC) #3
not at google - send to devlin
On 2013/04/04 01:07:20, cduvall wrote: > Just realized that web pages will still have to ...
7 years, 8 months ago (2013-04-04 01:32:22 UTC) #4
cduvall
Just waiting on https://codereview.chromium.org/13997002/ to go in. https://codereview.chromium.org/13604005/diff/8001/chrome/common/extensions/api/_api_features.json File chrome/common/extensions/api/_api_features.json (right): https://codereview.chromium.org/13604005/diff/8001/chrome/common/extensions/api/_api_features.json#newcode9 chrome/common/extensions/api/_api_features.json:9: "contexts": ["blessed_extension", ...
7 years, 8 months ago (2013-04-11 00:02:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/13604005/18001
7 years, 8 months ago (2013-04-11 23:20:36 UTC) #6
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=31575
7 years, 8 months ago (2013-04-12 00:01:29 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/13604005/33001
7 years, 8 months ago (2013-04-12 00:39:44 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=116543
7 years, 8 months ago (2013-04-12 02:11:31 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/13604005/53001
7 years, 8 months ago (2013-04-12 02:47:32 UTC) #10
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=31624
7 years, 8 months ago (2013-04-12 03:22:34 UTC) #11
not at google - send to devlin
lgtm https://codereview.chromium.org/13604005/diff/69006/chrome/common/extensions/api/extension_api_unittest.cc File chrome/common/extensions/api/extension_api_unittest.cc (left): https://codereview.chromium.org/13604005/diff/69006/chrome/common/extensions/api/extension_api_unittest.cc#oldcode388 chrome/common/extensions/api/extension_api_unittest.cc:388: "chrome-extension://fakeextension")); change to TRUE?
7 years, 8 months ago (2013-04-12 03:52:44 UTC) #12
cduvall
https://codereview.chromium.org/13604005/diff/69006/chrome/common/extensions/api/extension_api_unittest.cc File chrome/common/extensions/api/extension_api_unittest.cc (left): https://codereview.chromium.org/13604005/diff/69006/chrome/common/extensions/api/extension_api_unittest.cc#oldcode388 chrome/common/extensions/api/extension_api_unittest.cc:388: "chrome-extension://fakeextension")); On 2013/04/12 03:52:44, kalman wrote: > change to ...
7 years, 8 months ago (2013-04-12 03:54:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/13604005/70002
7 years, 8 months ago (2013-04-12 03:55:06 UTC) #14
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-12 05:21:28 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/13604005/70002
7 years, 8 months ago (2013-04-12 05:22:15 UTC) #16
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-12 06:57:24 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/13604005/89001
7 years, 8 months ago (2013-04-18 00:08:20 UTC) #18
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) chrome_frame_net_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=135980
7 years, 8 months ago (2013-04-18 03:06:04 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/13604005/89001
7 years, 8 months ago (2013-04-18 03:33:37 UTC) #20
commit-bot: I haz the power
Change committed as 194837
7 years, 8 months ago (2013-04-18 07:33:14 UTC) #21
cduvall
This gives web pages access to APIs they should have access to, but does not ...
7 years, 8 months ago (2013-04-19 00:46:50 UTC) #22
not at google - send to devlin
lgtm
7 years, 8 months ago (2013-04-19 01:07:35 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/13604005/76004
7 years, 8 months ago (2013-04-19 01:08:34 UTC) #24
commit-bot: I haz the power
Change committed as 195143
7 years, 8 months ago (2013-04-19 12:56:52 UTC) #25
not at google - send to devlin
Ok, much better, but still a tiny regression e.g. http://build.chromium.org/f/chromium/perf/linux-release/intl1/report.html?history=50&rev=-1 I still need to revert ...
7 years, 8 months ago (2013-04-19 14:34:36 UTC) #26
not at google - send to devlin
https://chromiumcodereview.appspot.com/13604005/diff/76004/chrome/common/extensions/api/_api_features.json File chrome/common/extensions/api/_api_features.json (right): https://chromiumcodereview.appspot.com/13604005/diff/76004/chrome/common/extensions/api/_api_features.json#newcode8 chrome/common/extensions/api/_api_features.json:8: "extension_types": ["hosted_app", "extension"], this also needs packaged_app
7 years, 8 months ago (2013-04-19 18:43:42 UTC) #27
cduvall
https://codereview.chromium.org/13604005/diff/76004/chrome/common/extensions/api/_api_features.json File chrome/common/extensions/api/_api_features.json (right): https://codereview.chromium.org/13604005/diff/76004/chrome/common/extensions/api/_api_features.json#newcode8 chrome/common/extensions/api/_api_features.json:8: "extension_types": ["hosted_app", "extension"], On 2013/04/19 18:43:42, kalman wrote: > ...
7 years, 8 months ago (2013-04-24 01:34:01 UTC) #28
not at google - send to devlin
lgtm after you add back the json require behind is_web_context :) https://codereview.chromium.org/13604005/diff/76004/chrome/renderer/extensions/dispatcher.cc File chrome/renderer/extensions/dispatcher.cc (right): ...
7 years, 8 months ago (2013-04-24 04:09:09 UTC) #29
cduvall
I had to change CrazyExtensionTest to use chrome.app instead of chrome.webstore, because now that the ...
7 years, 8 months ago (2013-04-25 00:12:10 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/13604005/133001
7 years, 8 months ago (2013-04-25 00:12:26 UTC) #31
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-25 01:15:23 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/13604005/133001
7 years, 8 months ago (2013-04-25 02:19:47 UTC) #33
commit-bot: I haz the power
7 years, 8 months ago (2013-04-25 05:37:31 UTC) #34
Message was sent while issue was closed.
Change committed as 196319

Powered by Google App Engine
This is Rietveld 408576698