This commit is contained in:
gorhill 2017-09-30 07:56:35 -04:00
parent ea0c5140ca
commit 526ffe214d
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 4 additions and 0 deletions

View File

@ -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);
};