diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index 875a05195..46a3870ac 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -351,10 +351,11 @@ 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 ( typeof changeInfo.url !== 'string' ) { + changeInfo.url = tab && tab.url; + } if ( changeInfo.url ) { changeInfo.url = sanitizeURL(changeInfo.url); - } else { - changeInfo.url = tab && tab.url; } onUpdatedClient(tabId.toString(), changeInfo, tab); };