From 9b57b827d39dcd7836fc77a021d4aa27dbbb0f37 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 22 Oct 2016 18:10:49 -0400 Subject: [PATCH] fix uncaught `data:` URI by popup blocker when URL is updated using `location.replace()` --- platform/chromium/vapi-background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index 86de1b7df..276a5d627 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -331,7 +331,7 @@ vAPI.tabs.registerListeners = function() { if ( changeInfo.url ) { changeInfo.url = sanitizeURL(changeInfo.url); } - onUpdatedClient(tabId, changeInfo, tab); + onUpdatedClient(tabId.toString(), changeInfo, tab); }; chrome.webNavigation.onBeforeNavigate.addListener(onBeforeNavigate);