Index: safari/ext/content.js |
=================================================================== |
--- a/safari/ext/content.js |
+++ b/safari/ext/content.js |
@@ -57,6 +57,13 @@ |
document.addEventListener("beforeload", function(event) |
{ |
+ // we don't block non-HTTP requests anyway, so we can bail out |
+ // without asking the background page. This is even necessary |
+ // because passing large data (like a photo encoded as data: URL) |
+ // to the background page, freezes Safari. |
+ if (!/^https?:/.test(event.url)) |
+ return; |
+ |
var type; |
switch(event.target.localName) |
{ |