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

Unified Diff: background.js

Issue 5225119261655040: Issue 1282 - Don't generate filters conflicting with existing exception rules (Closed)
Patch Set: Addressed comment Created March 3, 2015, 2:59 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 | include.postload.js » ('j') | lib/filterComposer.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -553,10 +553,18 @@
refreshIconAndContextMenu(sender.page);
break;
case "compose-filters":
- sendResponse(composeFilters(
- msg.tagName, msg.id, msg.src, msg.style,
- msg.classes, msg.urls, new URL(msg.baseURL)
- ));
+ sendResponse(composeFilters({
+ tagName: msg.tagName,
+ id: msg.id,
+ src: msg.src,
+ style: msg.style,
+ classes: msg.classes,
+ urls: msg.urls,
+ type: msg.mediatype,
+ baseURL: msg.baseURL,
+ page: sender.page,
+ frame: sender.frame
+ }));
break;
case "forward":
if (sender.page)
« no previous file with comments | « no previous file | include.postload.js » ('j') | lib/filterComposer.js » ('J')

Powered by Google App Engine
This is Rietveld