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

Unified Diff: safari/ext/content.js

Issue 29353237: Issue 4361 - Pass all parameters to initEvent (Closed)
Patch Set: Fixed typo Created Sept. 16, 2016, 2:09 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 | safari/include.youtube.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: safari/ext/content.js
diff --git a/safari/ext/content.js b/safari/ext/content.js
index 2c43b2dbef79aed4fb2a5458fcceea6fbb13a341..38c0240a7c77ab19b226cafe06b971b015ccb82f 100644
--- a/safari/ext/content.js
+++ b/safari/ext/content.js
@@ -26,7 +26,7 @@
/* Intialization */
var beforeLoadEvent = document.createEvent("Event");
- beforeLoadEvent.initEvent("beforeload");
+ beforeLoadEvent.initEvent("beforeload", false, true);
// Decide if we should use the new content blocker API or not. (Note when the
// API is used Safari breaks the canLoad function, making it either throw an
@@ -153,7 +153,7 @@
setTimeout(function()
{
var evt = document.createEvent("Event");
- evt.initEvent(eventName);
+ evt.initEvent(eventName, false, false);
event.target.dispatchEvent(evt);
});
}
« no previous file with comments | « no previous file | safari/include.youtube.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld