Use named "same document" constant instead of hardcoding

This commit is contained in:
Cheng Sun 2015-02-12 18:19:28 +00:00 committed by Deathamns
parent 34b9b1ae8b
commit 7a0044391b
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ var tabWatcher = {
var tabId = vAPI.tabs.getTabId(browser); var tabId = vAPI.tabs.getTabId(browser);
// LOCATION_CHANGE_SAME_DOCUMENT = "did not load a new document" // 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}, { vAPI.tabs.onUpdated(tabId, {url: location.asciiSpec}, {
frameId: 0, frameId: 0,
tabId: tabId, tabId: tabId,