Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: ext/background.js

Issue 29417555: Issue 5130 - Changes url protocol permissions to all urls (Closed)
Patch Set: change to explicit urls at handler registration Created April 19, 2017, 12:04 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/devtools.js » ('j') | lib/devtools.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ext/background.js
===================================================================
--- a/ext/background.js
+++ b/ext/background.js
@@ -588,17 +588,17 @@
type.toUpperCase(),
new Page({id: details.tabId}),
frame
);
if (results.indexOf(false) != -1)
return {cancel: true};
}
- }, {urls: ["<all_urls>"]}, ["blocking"]);
+ }, {urls: ["https://*/*", "http://*/*", "ws://*/*", "wss://*/*"]}, ["blocking"]);
/* Message passing */
chrome.runtime.onMessage.addListener((message, rawSender, sendResponse) =>
{
let sender = {};
« no previous file with comments | « no previous file | lib/devtools.js » ('j') | lib/devtools.js » ('J')

Powered by Google App Engine
This is Rietveld