mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-23 19:03:02 +01:00
fix #3073
This commit is contained in:
parent
ea0c5140ca
commit
526ffe214d
@ -348,9 +348,13 @@ vAPI.tabs.registerListeners = function() {
|
||||
}
|
||||
};
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/3073
|
||||
// - Fall back to `tab.url` when `changeInfo.url` is not set.
|
||||
var onUpdated = function(tabId, changeInfo, tab) {
|
||||
if ( changeInfo.url ) {
|
||||
changeInfo.url = sanitizeURL(changeInfo.url);
|
||||
} else {
|
||||
changeInfo.url = tab && tab.url;
|
||||
}
|
||||
onUpdatedClient(tabId.toString(), changeInfo, tab);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user