mirror of https://github.com/gorhill/uBlock.git
Safari: enable site warning document to work
This commit is contained in:
parent
10d227ad12
commit
4cf276ca9d
|
@ -698,6 +698,17 @@
|
|||
frameId: 0,
|
||||
tabId: vAPI.tabs.getTabId(e.target)
|
||||
});
|
||||
e.message.hostname = µb.URI.hostnameFromURI(e.message.url);
|
||||
e.message.tabId = vAPI.tabs.getTabId(e.target);
|
||||
var blockVerdict = onBeforeRequestClient(e.message);
|
||||
if(blockVerdict && blockVerdict.redirectUrl) {
|
||||
e.target.url = blockVerdict.redirectUrl;
|
||||
e.message = false;
|
||||
}
|
||||
else {
|
||||
e.message = true;
|
||||
}
|
||||
return;
|
||||
}
|
||||
switch(e.message.type) {
|
||||
case "popup":
|
||||
|
|
Loading…
Reference in New Issue