mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Safari: fix privileged/non-priveleged messaging
This commit is contained in:
parent
2378a63cf0
commit
bb9e590cb0
@ -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,\
|
||||
|
Loading…
Reference in New Issue
Block a user