Commit 8ca7245d authored by kalman@chromium.org's avatar kalman@chromium.org

Remove the "content_script" context from a number of APIs that shouldn't be

exposed to content scripts.

In some cases this dates way back pre-features to when they were incorrectly
first added with an {"unprivileged": true} annotation, like runtime.reload().

R=asargent@chromium.org

Review URL: https://codereview.chromium.org/375173002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282153 0039d316-1c4b-4281-b951-d872f2087c98
parent 21e41f9e
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
"noparent": true, "noparent": true,
"internal": true, "internal": true,
"channel": "stable", "channel": "stable",
"contexts": ["blessed_extension", "unblessed_extension", "content_script"] "contexts": ["blessed_extension"]
}, },
"app.currentWindowInternal.setShape": { "app.currentWindowInternal.setShape": {
"dependencies": ["permission:app.window.shape"], "dependencies": ["permission:app.window.shape"],
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
"downloadsInternal": { "downloadsInternal": {
"internal": true, "internal": true,
"channel": "stable", "channel": "stable",
"contexts": ["blessed_extension", "unblessed_extension", "content_script"] "contexts": ["blessed_extension"]
}, },
"echoPrivate": { "echoPrivate": {
"dependencies": ["permission:echoPrivate"], "dependencies": ["permission:echoPrivate"],
......
...@@ -73,19 +73,12 @@ ...@@ -73,19 +73,12 @@
"runtime.onMessage": { "runtime.onMessage": {
"contexts": ["blessed_extension", "unblessed_extension", "content_script"] "contexts": ["blessed_extension", "unblessed_extension", "content_script"]
}, },
"runtime.reload": {
"contexts": ["blessed_extension", "unblessed_extension", "content_script"]
},
"runtime.requestUpdateCheck": {
"contexts": ["blessed_extension", "unblessed_extension", "content_script"]
},
"runtime.sendMessage": { "runtime.sendMessage": {
"contexts": "all", "contexts": "all",
"matches": ["<all_urls>"] "matches": ["<all_urls>"]
}, },
"runtime.setUninstallURL": { "runtime.setUninstallURL": {
"channel": "dev", "channel": "dev"
"contexts": ["blessed_extension", "unblessed_extension", "content_script"]
}, },
"socket": { "socket": {
"dependencies": ["permission:socket"], "dependencies": ["permission:socket"],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment