From 526ffe214da00c6933fd6f8f73083887f59b8e89 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 30 Sep 2017 07:56:35 -0400 Subject: [PATCH] fix #3073 --- platform/chromium/vapi-background.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index af17d1b56..875a05195 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -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); };