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

Unified Diff: safari/ext/background.js

Issue 6236888415338496: Issue 1611 - Fixed inconsistent behavior with "Block element" context menu item (Closed)
Patch Set: Created Nov. 26, 2014, 11:28 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 | « include.postload.js ('k') | safari/ext/content.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: safari/ext/background.js
===================================================================
--- a/safari/ext/background.js
+++ b/safari/ext/background.js
@@ -268,8 +268,6 @@
var context = event.userInfo.tagName;
if (context == "img")
context = "image";
- if (!event.userInfo.srcUrl)
- context = null;
for (var i = 0; i < items.length; i++)
{
@@ -287,7 +285,7 @@
var page = pages[event.userInfo.pageId];
var items = contextMenuItems.get(page);
- items[event.command].onclick(event.userInfo.srcUrl, page);
+ items[event.command].onclick(page);
});
« no previous file with comments | « include.postload.js ('k') | safari/ext/content.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld