зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1214287 - 2-4% linux64/win7/8 ts_paint regression on inbound (v.44) seen on Oct 12, 2015 from rev 3012b7a2c97c r=mconley
--HG-- extra : commitid : 2b5S3mpFBf2
This commit is contained in:
Родитель
537f8dad54
Коммит
c84ef61eea
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* globals Services, XPCOMUtils, RemotePages, RemoteNewTabLocation, RemoteNewTabUtils, Task */
|
||||
/* globals BackgroundPageThumbs, PageThumbs, RemoteDirectoryLinksProvider */
|
||||
/* globals BackgroundPageThumbs, PageThumbs, DirectoryLinksProvider */
|
||||
/* exported RemoteAboutNewTab */
|
||||
|
||||
"use strict";
|
||||
|
@ -27,8 +27,8 @@ XPCOMUtils.defineLazyModuleGetter(this, "BackgroundPageThumbs",
|
|||
"resource://gre/modules/BackgroundPageThumbs.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "PageThumbs",
|
||||
"resource://gre/modules/PageThumbs.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "RemoteDirectoryLinksProvider",
|
||||
"resource:///modules/RemoteDirectoryLinksProvider.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "DirectoryLinksProvider",
|
||||
"resource:///modules/DirectoryLinksProvider.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "RemoteNewTabLocation",
|
||||
"resource:///modules/RemoteNewTabLocation.jsm");
|
||||
|
||||
|
@ -172,7 +172,7 @@ let RemoteAboutNewTab = {
|
|||
let enhancedLinks = [];
|
||||
for (let link of RemoteNewTabUtils.links.getLinks()) {
|
||||
if (link) {
|
||||
enhancedLinks.push(RemoteDirectoryLinksProvider.getEnhancedLink(link));
|
||||
enhancedLinks.push(DirectoryLinksProvider.getEnhancedLink(link));
|
||||
}
|
||||
}
|
||||
return enhancedLinks;
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -14,7 +14,6 @@ EXTRA_JS_MODULES += [
|
|||
'NewTabURL.jsm',
|
||||
'PlacesProvider.jsm',
|
||||
'RemoteAboutNewTab.jsm',
|
||||
'RemoteDirectoryLinksProvider.jsm',
|
||||
'RemoteNewTabLocation.jsm',
|
||||
'RemoteNewTabUtils.jsm',
|
||||
]
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -7,6 +7,5 @@ skip-if = toolkit == 'android' || toolkit == 'gonk'
|
|||
[test_AboutNewTabService.js]
|
||||
[test_NewTabURL.js]
|
||||
[test_PlacesProvider.js]
|
||||
[test_RemoteDirectoryLinksProvider.js]
|
||||
[test_RemoteNewTabLocation.js]
|
||||
[test_RemoteNewTabUtils.js]
|
||||
|
|
|
@ -29,9 +29,6 @@ XPCOMUtils.defineLazyModuleGetter(this, "NewTabUtils",
|
|||
XPCOMUtils.defineLazyModuleGetter(this, "RemoteAboutNewTab",
|
||||
"resource:///modules/RemoteAboutNewTab.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "RemoteDirectoryLinksProvider",
|
||||
"resource:///modules/RemoteDirectoryLinksProvider.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "RemoteNewTabUtils",
|
||||
"resource:///modules/RemoteNewTabUtils.jsm");
|
||||
|
||||
|
@ -842,16 +839,15 @@ BrowserGlue.prototype = {
|
|||
webrtcUI.init();
|
||||
AboutHome.init();
|
||||
|
||||
RemoteDirectoryLinksProvider.init();
|
||||
RemoteNewTabUtils.init();
|
||||
RemoteNewTabUtils.links.addProvider(RemoteDirectoryLinksProvider);
|
||||
RemoteAboutNewTab.init();
|
||||
|
||||
DirectoryLinksProvider.init();
|
||||
NewTabUtils.init();
|
||||
NewTabUtils.links.addProvider(DirectoryLinksProvider);
|
||||
AboutNewTab.init();
|
||||
|
||||
RemoteNewTabUtils.init();
|
||||
RemoteNewTabUtils.links.addProvider(DirectoryLinksProvider);
|
||||
RemoteAboutNewTab.init();
|
||||
|
||||
SessionStore.init();
|
||||
BrowserUITelemetry.init();
|
||||
ContentSearch.init();
|
||||
|
|
|
@ -31,6 +31,8 @@ XPCOMUtils.defineLazyModuleGetter(this, "UpdateUtils",
|
|||
XPCOMUtils.defineLazyServiceGetter(this, "eTLD",
|
||||
"@mozilla.org/network/effective-tld-service;1",
|
||||
"nsIEffectiveTLDService");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "RemoteNewTabUtils",
|
||||
"resource:///modules/RemoteNewTabUtils.jsm");
|
||||
XPCOMUtils.defineLazyGetter(this, "gTextDecoder", () => {
|
||||
return new TextDecoder();
|
||||
});
|
||||
|
@ -757,6 +759,8 @@ var DirectoryLinksProvider = {
|
|||
|
||||
NewTabUtils.placesProvider.addObserver(this);
|
||||
NewTabUtils.links.addObserver(this);
|
||||
RemoteNewTabUtils.placesProvider.addObserver(this);
|
||||
RemoteNewTabUtils.links.addObserver(this);
|
||||
|
||||
return Task.spawn(function() {
|
||||
// get the last modified time of the links file if it exists
|
||||
|
|
Загрузка…
Ссылка в новой задаче