Commit Graph

6345 Commits

Author SHA1 Message Date
Narcis Beleuzu
0b4d4a6936 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-08 21:36:33 +02:00
Brindusan Cristian
abbb2ad09f Merge inbound to mozilla-central. a=merge 2018-02-08 21:02:00 +02:00
Florian Quèze
18f1c218c4 Bug 1434945 - the tabbar visibility should be set during a DOMContentLoaded listener, r=johannh. 2018-02-08 19:40:15 +01:00
Florian Quèze
2199ef4ac7 Bug 1371610 - Delay getting the search component service until the first StartSearch, r=mak. 2018-02-08 12:28:34 +01:00
Andrew McCreight
1d9e026e96 Bug 1436184 - Remove definitions of Ci, Cr, Cc, and Cu from httpd.js and .sjs files. r=florian
MozReview-Commit-ID: IKKb9zr2OSf
2018-02-06 15:03:13 -08:00
Nathan Watson
5d40195377 Bug 1434262 - Remove PlacesTestUtils.clearHistory() r=mak
MozReview-Commit-ID: In2RaM0LBsc
2018-01-31 22:03:05 -08:00
Mark Banner
4fd95a27c9 Bug 1230369 - Manually fix some remaining instances of Ci/Cc/Cu definitions and switch Components.* to using the shorthand in some places. r=florian
MozReview-Commit-ID: 9SmoR9RlvZE
2018-02-07 09:24:15 +00:00
Marco Bonardo
0344085e3c Bug 1436347 - Move first PlacesUtils and PlacesBackups use farther in the startup test. r=florian
MozReview-Commit-ID: 2AKeu83ovkr
2018-02-07 12:25:30 +01:00
Andrew McCreight
272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
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
2018-02-06 09:36:57 -08:00
Cosmin Sabou
27ede269b6 Backed out 3 changesets (bug 1434883) for frequent leaks in AbstractThread, AnimationTimeline, Annotators, Array, AsyncFreeSnowWhite, ... on a CLOSED TREE
Backed out changeset c8115e90ffa8 (bug 1434883)
Backed out changeset 22c83b1d417d (bug 1434883)
Backed out changeset 085796417462 (bug 1434883)
2018-02-06 16:30:56 +02:00
Paolo Amadini
d6f647dbbf Bug 1427350 - Part 2 - Rename _matchCount to matchCount. r=mak
MozReview-Commit-ID: 2oo0Nxp3Qot
2018-02-04 15:00:58 +00:00
Paolo Amadini
ea8006dd5d Bug 1434883 - Part 2 - Use an asynchronous API to open PanelMultiView panels. r=Gijs
MozReview-Commit-ID: 3VzoxJ3Ociy
2018-02-06 09:02:27 +00:00
Paolo Amadini
e798559ae2 Bug 1434883 - Part 1 - Fix tests for the activated page action panel. r=Gijs
The promisePanelEvent function was unreliable because it did not raise an error if the provided panel did not exist, which caused one of the callers to ignore a missing panel silently. All the callers have now been updated based on whether they expect the panel to exist or not.

MozReview-Commit-ID: AGT4rHls4OB
2018-02-04 16:32:20 +00:00
Yuri Khan
9d5fd8c815 Bug 1394304: Part 2 - Add tests for _whereToOpen. r=adw 2018-02-04 18:42:54 +07:00
Narcis Beleuzu
e6c2ab7f12 Merge inbound to mozilla-central. a=merge 2018-02-06 11:54:42 +02:00
Johann Hofmann
e6c0b3b0fe Bug 1167238 - Part 5 - Clean up sanitize.js usage in remaining tests. r=mak
This cleans up all tests that were not moved into the sanitize directory
as part of the previous commit, but still use sanitize.js

MozReview-Commit-ID: 1CVa0ByVYDk
2018-01-18 16:06:52 +01:00
Johann Hofmann
e1911f08a5 Bug 1167238 - Part 4 - Move sanitize tests into a topical directory and clean up sanitize.js usage. r=mak
We're changing the way sanitize.js/Sanitizer.jsm works and need to adjust a lot of tests to that.
I'm using this opportunity to also move the sanitization tests into their
own topical directory and out of b/b/c/test/general.

MozReview-Commit-ID: GHOqr4hT52b
2018-01-18 16:05:36 +01:00
Masayuki Nakano
ee96ab060f Bug 1435180 - Make existing tests aware of strict keypress event dispatch r=smaug
We'll stop dispatching keypress events on web contents for conforming to spec of
UI Events.  Some existing tests assumes that keypress events are fired even
when non-printable keys are pressed.

This patch makes them check the pref,
"dom.keyboardevent.keypress.dispatch_non_printable_keys_only_system_group_in_content"
and only listen to keydown event instead of keypress even if the pref is true
and expected key event is not a printable key press.

MozReview-Commit-ID: 6bKoK7dsB0l
2018-02-02 18:10:22 +09:00
Jonathan Kingston
b12757515a Bug 1354175 - Disable AppCache in insecure contexts. r=baku,bkelly,mayhemer
MozReview-Commit-ID: wYWHkGlV8h
2018-01-12 19:09:30 +00:00
Florian Quèze
c5f15a4700 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Ursula Sarracini
da410b5402 Tests for Bug 1420049. r=Gijs 2017-12-01 10:18:19 -05:00
hemant
40d2910989 Bug 1417937 - Remove unnecessary LoadContextInfo.jsm r=standard8
MozReview-Commit-ID: EnY0uKD4UD1
2018-01-31 23:16:46 +05:30
shindli
71aaa07f8c Backed out changeset e401076359c6 (bug 1354175) for M(8) failures on a CLOSED TREE 2018-01-31 21:26:42 +02:00
Andreea Pavel
33656b48bc Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-01-31 19:39:52 +02:00
Andreea Pavel
b7077f5fb1 Merge inbound to mozilla-central. a=merge 2018-01-31 19:38:21 +02:00
Mark Banner
141e18e4e7 Bug 1434449 - Removed some unused code in jsm files in browser/base and browser/modules. r=florian
MozReview-Commit-ID: 9VhKxnpdzCD
2018-01-30 22:09:02 +00:00
Jonathan Kingston
10d024070b Bug 1354175 - Disable AppCache in insecure contexts. r=baku,bkelly,mayhemer
MozReview-Commit-ID: wYWHkGlV8h
2018-01-12 19:09:30 +00:00
Masayuki Nakano
65ecb061b4 Bug 1134540 - Make all tests stop using nsIDOMWindowUtils.sendKeyEvent() r=smaug
nsIDOMWindowUtils.sendKeyEvent() can dispatch any keyboard events, i.e.,
may dispatch different key events from actual Gecko's behavior.  Instead,
they should use nsITextInputProcessor directly or synthesizeKey() of
EventUtils which wraps nsITextInputProcessor.

MozReview-Commit-ID: EDWqXy1OxJp
2018-01-30 22:05:44 +09:00
Sebastian Hengst
0d326c178e merge mozilla-inbound to mozilla-central. r=merge a=merge 2018-01-31 00:22:27 +02:00
Kris Maglione
0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Mike Taylor
16e86d0d5b Bug 1422985. Update decoder doctor to JSON encode details param value. r=Gijs
MozReview-Commit-ID: JUf4rw5CeCH
2018-01-26 16:46:03 -06:00
Mark Banner
367272ca21 Bug 1433492 - Remove remaining instances of PlacesUtils.asyncHistory.isURIVisited being called directly. r=mak
MozReview-Commit-ID: B1sqEtJcq4L
2018-01-26 16:40:25 +00:00
Kris Maglione
9e04067677 Bug 1432966: Sanitize HTML fragments created for chrome-privileged documents. r=bz f=gijs
This is a short-term solution to our inability to apply CSP to
chrome-privileged documents.

Ideally, we should be preventing all inline script execution in
chrome-privileged documents, since the reprecussions of XSS in chrome
documents are much worse than in content documents. Unfortunately, that's not
possible in the near term because a) we don't support CSP in system principal
documents at all, and b) we rely heavily on inline JS in our static XUL.

This stop-gap solution at least prevents some of the most common vectors of
XSS attack, by automatically sanitizing any HTML fragment created for a
chrome-privileged document.

MozReview-Commit-ID: 5w17celRFr
2018-01-24 14:56:48 -08:00
Gurzau Raul
b7f385a143 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-01-25 19:08:48 +02:00
Paolo Amadini
2f84510771 Bug 1432016 - Part 2 - Move descriptionHeightWorkaround and some other methods to the PanelView class. r=Gijs
MozReview-Commit-ID: 59fUuB35Ygy
2018-01-25 15:35:45 +00:00
Paolo Amadini
f8ef353e81 Bug 1432015 - Part 1 - Fix anchor handling for the action feedback panel. r=Gijs
Commands started from an activated action panel should not be anchored to the main button, and regression tests should simulate the case where both the main action panel and the individual action button are visible and the action is invoked from the main action panel.

MozReview-Commit-ID: Eg1wP2rRe2d
2018-01-21 17:01:59 +00:00
hemant
f279d69dd4 Bug 1370881 - Replace calls to asyncHistory.isURIVisited and promiseIsURIVisited with PlacesUtils.history.hasVisits r=standard8
MozReview-Commit-ID: BHWkJpdYA0g
2018-01-24 20:58:57 +05:30
Kris Maglione
1046270983 Backed out 3 changesets (bug 1431533) for Android mochitest bustage. CLOSED TREE
MozReview-Commit-ID: 5ubE9EMQpZ9
2018-01-24 22:04:59 -08:00
Kris Maglione
50ace7f99d Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
MozReview-Commit-ID: 8V1ZT53ReiP
2018-01-24 15:48:47 -08:00
Andreas Pehrson
46eab681f6 Bug 1299515 - Wire up track-disabling logic to frontend APIs. r=jib, r=johannh
This modifies mediaCaptureWindowState() to say whether a camera or microphone is
actively captured or not. Note that this is not the same as the device being
on or off. If we disallow a device from being off while disabled, we still
notify chrome that we're not actively capturing.

MozReview-Commit-ID: B1taormqc3j
2017-11-17 20:13:06 +01:00
Jonathan Kingston
65aef4b2cc Bug 1335970 - Add prefs to add "Not Secure" text to insecure pages. r=johannh
MozReview-Commit-ID: JtCAjIYI3Qz
2018-01-20 22:41:59 +00:00
Florian Quèze
6756abd7b1 Bug 1434395 - Tentative fix for the browser_pageinfo_firstPartyIsolation.js low frequency intermittent failures, by starting to wait for load events before starting the page load, r=johannh. 2018-02-27 11:10:10 +01:00
Florian Quèze
52d1279817 Bug 1439402 - Fix intermittent browser_pageInfo.js failure by waiting for the load of the correct URI, r=johannh. 2018-02-27 11:10:10 +01:00
Florian Quèze
a0e704279c Bug 1355942 - Fix intermittent browser_pageinfo_svg_image.js failure by waiting for the load of the correct URI, r=johannh. 2018-02-27 11:10:10 +01:00
Florian Quèze
4907e5c567 Bug 1399704 - Fix intermittent browser_pageinfo_image_info.js failure by waiting for the load of the correct URI, r=johannh. 2018-02-27 11:10:10 +01:00
Mark Striemer
8c275ebafd Bug 1431320 - Add support for label back to popupnotification r=johannh
Bug 1369482 originally replaced label with startlabel,hostname,endlabel. This
updates it to replace label with label,hostname,endlabel which should be
backwards compatible.

MozReview-Commit-ID: 3Aj66eaT5ER
2018-01-17 16:05:15 -06:00