This also took the opportunity to clean up and modernize code it touched (mostly tests,
which needed changes but not quite as many changes as I ended up making).
MozReview-Commit-ID: ApPUTHXFprM
--HG--
extra : rebase_source : b6f44e4cbd62e2e41fd12d70e12362a4afcb4cb2
See the comment on "Address test failures caused by bumping timer precision to 2 ms"
for more details.
MozReview-Commit-ID: LrsucEPdZIo
--HG--
extra : rebase_source : 8147c034f7dc93f678eebc80b0afabf55729d804
This patch was autogenerated by my decomponents.py
It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.
It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.
It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)
MozReview-Commit-ID: DeSHcClQ7cG
--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
Also move promiseStopServer to the common/ head_helpers.js
MozReview-Commit-ID: B3Idnj6rPAZ
--HG--
extra : rebase_source : adb07d381aca118b9b49971f87e68a239dbcfb70
Also move promiseStopServer to the common/ head_helpers.js
MozReview-Commit-ID: B3Idnj6rPAZ
--HG--
extra : rebase_source : adb07d381aca118b9b49971f87e68a239dbcfb70
Also move promiseStopServer to the common/ head_helpers.js
MozReview-Commit-ID: B3Idnj6rPAZ
--HG--
extra : rebase_source : 0c3ee2b37448467fdd7fec04dbdf39255608901b
Also move promiseStopServer to the common/ head_helpers.js
MozReview-Commit-ID: B3Idnj6rPAZ
--HG--
extra : rebase_source : 0c3ee2b37448467fdd7fec04dbdf39255608901b
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm
MozReview-Commit-ID: 1Nc3XDu0wGl
--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm
MozReview-Commit-ID: 1Nc3XDu0wGl
--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm
MozReview-Commit-ID: 1Nc3XDu0wGl
--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
It now follows the setting of the identity.fxaccounts.allowHttp preference.
MozReview-Commit-ID: 9646Xi48QMP
--HG--
extra : rebase_source : 630e65bebc00e755ca3be1d159e08fec738d590f
DONTBUILD because whitespace-only.
Notes:
* hawkrequest.js has a redundant trailing newline; this patch removes it.
* browser.ini is missing a trailing newline; this patch gives it one.
MozReview-Commit-ID: DYstjpDejgg
The private browsing mode check reached into the sendingContext's browser's docShell
for it's check, the Law of Demeter was shattered.
PrivateBrowsingUtils.jsm provides all the functionality needed for the check,
just call PrivateBrowsingUtils.isBrowserPrivate with the sendingContext's browser.
MozReview-Commit-ID: DRIU1fy94ml
***
Bug 1378766 - Remove the `sendingContext.browser` defined check
MozReview-Commit-ID: GWFFggOoItP
--HG--
extra : rebase_source : 1c99ee2ea2cceee185ba20ff54e6e67f86f10766
There are a few places in services/ tests that import btoa and atob,
but this is not necessary, because those are both defined on the
XPCShell global (by glob_functions in XPCShellImpl.cpp). It sounds
like it didn't work at some point on B2G (see bug 937114) but that
isn't relevant any more. I want to fix this because the way these
properties are imported will break with shared JSM globals.
MozReview-Commit-ID: HoxqIS98p7B
--HG--
extra : rebase_source : 7800baee8ebc5e3ab3f52a62e30e5cde8d19876b
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.
MozReview-Commit-ID: 1buqgX1EP4P
--HG--
extra : rebase_source : 3a9ea310d3e4a8642aabbc10636c04bfe2e77070