1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00

Safari: fix privileged/non-priveleged messaging

This commit is contained in:
Chris 2015-02-06 18:41:13 -07:00
parent 2378a63cf0
commit bb9e590cb0

View File

@ -209,7 +209,7 @@
document.removeEventListener("DOMContentLoaded", firstMutation, true);
firstMutation = false;
var randEventName = uniqueId();
window.addEventListener(randEventName, function(e) {
document.addEventListener(randEventName, function(e) {
if(shouldBlockDetailedRequest(e.detail)) {
e.detail.url = false;
}
@ -225,7 +225,7 @@ type: t\
},\
bubbles: false\
});\
dispatchEvent(e);\
document.dispatchEvent(e);\
return e.detail.url === false;\
},\
wo = open,\