fune/mobile/android
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
..
annotations
app Bug 1488720 - [Android M+] improve themes.xml; r=jchen 2018-09-06 18:40:53 +00:00
base Bug 1488174 - Use UpdateServiceHelper to decide on whether to add Updater notification channel. r=jchen 2018-09-07 07:12:50 +00:00
branding Bug 1349522 - Provide alternative adaptive-icon with Android SDK O; r=jchen 2018-08-02 15:06:24 +03:00
chrome Bug 1484413: Split ReaderMode.jsm into separate checking and loading components. r=Gijs 2018-08-17 23:10:59 -07:00
components Bug 1396684 - Allow extensions to access tab's "attention" flag r=mixedpuppy,robwu 2018-08-28 14:41:31 +00:00
config Bug 1480006 - Enable LTO on Android CI builds. r=froydnj 2018-09-05 07:21:25 +09:00
docs Bug 1475256 - Add documentation for robocop code coverage. r=nalexander,gbrown 2018-09-06 17:02:25 +00:00
extensions Bug 1486885 - Remove error logging inside getBaseDomainFromURI(). r=Gijs 2018-08-30 15:50:20 +00:00
fonts
geckoview Bug 1475256 - Remove top-level 'apply plugin: jacoco' from android configurations. r=nalexander 2018-09-06 17:01:47 +00:00
geckoview_example Bug 1485439 - Upgrade to Java 8. r=nalexander,jchen 2018-08-22 21:15:42 +02:00
gradle Bug 1474859 - Enable Multidex for all builds; r=nalexander 2018-08-06 18:38:48 +03:00
installer Bug 1484876 - Part 5: Merge the PrivateBrowsingTrackingProtectionWhitelist service with PrivateBrowsingUtils.jsm; r=johannh 2018-08-22 12:02:44 -04:00
locales Bug 1476034 - about:crashes: switched to fluent. r=flod,Pike 2018-08-01 10:31:14 +03:00
modules Bug 1483397 - Add media control API so apps can control when media is paused r=snorp,rbarker,jchen 2018-08-28 21:55:03 +00:00
services Bug 1476720 - Set MLS notification action. r=jchen 2018-07-26 17:42:19 +03:00
stumbler Bug 1476720 - Set MLS notification action. r=jchen 2018-07-26 17:42:19 +03:00
tests Bug 1475256 - Skip robocop tests that fail on debug and ccov builds. r=gbrown 2018-09-06 17:01:01 +00:00
themes Bug 1480934 - Saving Reader View page yields blank page fixed by removing inline style r=jaws,ckerschb 2018-08-14 03:26:24 +00:00
thirdparty Bug 1486432 Leanplum push notifications are not received on devices with Android O or above r=JanH,flod 2018-09-03 10:21:51 +00:00
.eslintrc.js Bug 1488445 - Remove and replace obsolete ESLint rules. r=mossop 2018-09-04 18:08:43 +00:00
app.mozbuild
build.mk
confvars.sh Bug 1476333 - Define the browser chrome URL as BROWSER_CHROME_URL so it can be accessed from AppConstants instead of a pref;r=gps 2018-07-24 08:12:48 -07:00
debug_sign_tool.py
gradle.configure Bug 1475256 - Turn archive-geckoview-coverage-artifacts into archive-coverage-artifacts. r=nalexander 2018-09-06 17:00:17 +00:00
gradle.py
LICENSE
mach_commands.py Bug 1475256 - Turn archive-geckoview-coverage-artifacts into archive-coverage-artifacts. r=nalexander 2018-09-06 17:00:17 +00:00
moz.build
moz.configure