Commit Graph

3367 Commits

Author SHA1 Message Date
Brendan Dahl
018cc20948 Bug 1444973 - Remove browser-test-overlay.xul. r=ahal
On desktop use sub script loader during bootstrap instead of the overlay.
On android use a component that listens for browser windows to be created
and then use a sub script loader.

MozReview-Commit-ID: Knj5OdVNEMA

--HG--
extra : rebase_source : d3374e6bc5feccf5ec22d8bc33f4b829a82a71b8
2018-03-13 17:33:33 -07:00
Emilio Cobos Álvarez
e9676561ce Bug 1446954: Remove support for running tests on automation without stylo configurations. r=froydnj
You can still run them on a --disable-stylo build, as long as that works
(presumably not for long).

I think I haven't missed anything, but please double-check.

MozReview-Commit-ID: 3BIAEjgTLo5
2018-03-20 11:29:08 +01:00
Boris Zbarsky
89ea512161 Bug 1446711 part 7. Switch the nsIDOMMouseEvent::MOZ_SOURCE_* constants over to MouseEventBinding. r=qdot
We can't include MouseEventBinding.h in MouseEvents.h because that produces
this include loop:

MouseEventBinding.h -> UIEventBinding.h ->
nsGlobalWindow.h -> nsGlobalWindowInner.h -> nsRefreshDriver.h ->
AnimationEventDispatcher.h -> AnimationComparator.h -> Animation.h ->
EffectCompositor.h -> PseudoElementHashEntry.h -> Element.h ->
PointerEventHandler.h -> MouseEvents.h -> MouseEventBinding.h

MozReview-Commit-ID: 6FNksGil7uD
2018-03-20 00:16:06 -04:00
arthur.iakab
877c99c523 Merging mozilla-inbound to mozilla central a=merge 2018-03-19 12:43:31 +02:00
Masayuki Nakano
1c1a60c08d Bug 1446253 - Make EventUtils.synthesizeComposition() dispatch keydown and keyup event in default r=smaug
We'll start to dispatch keydown event and keyup event even during composition.
So, for testing those events won't break our UI, we should make
EventUtils.synhtesizeComposition() and EventUtils.synthesizeCompositionChange()
dispatch keydown event and keyup event even if callers don't specify keyboard
event explicitly.

Typically, "keydown" event is marked as "processed by IME", i.e., keyCode
value is set to DOM_VK_PROCESSKEY and key is set to "Process", with our
widget which handles native IME and key input.  On the other hand, "keyup"
is NOT marked as so.

Therefore, this patch makes TextInputProcessor emulates this behavior without
any new special flags.  And for making possible to emulate special cases,
this patch adds two flags to nsITextInputProcessor.  One is
KEY_DONT_MARK_KEYDOWN_AS_PROCESSED.  The other is KEY_MARK_KEYUP_AS_PROCESSED.
Unfortunately, those flags have opposite meaning but this must be better than
making necessary to one flag for emulating usual keydown/keyup events.

Finally, this makes some tests specify better keyboard information to
synthesizeComposition() and synthesizeCompositionChange() to emulate
actual keyboard events during composition.

MozReview-Commit-ID: ItYaXILkNQE

--HG--
extra : rebase_source : e50cc77c1efbc12686d7ea334d41926c7392b30d
2018-03-16 22:35:07 +09:00
Tooru Fujisawa
a6e9caf67e Bug 1442465 - Part 6: Stop returning a Promise from BrowserTestUtils.removeTab. r=dao 2018-03-19 11:16:49 +09:00
Tooru Fujisawa
1adba8c1fc Bug 1442465 - Part 4.2: Stop unnecessarily awaiting on BrowserTestUtils.removeTab (simple part). r=dao 2018-03-19 11:16:45 +09:00
Tooru Fujisawa
3038c58523 Bug 1442465 - Part 2: Use BrowserTestUtils.{waitForTabClosing,waitForSessionStoreUpdate} instead of BrowserTestUtils.tabRemoved. r=dao 2018-03-19 11:12:13 +09:00
Tooru Fujisawa
20da8976aa Bug 1442465 - Part 1: Add BrowserTestUtils.{waitForTabClosing,waitForSessionStoreUpdate}. r=dao 2018-03-19 11:12:13 +09:00
Geoff Brown
b2a1ec39be Bug 1440714 - Convert rungeckoview to adb.py; r=bc 2018-03-16 09:37:48 -06:00
Kris Maglione
ef176184cb Bug 1445780: Part 1 - Allow synthesizeMouse to accept an array of selectors for content in iframes. r=aswan
MozReview-Commit-ID: JCRagaqkkZ6

--HG--
extra : rebase_source : 81d1bd14030b41196c951512c26025e2cf0db9ac
2018-03-14 15:08:34 -07:00
Kris Maglione
83371fe0b5 Bug 1445551: Part 4 - Remove compartment-per-addon. r=mccr8
The compartment-per-addon code was added so that we could segregate at least
some of the code from system-privileged add-ons into tagged compartments, even
when it ran in browser windows. That allowed us to apply certain special
behavior to them, such as enabling e10s shims, and to track some performance
characteristics.

The only remaining chrome-privileged add-ons now are system add-ons controlled
by us, and the shim system and per-compartment performance metrics are gone,
it no longer serves a purpose.

MozReview-Commit-ID: Ap186bWAaqP

--HG--
extra : rebase_source : c5bf81b44dd42b7cebce2784b7dd98480b41b593
2018-03-13 19:43:30 -07:00
Kris Maglione
83957914cc Bug 1445551: Part 1b - Whitelist unsafe CPOW use in existing tests. r=mconley
MozReview-Commit-ID: 4ojwvjw9XGT

--HG--
extra : rebase_source : f7b79ad5998f1138266e89767ee1b434e4797b30
2018-03-14 14:35:05 -07:00
Kris Maglione
63ee0f9a5a Bug 1445551: Part 1a - Add uses-unsafe-cpows annotation to mochitest harness. r=mconley
This allows us to specifically whitelist browser mochitests which still rely
on unsafe CPOWs, and run them in a separate Sandbox global with permissive
CPOWs enabled.

The test harness and most of the in-tree tests will run with permissive CPOWs
disabled, like the rest of the browser.

MozReview-Commit-ID: CxIkuxr5PXJ

--HG--
extra : rebase_source : 897c951e5ea84db58e92c8b627679f029ebf4a42
2018-03-13 19:11:10 -07:00
Andrew Halberstadt
8080274aaa Bug 1432683 - [mochitest] Remove 'log' argument from the main options object, r=gbrown
This was causing problems for the test-verify mode. Sometimes the 'log' option
can contain a class instance and then 'verify' attempts to deepcopy that (which
fails).

Since the 'log' option is only used in the Mochitest constructor, it's probably
simplest to just remove it from the main options object right at the start.

MozReview-Commit-ID: 9UQAYxr2Zvm

--HG--
extra : rebase_source : e10b9419f65b0209e650de1afb5765072833d780
2018-03-12 10:55:27 -04:00
Kartikaya Gupta
3191dbda01 Bug 1437295 - Promise-ify some of the paint/flushing methods. r=botond
This is functionally a no-op but it makes code cleaner, particularly
some of the changes in a future patch.

MozReview-Commit-ID: 5UoT3aNJaPz

--HG--
extra : rebase_source : 53dbabc53ce5fbb549fa66976b41799f03be201d
2018-03-10 23:26:27 -05:00
Cosmin Sabou
372f39f032 Backed out changeset d679c9a9afa0 (bug 1442582) for mochitest browser chrome failures at browser_ext_tabs_create.js on a CLOSED TREE 2018-03-07 22:19:53 +02:00
Dão Gottwald
3d577d8685 Bug 1442582 - Remove the tabbrowser-tabpanels binding. r=mconley
MozReview-Commit-ID: GBOzGTZFBcJ

--HG--
extra : rebase_source : 1955bf18ce22371fecaf4c56800346640051647b
2018-03-07 11:35:57 +01:00
Nick Alexander
068ed9c255 Bug 1443246 - Don't sign Robocop APK during stage-package. r=gbrown
MozReview-Commit-ID: FWIrGbHqt4J

--HG--
extra : rebase_source : 79103d884f38c04a688aa082c653df0b41b58c4b
2018-03-05 11:20:16 -08:00
Sebastian Hengst
6098a3cc4d merge mozilla-central to mozilla-inbound. CLOSED TREE 2018-03-01 12:29:42 +02:00
Sebastian Hengst
3a10644021 Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout
Backed out changeset 83c87140dc3d (bug 888600)
Backed out changeset 2efb9b1753f6 (bug 888600)
Backed out changeset af5303781961 (bug 888600)
Backed out changeset 79ef59047e63 (bug 888600)
Backed out changeset 30d568d628dd (bug 888600)
Backed out changeset c7bd4c6c9741 (bug 888600)

--HG--
extra : histedit_source : 791b22f6770f4fead2f909478a93d65d85829fe0%2Cbb387309e90f53e1dde45dcf8cf4ebedcc6e5c5e
2018-03-01 11:51:09 +02:00
Florian Quèze
f3ee8dd20b Bug 1433175 - more aggressive scripted patch to replace remaining Components.classes, Components.interfaces, Components.utils and Components.results uses with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:35 +01:00
Florian Quèze
c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Sebastian Hengst
769222fadf merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : browser/base/content/tabbrowser.xml => browser/base/content/tabbrowser.js
2018-02-28 12:54:12 +02:00
Tooru Fujisawa
9a32a77bc1 Bug 1435910 - Part 0.2: Add BrowserTestUtils.{promiseAlertDialogOpen,promiseAlertDialog}. r=Gijs 2018-02-28 10:36:42 +09:00
Andreea Pavel
d805787970 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-02-28 00:25:43 +02:00
Brian Grinstead
18bb37dcc8 Bug 1392352 - Part 2 - Translate the tabbrowser implementation into a JS class;r=mconley,r=dao CLOSED TREE
We keep the XBL binding around for <content>, <constructor>, and <destructor>. This can
eventually be migrated to a Custom Element once we have platform support, but in the meantime
this is a way to get the many thousands of LOC into a JS class.

MozReview-Commit-ID: 1dCQp527yF9

--HG--
extra : rebase_source : 26b833413bab71168aa15e03f0f3803884be3f6b
extra : amend_source : 150cef6748ca8a9e819de0c674fac5966dd574cf
2018-02-27 10:04:14 -08:00
Peter Van der Beken
6cf0e1c871 Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : f6f781b04923f67f60718706a78b3c4de15eca94
2018-02-22 20:22:29 +01:00
Nick Alexander
03710dc7d0 Bug 1440743 - Part 2: Remove most of MOZ_BUILD_MOBILE_ANDROID_WITH_GRADLE. r=jchen
This is the easy stuff -- everything but mobile/android/base/Makefile.in.

MozReview-Commit-ID: 5x2z97AHUrR

--HG--
extra : rebase_source : 531fd41d367cad071b209b85ca5b5602fd7cbf7b
2018-02-22 11:45:51 -08:00
Sebastian Hengst
7be9fed7d0 merge mozilla-inbound to mozilla-central. a=merge 2018-02-24 02:58:35 +02:00
Florian Quèze
682b1ec3b2 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Andrew Halberstadt
af02603e3d Bug 1440405 - Fix faulty assumption that only one log handler can be installed in |mach test/mochitest|, r=froydnj
MozReview-Commit-ID: AzKLAgW5agx

--HG--
extra : rebase_source : 34cebcc49435a3c5875b4805d00aeff2c7530b9c
2018-02-23 09:40:06 -05:00
James Willcox
bf50533bd6 No bug, followup for linting failures r=me
MozReview-Commit-ID: At5TO40eKhJ
2018-02-22 09:52:14 -06:00
James Willcox
a47a1c6678 Bug 1291387 - Make mochitest and reftest work against TestRunnerActivity r=gbrown,jchen
Pass --appname org.mozilla.geckoview.test to 'mach mochitest' or
'mach reftest'. This runs the tests without e10s currently.

MozReview-Commit-ID: 7TIvA3zRCw2
2018-02-22 09:18:37 -06:00
Dorel Luca
9b2f91981c Backed out 6 changesets (bug 888600) for Valgrind and build bustge on a CLOSED TREE
Backed out changeset 7c8317f4ad48 (bug 888600)
Backed out changeset 5b990735f1ad (bug 888600)
Backed out changeset 9eafe225b804 (bug 888600)
Backed out changeset 16af80d6cd93 (bug 888600)
Backed out changeset a109987af625 (bug 888600)
Backed out changeset 0949dba396ad (bug 888600)
2018-02-22 13:56:43 +02:00
Peter Van der Beken
ab910ec03f Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : 05d1b150ffa84931ace6dbd66385d1d014a03afe
2017-11-23 16:27:27 +01:00
Hiroyuki Ikezoe
277d9cedf4 Bug 1441872 - Wait for next tick in BrowserTestUtils.tabRemoved. r=arai
Ideally we shouldn't listen "SessionStore:update" to know the tab was removed
since closed tab information is updated in the listener of "SessionStore:update"
in browser.  So it might be possible to that the listener in BrowserTestUtils
is invoked before the listener in browser.

MozReview-Commit-ID: A3S28Bmyvtw
2018-03-01 00:21:00 +09:00
Geoff Brown
385ab244a3 Bug 1440674 - Simplify some code in remoteautomation.py; r=jmaher
remove RemoteAutomation._product and product options;
remove some unused code paths;
remove "blobber" references;
remove incorrect and/or unhelpful comments;
s/_devicemanager/_dm/ (shorter, improve readability)
2018-02-23 09:47:57 -07:00
Geoff Brown
c2cb30ae1f Bug 1440684 - Fix 'mach robocop' bustage for grant_runtime_permissions; r=snorp 2018-02-23 09:47:56 -07:00
Masayuki Nakano
cf83ee7bb4 Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug
Note that this patch also replaces legacy VK_* with KEY_*, and replaces
synthesizeKey() for inputting some characters with sendString() because
it's better and clearer what it does and it sets shiftKey state properly.

MozReview-Commit-ID: De4enbjux3T

--HG--
extra : rebase_source : 2296b84bff8e22f01eeb48cd8614fac5db11136a
2018-02-15 04:15:39 +09:00
Masayuki Nakano
a10092f7a0 Bug 1438157 - part 1: Make EventUtils.synthesizeKey()'s second argument, aEvent, optional r=smaug
Most callers of EventUtils.synthesizeKey() call it only with the first argument,
aKey.  Therefore, it should be optional argument.

This patch also fixes a bug of EventUtils.sendChar(). It sets shiftKey to
true even for "0" - "9" and " ".  When I replace syntesizeKey() which just
type text with sendString() in the following patch, I hit this bug.

MozReview-Commit-ID: 9ndL9jLho2N

--HG--
extra : rebase_source : d9dc6bd5f9091da674f0481b4b0098694360a125
2018-02-14 22:31:27 +09:00
Thomas Wisniewski
16742d6e24 Bug 792808 - Change test_SpecialPowersExtension.html to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=mrbkap
MozReview-Commit-ID: JW37fmAuxE2

--HG--
extra : rebase_source : 4b2a3e05f619332f9fdeb42190e9253ad6e9a26d
2017-09-19 12:18:59 -04:00
Narcis Beleuzu
2d9816273c Merge inbound to mozilla-central. a=merge 2018-02-16 11:49:59 +02:00
Tooru Fujisawa
b79ff0590c Bug 1437728 - Wait for a tick before removing tab in BrowserTestUtils.withNewTab. r=gijs
--HG--
extra : rebase_source : d54c202b77b3213cc0988d2994a664215cf406f2
2018-02-13 10:27:08 +09:00
Kirk Steuber
4905862de3 Bug 1429150 - Make the path to the root of the test data directory available via a pref r=ahal
In order to facilitate testing of enterprise policies that must be applied via a JSON at startup, the path to the test data will now be made available during testing.

MozReview-Commit-ID: IUhXXsiPRYW

--HG--
extra : rebase_source : 297bff6b0bf276edfff3a1920c733c89c62b085c
extra : source : eb38c57de57a288f67156271c09bd867b1fb2643
2018-02-07 14:49:49 -08:00
Masayuki Nakano
453528b4dc Bug 1436926 - part 1: EventUtils.synthesizeKey() should guess KeyboardEvent.code value if it's not specified explicitly r=smaug
For testing key operation stricter, all automated tests should set
KeyboardEvent.code properly.  However, in most cases, automated tests
assumes that active keyboard layout is US (ANSI) keyboard layout.

Therefore, synthesizeKey() should guess KeyboardEvent.code value from
KeyboardEvent.key value as US keyboard layout automatically.

MozReview-Commit-ID: 85JyyaBwpfI

--HG--
extra : rebase_source : 8e4f3f3ac12e0dd4262813464f300dd91c996cda
2018-02-09 18:29:03 +09:00
Geoff Brown
ad6742b105 Bug 1393326 - Enable runByManifest for Android mochitests and run Android mochitest-chrome in more chunks; r=jmaher 2018-02-12 09:05:59 -07:00
Geoff Brown
cd78045019 Bug 1434423 - Check for installation of correct test application when --app is passed to mach; r=jmaher 2018-02-09 14:34:20 -07:00
Boris Zbarsky
fce30e834b Bug 1436508 part 10. Remove use of nsIDOMKeyEvent in JS. r=masayuki
MozReview-Commit-ID: GGciORX62Yh
2018-02-09 11:17:09 -05:00
Geoff Brown
366841c755 Bug 1435624 - In Android mochitest-chrome, never push tests twice; r=jmaher 2018-02-07 13:33:44 -07:00