author | Kamil Jozwiak <kamiljoz@gmail.com> |
Thu, 07 Nov 2013 23:18:06 -0500 | |
changeset 154092 | 2ba06be1165ba5952a46eac1bdad06adaf297122 |
parent 154091 | 82bc6c4f7e5ba80529e144659f21146e757981cf |
child 154093 | 3e92e917cd7e2014eb997ecb3a4a40a383df96de |
push id | 35975 |
push user | bbondy@mozilla.com |
push date | Fri, 08 Nov 2013 04:18:56 +0000 |
treeherder | mozilla-inbound@2ba06be1165b [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | mbrubeck |
bugs | 927038 |
milestone | 28.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/browser/metro/base/content/bindings/browser.js +++ b/browser/metro/base/content/bindings/browser.js @@ -4,16 +4,19 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ let Cc = Components.classes; let Ci = Components.interfaces; let Cu = Components.utils; Cu.import("resource://gre/modules/Services.jsm"); +XPCOMUtils.defineLazyServiceGetter(this, "gUUIDGenerator", + "@mozilla.org/uuid-generator;1", "nsIUUIDGenerator"); + let WebProgressListener = { _lastLocation: null, _firstPaint: false, init: function() { let flags = Ci.nsIWebProgress.NOTIFY_LOCATION | Ci.nsIWebProgress.NOTIFY_SECURITY | Ci.nsIWebProgress.NOTIFY_STATE_WINDOW | @@ -255,17 +258,17 @@ let WebNavigation = { shEntry.cacheKey = cacheKey; } if (aEntry.ID) { // get a new unique ID for this frame (since the one from the last // start might already be in use) let id = aIdMap[aEntry.ID] || 0; if (!id) { - for (id = Date.now(); id in aIdMap.used; id++); + id = gUUIDGenerator.generateUUID(); aIdMap[aEntry.ID] = id; aIdMap.used[id] = true; } shEntry.ID = id; } if (aEntry.docshellID) shEntry.docshellID = aEntry.docshellID;