From 7a0044391b08f1070f08dd7feaac08b8eaff2220 Mon Sep 17 00:00:00 2001 From: Cheng Sun Date: Thu, 12 Feb 2015 18:19:28 +0000 Subject: [PATCH] Use named "same document" constant instead of hardcoding --- platform/firefox/vapi-background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 83e40b5bd..92a3cd8fe 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -318,7 +318,7 @@ var tabWatcher = { var tabId = vAPI.tabs.getTabId(browser); // LOCATION_CHANGE_SAME_DOCUMENT = "did not load a new document" - if ( flags & 1 ) { + if ( flags & Ci.nsIWebProgressListener.LOCATION_CHANGE_SAME_DOCUMENT ) { vAPI.tabs.onUpdated(tabId, {url: location.asciiSpec}, { frameId: 0, tabId: tabId,