Index: safari/ext/content.js |
=================================================================== |
--- a/safari/ext/content.js |
+++ b/safari/ext/content.js |
@@ -111,9 +111,12 @@ |
// dispatch it manually. Otherwise element collapsing wouldn't work. |
if (type != "sub_frame") |
{ |
- var evt = document.createEvent("Event"); |
- evt.initEvent("error"); |
- event.target.dispatchEvent(evt); |
+ setTimeout(function() |
+ { |
+ var evt = document.createEvent("Event"); |
+ evt.initEvent("error"); |
+ event.target.dispatchEvent(evt); |
+ }, 0); |
} |
} |
}, true); |