fune/browser/base/content/test
Kris Maglione 22d4bb0074 Bug 1484413: Split ReaderMode.jsm into separate checking and loading components. r=Gijs
Most of the ReaderMode.jsm and Readability.js code is only needed when we
actually need to render a document in reader mode, but also winds up loaded
into any process where we ever check if a page is readerable. This winds up
wasting a huge amount of memory (and probably a huge amount of CPU time)
loading code which is almost never used.

This patch splits ReaderMode.jsm into two modules, one for checking
readability, one for actually entering reader mode. It also separates out the
isProbablyReaderable checks from Readability.js, since the overhead of loading
that script before it's needed is unsupportable.

This means we're probably going to need some effort to keep Readerable.jsm and
Readability.js in sync, but the code in question is pretty trivial, so it
shouldn't be too difficult.

Differential Revision: https://phabricator.services.mozilla.com/D3687

--HG--
rename : toolkit/components/reader/Readability.js => toolkit/components/reader/Readability-readerable.js
rename : toolkit/components/reader/ReaderMode.jsm => toolkit/components/reader/Readerable.js
extra : rebase_source : 66712057591ae20dd66234e3dc78fbba90a6914e
extra : amend_source : f908f62f49ea54b9099ddb87d9f2fc11f12d4dee
2018-08-17 23:10:59 -07:00
..
about Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
alerts Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
captivePortal Bug 1486824 - change BrowserTestUtils to just call OpenBrowserWindow so it does the same thing as opening a window normally, r=mconley,nhnt11 2018-09-03 14:43:38 +01:00
chrome Bug 1484466: Part 3a - Update remaining XPCOMUtils.generateQI callers to use ChromeUtils. r=mccr8 2018-08-18 12:44:57 -07:00
contextMenu Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
favicons Bug 1487650: Don't show a space for a pending favicon in pinned tabs. r=dao 2018-08-31 22:20:39 +00:00
forms Bug 1488938 - Round two: migrate mochitest-browser tests to use element variations of firstChild, etc;r=Gijs 2018-09-07 15:31:38 +00:00
general Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-06 01:27:49 +03:00
historySwipeAnimation
metaTags
pageinfo Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
performance Bug 1484413: Split ReaderMode.jsm into separate checking and loading components. r=Gijs 2018-08-17 23:10:59 -07:00
permissions Bug 1488938 - Round two: migrate mochitest-browser tests to use element variations of firstChild, etc;r=Gijs 2018-09-07 15:31:38 +00:00
plugins Bug 1438857 - Remove the Flash plugin infobar. r=Felipe 2018-09-06 14:50:16 +00:00
popupNotifications Bug 1488938 - Round two: migrate mochitest-browser tests to use element variations of firstChild, etc;r=Gijs 2018-09-07 15:31:38 +00:00
popups Bug 1337794 - remove obsolete pagehide handling hacks from browser.js r=mconley 2018-09-04 17:55:05 +00:00
referrer Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
sanitize Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-08-31 19:35:06 +03:00
sidebar Bug 1486824 - change BrowserTestUtils to just call OpenBrowserWindow so it does the same thing as opening a window normally, r=mconley,nhnt11 2018-09-03 14:43:38 +01:00
siteIdentity Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
static Merge autoland to mozilla-central. a=merge 2018-09-07 06:35:30 +03:00
statuspanel
sync Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
tabcrashed Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
tabPrompts Bug 1485426 - Use createXULElement instead of createElement in XUL docs. r=bgrins 2018-08-25 00:16:27 +00:00
tabs Bug 1480907 - Implement ability to bookmark a selection of tabs through drag and drop. r=Felipe 2018-09-05 14:16:59 +00:00
touch Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
trackingUI Bug 1488809 - Correctly account for non-CB-UI tracking protection cases in browser_trackingUI_state.js. r=Ehsan 2018-09-06 14:57:39 +00:00
urlbar Bug 1488938 - Round two: migrate mochitest-browser tests to use element variations of firstChild, etc;r=Gijs 2018-09-07 15:31:38 +00:00
webextensions Bug 1488938 - Round two: migrate mochitest-browser tests to use element variations of firstChild, etc;r=Gijs 2018-09-07 15:31:38 +00:00
webrtc Bug 1488938 - Round two: migrate mochitest-browser tests to use element variations of firstChild, etc;r=Gijs 2018-09-07 15:31:38 +00:00