fune/toolkit/components
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
..
aboutcache
aboutcheckerboard
aboutmemory Bug 1337794 - remove obsolete pagehide handling hacks from browser.js r=mconley 2018-09-04 17:55:05 +00:00
aboutperformance Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
alerts Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-08-31 19:35:06 +03:00
antitracking Bug 1488635 - Add a test with the cookie permission for the image cache case, r=ehsan 2018-09-06 11:13:04 +02:00
apppicker Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
asyncshutdown Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
autocomplete Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
backgroundhangmonitor Bug 1476405: Part 5 - Create nsThread wrapper and use reasonable stack size for BackgroundHangMonitor. r=erahm 2018-07-20 13:31:14 -07:00
browser Bug 1488628 - Change some nsIWebNavigation method arguments from wstring to AString. r=nika 2018-09-05 13:42:16 +10:00
build Backed out changeset 5950c9d63c3b (bug 1090497) for build bustages on several files. CLOSED TREE 2018-08-02 19:59:53 +03:00
captivedetect Bug 1488628 - Change some nsICaptivePortalDetector method arguments from wstring to AString. r=valentin 2018-09-05 13:40:04 +10:00
cleardata Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
clearsitedata
cloudstorage
commandlines Bug 1486182: Follow-up: Fix straggler nsIUTF8StringEnumerator references. r=bustage CLOSED TREE 2018-08-28 14:29:16 -07:00
contentprefs Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
contextualidentity Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
crashes Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
crashmonitor Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
ctypes Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
diskspacewatcher
downloads Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
enterprisepolicies
extensions Bug 1489315 - Move ExtensionTelemetry into its own JSM module. r=mixedpuppy 2018-09-07 16:27:44 +00:00
feeds Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
filewatcher Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
finalizationwitness Bug 1486570 - Don't create finalization witnesses when recording or replaying, r=froydnj. 2018-08-31 05:25:50 -10:00
find Bug 1488628 - Change nsIWebBrowsing.searchString to an AString. r=froydnj 2018-09-05 13:38:51 +10:00
gfx Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
jsoncpp Backed out changeset 5950c9d63c3b (bug 1090497) for build bustages on several files. CLOSED TREE 2018-08-02 19:59:53 +03:00
lz4 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
maintenanceservice Bug 1475566 Disable #pragma comments for MinGW Builds r=glandium 2018-08-29 03:50:39 +00:00
mediasniffer Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
microformats Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
mozintl Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
mozprotocol
narrate Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-08-31 19:35:06 +03:00
normandy Bug 1488927 - Make about:studies "remove" button work again r=aswan 2018-09-07 03:01:17 +00:00
osfile Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-08-31 19:35:06 +03:00
parentalcontrols
passwordmgr 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
perf
perfmonitoring Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
places Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-09-07 00:59:25 +03:00
printing Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
printingui Bug 1465294 Part 13 - Don't create printing proxy child in middleman processes, r=mconley. 2018-07-23 14:57:08 +00:00
processsingleton Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
promiseworker Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-08-31 19:35:06 +03:00
prompts Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
protobuf Bug 1486859 - update protobuf's atomicops code to understand aarch64 windows; r=Mossop 2018-08-28 15:39:54 -04:00
reader Bug 1484413: Split ReaderMode.jsm into separate checking and loading components. r=Gijs 2018-08-17 23:10:59 -07:00
reflect
remote Bug 1480517 - Unregister remote service DBus object at nsDBusRemoteService::Shutdown(). r=jhorak 2018-08-08 10:56:25 +03:00
remotebrowserutils Bug 1488321 - Fix up nsISHEntry.{index,getEntryAtIndex()}. r=nika 2018-09-05 09:02:37 +10:00
remotepagemanager Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
reputationservice Bug 1476118 - Add .oxt to the list of executable extensions in download protection. r=francois 2018-08-31 14:57:24 +00:00
resistfingerprinting Bug 1346211 - Part 2: Split JS::ResetTimeZone into an external and internal implementation. r=Waldo 2018-08-16 09:13:18 -07:00
satchel Bug 1486739 - Enable ESLint rule comma-dangle for browser/, services/, taskcluster/ and toolkit/ directories. r=mossop 2018-08-31 06:06:08 +00:00
search Bug 1488448 - Ignore case on blacklist check. r=adw 2018-09-05 17:17:19 +00:00
securityreporter Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
sessionstore Bug 1477923. Make WebIDL callbacks store a global in addition to the object that's used as a callback. r=mccr8 2018-08-03 17:11:39 -04:00
startup Bug 1488628 - Change some nsIUserInfo attrributes arguments string/wsstring to ACString/AString. r=erahm 2018-09-05 14:14:39 +10:00
statusfilter
telemetry Bug 1488952 - Bump tab close Telemetry probe expiries. data-review=liuche, r=Gijs 2018-09-07 16:48:29 +00:00
terminator Backed out changeset 1e9ecba54e7b (bug 1348273) for failing on widget/tests/test_bug1123480.xul 2018-08-04 12:39:40 +03:00
thumbnails Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
timermanager Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
tooltiptext Bug 1359030 - stop using xlink:href in browser/ and toolkit/, r=jaws 2018-08-04 14:57:43 +02:00
typeaheadfind Bug 1488628 - Change nsIWebBrowsing.searchString to an AString. r=froydnj 2018-09-05 13:38:51 +10:00
url-classifier Bug 1484988 - Avoid writing past the logical length of a string in Toolkit. r=froydnj 2018-09-03 06:51:33 +00:00
urlformatter Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
utils Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
viewconfig Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
viewsource Bug 1488628 - Change nsISHEntry.title to an AString. r=nika 2018-09-05 11:29:36 +10:00
windowcreator Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
windowwatcher Bug 1486932 part 1. Stop using nsIDOMStorage in xpidl APIs. r=mccr8 2018-08-31 13:56:54 -04:00
workerloader Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
xulstore Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
moz.build Bug 1484876 - Part 5: Merge the PrivateBrowsingTrackingProtectionWhitelist service with PrivateBrowsingUtils.jsm; r=johannh 2018-08-22 12:02:44 -04:00
nsDefaultCLH.js Bug 1484496: Part 5b - Convert toolkit/ nsISimpleEnumerator users to use JS iteration. r=Gijs 2018-08-18 19:27:50 -07:00
nsDefaultCLH.manifest
update-jsoncpp.sh