Bug 927035 - Replace Data.now() in browser/devtools/webconsole/hudservice.js with static counter. r=bbenvie

This commit is contained in:
Peiyong Lin 2013-11-26 14:21:43 -05:00
parent 5d3ced4c07
commit d4d7a18f02

View File

@ -28,6 +28,8 @@ const BROWSER_CONSOLE_WINDOW_FEATURES = "chrome,titlebar,toolbar,centerscreen,re
// The preference prefix for all of the Browser Console filters.
const BROWSER_CONSOLE_FILTER_PREFS_PREFIX = "devtools.browserconsole.filter.";
let gHudId = 0;
///////////////////////////////////////////////////////////////////////////
//// The HUD service
@ -301,7 +303,7 @@ function WebConsole(aTarget, aIframeWindow, aChromeWindow)
{
this.iframeWindow = aIframeWindow;
this.chromeWindow = aChromeWindow;
this.hudId = "hud_" + Date.now();
this.hudId = "hud_" + ++gHudId;
this.target = aTarget;
this.browserWindow = this.chromeWindow.top;