fune/toolkit
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
..
actors Bug 1488321 - Fix up nsISHEntry.{index,getEntryAtIndex()}. r=nika 2018-09-05 09:02:37 +10:00
components Bug 1484413: Split ReaderMode.jsm into separate checking and loading components. r=Gijs 2018-08-17 23:10:59 -07:00
content 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
crashreporter Bug 1079662 - Always enable PIE. r=froydnj 2018-09-08 07:41:21 +09:00
forgetaboutsite Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
library Bug 1480457 - Address moz.build failures for mingw-clang r=aklotz 2018-08-30 23:17:15 +03:00
locales Bug 1476062: Update about:crashes UI. r=mconley,flod 2018-09-05 22:46:47 +00:00
modules Bug 1488628 - Change nsISHEntry.title to an AString. r=nika 2018-09-05 11:29:36 +10:00
mozapps Bug 1079662 - Use firefox-bin for updater tests on Linux. r=rstrong 2018-09-08 07:41:20 +09:00
pluginproblem
profile
recordreplay Bug 1488523 Part 1 - Add RecordReplay crash annotation, r=gsvelto. 2018-09-05 09:22:45 -10:00
system Bug 1475566 Disable #pragma comments for MinGW Builds r=glandium 2018-08-29 03:50:39 +00:00
themes Bug 1487765 - Remove fallback styling from dropmarker.css. r=ntim 2018-09-07 13:50:32 +02:00
xre Bug 1488628 - Change nsIConsoleMessage.message to an AString. r=erahm 2018-09-05 13:31:42 +10:00
.eslintrc.js
moz.build
moz.configure Backed out 3 changesets (bug 1488554) for build bustage at configure\test_toolchain_configure.py on a CLOSED TREE 2018-09-05 04:10:31 +03:00
nss.configure
toolkit.mozbuild Backed out 4 changesets (bug 1417646) for Webdriver missing geckodriver binary, at least on Linux x64 asan 2018-08-30 12:54:45 +03:00