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

Unified Diff: safari/ext/content.js

Issue 5192819564085248: Issue 2063 - Make ext.webRequest use ABP instead Chrome request types (Closed)
Patch Set: Created Feb. 28, 2015, 9:55 a.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 | « chrome/ext/background.js ('k') | webrequest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: safari/ext/content.js
===================================================================
--- a/safari/ext/content.js
+++ b/safari/ext/content.js
@@ -64,30 +64,30 @@
if (/^(?!https?:)[\w-]+:/.test(event.url))
return;
- var type = "other";
+ var type = "OTHER";
var eventName = "error";
switch(event.target.localName)
{
case "frame":
case "iframe":
- type = "sub_frame";
+ type = "SUBDOCUMENT";
eventName = "load";
break;
case "img":
case "input":
- type = "image";
+ type = "IMAGE";
break;
case "object":
case "embed":
- type = "object";
+ type = "OBJECT";
break;
case "script":
- type = "script";
+ type = "SCRIPT";
break;
case "link":
if (/\bstylesheet\b/i.test(event.target.rel))
- type = "stylesheet";
+ type = "STYLESHEET";
break;
}
« no previous file with comments | « chrome/ext/background.js ('k') | webrequest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld