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

Unified Diff: safari/ext/background.js

Issue 6465209950535680: Issue 1594 - Handle missing userInfo when processing contextmenu events on Safari (Closed)
Patch Set: Created Nov. 22, 2014, 3:28 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 | no next file » | 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
@@ -253,6 +253,9 @@
safari.application.addEventListener("contextmenu", function(event)
{
+ if (!event.userInfo)
+ return;
+
var pageId = event.userInfo.pageId;
if (!pageId)
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld