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

View file

@ -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,