gecko-dev/browser/components/newtab
Ed Lee 64170b63af Bug 1386445 - Early about:newtab pages are missing message APIs because RemotePages registers too late. r=mossop
This moves AboutNewTab.init from nsBrowserGlue.js handling of "browser-delayed-startup-finished" into aboutNewTabService.js so that when the service is loaded once from the main thread probably by browser.js towards the beginning of _delayedStartup just before potentially calling gBrowser.loadTabs, the service triggers the attaching of RemotePages(about:newtab) before any about:newtab pages load.

Additionally even when RemotePages starts early enough, Activity Stream might not borrow the RemotePages instance early enough to catch the RemotePage:Load message, so to simulate that, RemotePages now remembers when a port has been loaded for consumers to check. Adds tests to confirm the expected properties on the port and value of loaded at the various RemotePage:* messages.

MozReview-Commit-ID: IXJLvFCgbEH

--HG--
extra : rebase_source : 2b53c4e58f4cb8cbd4ea10741f3f609693989010
2017-08-01 12:30:33 -07:00
..
tests Bug 1357517 - Remove or delay Preferences.jsm usage from some browser/components/* files. r=Gijs 2017-07-31 13:25:41 +02:00
NewTabComponents.manifest
NewTabPrefsProvider.jsm Bug 1357517 - Remove or delay Preferences.jsm usage from some browser/components/* files. r=Gijs 2017-07-31 13:25:41 +02:00
NewTabRemoteResources.jsm Bug 1258728 - new remote newtab staging origin r=ursula 2016-03-24 16:28:01 -04:00
NewTabSearchProvider.jsm Bug 1384402 - Fix broken about:preferences link after reorg v2 r=jaws 2017-07-27 11:30:05 +08:00
NewTabURL.jsm Bug 1365412 - Clean up various ESLint global definitions in browser/. r=mossop 2017-05-16 22:22:42 +01:00
NewTabWebChannel.jsm Bug 1357517 - Remove or delay Preferences.jsm usage from some browser/components/* files. r=Gijs 2017-07-31 13:25:41 +02:00
aboutNewTabService.js Bug 1386445 - Early about:newtab pages are missing message APIs because RemotePages registers too late. r=mossop 2017-08-01 12:30:33 -07:00
moz.build Bug 1384977 - Remove unused PreviewProvider.jsm and refs, r=ursula? 2017-07-27 09:26:39 -07:00
nsIAboutNewTabService.idl Bug 1340181 - Hide Activity Stream URL in URLbar r=fkiefer,mconley 2017-02-22 13:18:09 -05:00