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); |
}); |
} |