Commit Graph

6530 Commits

Author SHA1 Message Date
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
Gijs Kruitbosch
2d9f2c23fe Bug 1430511, remove unused whitelist entry, rs=firebot,bustage 2018-01-18 16:15:53 +00:00
Marco Bonardo
3c4c8ae83c Bug 1416305 - Copying a search suggestion from the address bar gives back an http url. r=adw
MozReview-Commit-ID: DBfZvVOxmzE
2018-01-16 12:23:09 +01:00
Cosmin Sabou
ea27e02ea2 Merge inbound to mozilla-central. a=merge 2018-01-17 11:46:53 +02:00
Bevis Tseng
0fe61a1e53 Bug 1428253 - Resume the test at next tick after the resolve of openTabSelectedPromise. r=:Gijs.
With the conformant promising scheduling, the promise callback can be performed
eariler at the returning from a event listener if possible instead of the end
of current task.

The resolving of "selected" change of the openedTab becomes part of the process
of RemotePrompt.openTabPrompt() where the 'DOMWillOpenModalDialog' event is fired.

We should resume the test at next tick to ensure that the openTabPrompt() is
done before removing the openedTab.
2018-01-16 14:04:36 +08:00
Neil Deakin
378db2b876 Bug 1427449, don't close the menu in nsMenuBarFrame::FindMenuWithShortcut when just checking if such a menu shortcut key exists from the keydown event handler, also for extra safety this should only happen for menus not panels, r=felipe 2018-01-15 15:16:56 -05:00
Nika Layzell
635711a262 Bug 1383876 - Part 2: Remove GroupedSHistory and Prerendering logic from JS code, r=freesamael
MozReview-Commit-ID: KwvOcgQKheK
2018-01-12 17:52:54 -05:00
Marco Bonardo
afcf9c1e9e Bug 1416041 - Collapse one-offs buttons if only the current engine is active and don't select search settings when collapsed. r=florian
MozReview-Commit-ID: 9aOM19NPRzt
2018-01-11 18:11:34 +01:00
Gijs Kruitbosch
d492678217 Bug 1429709 - make relative SVG links absolute, r=jaws
MozReview-Commit-ID: 9kSdFbpPx32
2018-01-12 00:19:12 +00:00
Gijs Kruitbosch
6dd1141e99 Bug 1430507 - pass something that's always serializable for SVG elements and the context menu, r=nhnt11
MozReview-Commit-ID: KUDsCdzAM4D
2018-01-15 09:45:50 +00:00
Prathiksha
36b3466343 Bug 1369482 - Make hostnames in permission prompts much more prominent. r=johannh
MozReview-Commit-ID: 89m2QVzj8DG
2017-12-14 21:00:28 +05:30
Tim Nguyen
e0347f3526 Bug 1428938 - Remove legacy toolbar customization code. r=Gijs
MozReview-Commit-ID: 1ppfxI7yYJW
2018-01-11 16:35:17 +00:00
Sylvestre Ledru
ee2a7f050d Bug 1278282 - Update of the tests to reflect the removal of the gtk2 r=lsalzman
MozReview-Commit-ID: Htgc44dCEjX
2018-01-10 08:55:38 +01:00
Andrea Marchesini
fae42fd6b6 Bug 1428745 - Remove support for version parameter from script loader - tests, r=jonco
* * *
Bug 1428745 - Remove support for version parameter from script loader - fixing a broken depending test - CLOSED TREE, r=me
* * *
Bug 1428745 - Remove support for version parameter from script loader - fixing WPTs - CLOSED TREE, r=me
* * *
Bug 1428745 - Remove support for version parameter from script loader - fixing tests - CLOSED TREE, r=me
2018-01-09 17:00:49 +01:00
Narcis Beleuzu
972550c448 Backed out 6 changesets (bug 1428745) for wpt failures on script-type-and-language-with-params.html. r=backout on a CLOSED TREE
Backed out changeset 9e84285278fe (bug 1428745)
Backed out changeset e199f1ccf64c (bug 1428745)
Backed out changeset dfb9af93ac53 (bug 1428745)
Backed out changeset 1d975770bd9a (bug 1428745)
Backed out changeset 1d5dc7dfd429 (bug 1428745)
Backed out changeset 4e53f251c5b8 (bug 1428745)
2018-01-10 00:37:59 +02:00
Andrea Marchesini
a8d2ddc57e Bug 1428745 - Remove support for version parameter from script loader - tests, r=jonco 2018-01-09 17:00:49 +01:00
Myk Melez
206f348b11 Bug 1428529 - ensure window.opener.Preferences is defined; r=jaws
MozReview-Commit-ID: DNvpuQplNgb
2018-01-08 20:33:40 -08:00