Граф коммитов

3724 Коммитов

Автор SHA1 Сообщение Дата
Gijs Kruitbosch d1b26d3f34 Bug 1486824 - review comment follow-up: change params for openNewBrowserWindow to explicitly check for URL, r=nhnt11 2018-09-03 15:16:55 +01:00
Gijs Kruitbosch ef7146a4be Bug 1486824 - change BrowserTestUtils to just call OpenBrowserWindow so it does the same thing as opening a window normally, r=mconley,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D4466

--HG--
extra : rebase_source : e51b66bb18d0e600814b48d5cd3ec9d5dea3028a
extra : source : 96b5a88ac0041a1bd382a731749e1fca9aa911ed
2018-09-03 14:43:38 +01:00
Margareta Eliza Balazs 5ddcd7b745 Backed out changeset 96b5a88ac004 (bug 1486824) for causing frequent failures e.g: browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about.js a=backout 2018-08-31 12:17:27 +03:00
Gijs Kruitbosch 9d70cb3843 Bug 1486824 - change BrowserTestUtils to just call OpenBrowserWindow so it does the same thing as opening a window normally, r=mconley,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D4466

--HG--
extra : moz-landing-system : lando
2018-08-30 15:07:36 +00:00
Narcis Beleuzu a4ec006bb0 Backed out changeset 4e195f7b2d6b (bug 1486824) for clipboard failures on OSX browser_editcontrols_update. a=backout 2018-08-30 15:59:59 +03:00
arthur.iakab 044707fc78 Merge inbound to mozilla-central a=merge 2018-08-30 07:37:00 +03:00
Gijs Kruitbosch a8e2b8e702 Bug 1486824 - change BrowserTestUtils to just call OpenBrowserWindow so it does the same thing as opening a window normally, r=mconley,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D4466

--HG--
extra : moz-landing-system : lando
2018-08-29 17:58:25 +00:00
Kris Maglione 3a5c05e76f Bug 1484496: Part 5e - Convert remaining nsISimpleEnumerator users to use JS iteration. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D3733

--HG--
extra : rebase_source : c0fac176d7b3d840c4dbb14f8d95ccfc7f83a5a8
extra : histedit_source : a92c40117d0808a3ad68c972f622a7a42c9ae8ba
2018-08-18 18:13:14 -07:00
Felipe Gomes 170dde818c Bug 1486568 - forceNewProcess option from BrowserTestUtils should ensure that a cached process is not reused. r=mconley 2018-08-29 16:47:37 -03:00
Brindusan Cristian d21b936680 Merge inbound to mozilla-central. a=merge 2018-08-23 01:00:10 +03:00
Anny Gakhokidze edf3cdbd07 Bug 1453153 - Initial removal of moz* APIs in DataTransfer, r=enndeakin,r=nika
In DataTransfer, change mozItemCount, mozTypesAt, mozClearDataAt, mozSetDataAt,
mozGetDataAt APIs to be ChromeOnly.

MozReview-Commit-ID: 9uJ9ncrcBL2
2018-08-22 15:10:31 -04:00
Brian Grinstead e858b8d083 Bug 1484759 - Update references to browser.xul in tests to use AppConstants.BROWSER_CHROME_URL;r=Gijs
This only includes functions that seem to be using it to reference a window.
There are other instances where it's used as a generic chrome URI, and those
are left unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D3806

--HG--
extra : moz-landing-system : lando
2018-08-21 15:33:26 +00:00
Paul Adenot 3f50ca3b6f Bug 1480036 - Allow scaling all MSG volume with a pref. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D2594

--HG--
extra : rebase_source : 12a931585d95fe190e6fc1e3b4fba9a2f0cd6cd9
extra : histedit_source : 355f316e6eba1feaa0ee3e7750feede92eeae4bc
2018-08-01 12:10:32 +02:00
Paul Adenot 9d28010d74 Bug 1480036 - Stop relying on having the default device set globally. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D3508

--HG--
extra : rebase_source : 273766c52eb01dd3a8f3a42fc72d7c8997e5b2a9
extra : histedit_source : eab93fe060536497b1e68fc4d964eb42c61ca029
2018-08-01 15:18:32 +02:00
Johann Hofmann a0fedd95f1 Bug 1484259 - Add is_hidden and is_visible to ContentTaskUtils.jsm. r=nhnt11
This is just a slightly modified copy of the one in BrowserTestUtils.

Differential Revision: https://phabricator.services.mozilla.com/D3971

--HG--
extra : moz-landing-system : lando
2018-08-22 13:30:04 +00:00
Bob Clary fbd6d3dfca Bug 1482878 - Use screencap to capture on physical android device screenshots, r=gbrown. 2018-08-18 10:47:12 -07:00
Daniel Varga 36e523e699 Merge mozilla-central to mozilla-inbound 2018-08-18 01:05:36 +03:00
Daniel Varga 707a0b3f74 Merge mozilla-inbound to mozilla-central. a=merge 2018-08-18 00:53:04 +03:00
Kris Maglione 0c6cd02ae1 Bug 1483664: Part 0 - Dispatch pagehide/pageshow to all system group listeners on frameloader swap. r=smaug,mconley
Having to add pagehide/pageshow listeners to the chrome event target is a
serious inconvience for the use cases of this bug. Dispatching to system group
listeners has approximately the same effect as the old code, but is much
easier for window-bound code to handle.

--HG--
extra : rebase_source : d67c14e9ba91772d8a9dd82481120b34bdb551e0
2018-08-15 20:06:49 -07:00
Greg Mierzwinski 1a93f7f34a Bug 1473392 - Fix failure conditions for all mochitest tests. r=jmaher
This patch changes the failure condition of all mochitest tests to take the number of failures (given by self.countfail). It also adds a condition to check if there are passing and todo counts, and if there are not, the test chunk fails. With this change, mochitest test chunks will fail if the failure count is not 0, or all the counts (pass, todo, and fail) are 0. This fixes a case where the TODO tests were considered as failures when no passing tests were run along side them.

Differential Revision: https://phabricator.services.mozilla.com/D3612

--HG--
extra : moz-landing-system : lando
2018-08-17 14:09:42 +00:00
Margareta Eliza Balazs ef8b3886cb Backed out changeset 93877b72e677 (bug 1473392) for causing mch perma failures in testing/mochitest/tests/python/test_basic_mochitest_plain.py a=backout 2018-08-17 14:59:59 +03:00
Greg Mierzwinski a04830fd71 Bug 1473392 - Change failure condition for all mochitest tests. r=jmaher
This patch changes the failure condition of all mochitest tests to only take the number of failures (given by self.countfail) into account. With this change, mochitest test chunks will only fail if the failure count is not 0. This fixes a case where the TODO tests were considered as failures when no passing tests were run along side them.

Differential Revision: https://phabricator.services.mozilla.com/D3340

--HG--
extra : moz-landing-system : lando
2018-08-15 14:47:38 +00:00
Tudor-Gabriel Vîjială 5319423ecf Bug 1483586 - Avoid task retry if adb pull fails on code coverage file. r=gbrown
Catch the exception if adb pull fails on code coverage file, to avoid task retry.

Differential Revision: https://phabricator.services.mozilla.com/D3503

--HG--
extra : moz-landing-system : lando
2018-08-16 16:52:41 +00:00
Margareta Eliza Balazs b721fdf653 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-17 15:10:30 +03:00
Andreas Tolfsen 719b4c5e30 Bug 1482829 - Track Marionette logger verbosity with Log#manageLevelFromPref. r=whimboo
This patch adopts Logger#managerLevelFromPref from Log.jsm to set
and keep track of the Marionette logger's verbosity.

This has the advantage that we do not have to roll separate
implementations of Log for the child- and parent processes.  It also
has the upside that the log level will be reflected when changed
at runtime through the use of an observer.
2018-08-17 12:55:33 +01:00
Kris Maglione a881e6bbac Bug 1480244: Part 3b - Fix tests which rely on bad scoping assumptions for frame scripts. r=aswan
With the new loading model for frame scripts, lexical variables defined in a
global frame script are not available to other frame scripts.

Additionally, scripts loaded into a context object by the subscript loader
should not depend on being able to access properties of the message manager as
if they were globals.

MozReview-Commit-ID: 6QEyA1sBVOV

--HG--
extra : rebase_source : d3a7820104645dc356bdf8ea660b970e1f6c20e7
2018-08-03 10:59:12 -07:00
Jonathan Kingston a91f8e8108 Bug 1466801 - Flipping disallowInheritPrincipal to be allow. r=ckerschb r=gijs
--HG--
rename : browser/base/content/test/general/browser_utilityOverlay.js => browser/base/content/test/contextMenu/browser_utilityOverlay.js
extra : source : 5eab8f37c4bd6048057069cb0ac2ab0b4729d950
2018-07-16 10:17:51 +01:00
Bogdan Tara b6dabcd8c5 Backed out changeset 485fdf8e37e8 (bug 1453153) for clipboard failures on test_findbar.xul CLOSED TREE 2018-08-11 03:21:43 +03:00
Bogdan Tara 89268618f4 Backed out changeset c9b0ce46ad4f (bug 1466801) for pause-remove-from-document-networkState.html failures CLOSED TREE
--HG--
rename : browser/base/content/test/contextMenu/browser_utilityOverlay.js => browser/base/content/test/general/browser_utilityOverlay.js
2018-08-11 03:20:30 +03:00
Anny Gakhokidze be49493caf Bug 1453153 - Initial removal of moz* APIs in DataTransfer, r=enndeakin,nika
In DataTransfer, change mozItemCount, mozTypesAt, mozClearDataAt, mozSetDataAt,
mozGetDataAt APIs to be ChromeOnly.

MozReview-Commit-ID: 9uJ9ncrcBL2
2018-08-10 11:57:06 -04:00
Jonathan Kingston c24e0873da Bug 1466801 - Flipping disallowInheritPrincipal to be allow. r=ckerschb r=gijs
--HG--
rename : browser/base/content/test/general/browser_utilityOverlay.js => browser/base/content/test/contextMenu/browser_utilityOverlay.js
extra : source : a7bdcc1e1373724effb0bec2d80eb9c63ae782a1
2018-07-16 10:17:51 +01:00
Jonathan Kingston 2f0987a202 Bug 1362034 - Tests for addTab() to provide the correct triggering principal. r=ckerschb r?=gijs
Summary: Depends on D2046

Reviewers: ckerschb!, Gijs!

Tags: #secure-revision

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2047

--HG--
extra : source : 33884d05cc94463950b31fab1fd2f37ada9becef
extra : intermediate-source : 72471adb75d5ec3dc2b0c8f972a6f1f26bfd3ae2
extra : histedit_source : f384cbab58401575afc3443c9a431b73cff806d4
2018-07-06 21:16:29 +01:00
dvarga 12f19b94e9 Backed out 2 changesets (bug 1362034) for failure at browser/tools/mozscreenshots/primaryUI/browser_primaryUI.js on a CLOSED TREE
Backed out changeset 1c3329958b8a (bug 1362034)
Backed out changeset f68b1b76af36 (bug 1362034)

--HG--
extra : histedit_source : 6169c5ffe856266d3bc8b2ca32f4b67054c71bbe
2018-08-08 22:11:56 +03:00
Jonathan Kingston c15f69d427 Bug 1362034 - Tests for addTab() to provide the correct triggering principal. r=ckerschb,Gijs
Summary: Depends on D2046

Reviewers: ckerschb, Gijs

Reviewed By: ckerschb, Gijs

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2047

--HG--
extra : rebase_source : ccded0f06a0dc4567b827f42ee29f4b8954154fe
extra : amend_source : 94da8ecc053e56958fa4137d7e497362fa2c11f1
2018-08-08 20:05:30 +03:00
Kris Maglione 773d32e9fe Bug 1481021: Part 2 - Stop loading SpecialPowers into frame script scopes. r=bz,jmaher,aswan
Loading SpecialPowers into frame scripts has side-effects, detailed in part 1,
which are undesirable. The main side-effect that I'm trying to get rid of here
is the force-enabling of permissive COWs in frame script scopes, which is
blocking changes that I need to make elsewhere. But both that and the scope
pollution it causes are likely to allow code to work when running in
automation which fails in real world usage.

This patch changes our special powers frame scripts to load specialpowers.js
and specialpowersAPI.js as JSMs, which run in their own global, but define
most of the same properties on our frame script globals.

Most other callers still load those scripts via <script> tags or the subscript
loader, and should ideally migrated in a follow-up. But even so, this patch
still gives us a cleaner separation of the frame script and non-frame-script
loading code.

MozReview-Commit-ID: CR226gCDaGY

--HG--
extra : rebase_source : 251574d238ded31b9df32dc89852251831d55757
extra : source : c53c7b0249ad3359fbc9f144f2cf9ca3b6386c59
2018-08-07 14:03:21 -07:00
Brindusan Cristian 16ec846afc Backed out 2 changesets (bug 1481021) for bc failures on security/sandbox/test/browser_bug1393259.js.
Backed out changeset c53c7b0249ad (bug 1481021)
Backed out changeset 41bedc526dd6 (bug 1481021)
2018-08-08 03:22:16 +03:00
Kris Maglione b9e9588050 Bug 1481021: Part 2 - Stop loading SpecialPowers into frame script scopes. r=bz,jmaher,aswan
Loading SpecialPowers into frame scripts has side-effects, detailed in part 1,
which are undesirable. The main side-effect that I'm trying to get rid of here
is the force-enabling of permissive COWs in frame script scopes, which is
blocking changes that I need to make elsewhere. But both that and the scope
pollution it causes are likely to allow code to work when running in
automation which fails in real world usage.

This patch changes our special powers frame scripts to load specialpowers.js
and specialpowersAPI.js as JSMs, which run in their own global, but define
most of the same properties on our frame script globals.

Most other callers still load those scripts via <script> tags or the subscript
loader, and should ideally migrated in a follow-up. But even so, this patch
still gives us a cleaner separation of the frame script and non-frame-script
loading code.

MozReview-Commit-ID: CR226gCDaGY

--HG--
extra : rebase_source : fa253abde2029ec09c724404106d83623f064875
2018-08-07 14:03:21 -07:00
Andreea Pavel f5c1119983 Backed out 2 changesets (bug 1362034) for failing damp | inspector/cold-open.js on a CLOSED TREE
Backed out changeset 8c8925b75aa2 (bug 1362034)
Backed out changeset ff6b05c96094 (bug 1362034)
2018-08-06 20:42:44 +03:00
Jonathan Kingston 4ca581ffed Bug 1362034 - Tests for addTab() to provide the correct triggering principal. r=ckerschb,Gijs
Summary: Depends on D2046

Reviewers: ckerschb, Gijs

Reviewed By: ckerschb, Gijs

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2047

--HG--
extra : rebase_source : 4bb9e7feb0704239756e6e38623c0fea81669f7b
extra : amend_source : 9417f96547735fbdc55ea23666327a5cb86ac92f
2018-08-06 19:56:37 +03:00
Dorel Luca 9f724d256f Merge mozilla-inbound to mozilla-central. a=merge 2018-08-04 01:01:35 +03:00
Greg Mierzwinski d049263e2e Bug 1476526 - Make the baseline test use functions from BrowserTestUtils. r=marco
This patch makes a new baseline coverage test for browser-chrome which makes use of the BrowserTestUtils functions. It also begins the necessary changes so that the baseline test addition uses suites instead of file types.

MozReview-Commit-ID: 7nucHnF8CIn

--HG--
extra : rebase_source : a2a8f61bbbc5025544bebd74cee2a06d46f23fe2
2018-07-30 10:20:48 -04:00
Tudor-Gabriel Vîjială 817c97f672 Bug 1473313 - Part 2: Support running emulator junit tests with code coverage support. r=gbrown
MozReview-Commit-ID: MIZm9SEdlI

--HG--
extra : rebase_source : b2e4f3c1c4d2313c3108ecdedb86bfbad1f02fb7
2018-07-24 11:49:13 +01:00
Boris Zbarsky d4993da381 Bug 1476142 part 4. Remove some unnecessary QIs on window in various parts of the tree. r=kmag
The crashtest was not testing anything useful, because getInterface is no longer exposed to web content.
2018-08-02 15:26:48 -04:00
dvarga 956d57e7f2 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-08-02 01:26:29 +03:00
Chris AtLee 182e3f8445 Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743

--HG--
extra : moz-landing-system : lando
2018-08-01 16:00:03 +00:00
Andrew Swan 3493324938 Bug 1451513 Part 2: Convert mochikit to a webextension r=jmaher,kmag
This is another quick-and-dirty port.  Some of the test logic could
probably be moved to unprivileged extension code but there's no urgent
reason to do that right now.

MozReview-Commit-ID: Af0XQbakLsx

--HG--
rename : testing/mochitest/bootstrap.js => testing/mochitest/api.js
extra : rebase_source : 3870a63d96c0b2d73ccc468393c75e17b884383f
extra : source : 604167986098726b86ea0f9252a63abab36d35c4
2018-07-05 15:42:11 -07:00
Marco Castelluccio 09b1f30422 Bug 1475459 - Move beforeTestSync call after setting _globalProperties. r=sparky
beforeTestSync uses an asynchronous operation that takes a while to finish.
In the meantime, it's very likely that the browser will run some tasks
scheduled to run when idle, which cause XPCOMUtils mock in browser-test.js
to be used, which references _globalProperties.

--HG--
extra : rebase_source : 3d75068a43cad4e87317792c67b6fe5fd483f0c5
2018-08-03 10:34:00 +02:00
Boris Zbarsky 754087a992 Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
Kris Maglione 02ba563399 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : source : 0d69b4fb1ed43751cfcbc0b4f2fe3b6a49bc0494
extra : histedit_source : d0ce31513ffaae2fd7f01f6567a97b6d2d96b797%2Cfff837de7a00fa90809d2c3e755097180dfd56d8
2018-05-20 18:10:16 -07:00
Narcis Beleuzu 561ccb2ceb Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione 636f1839e5 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : rebase_source : 36565ef5e74360aad14062005e5bdab2939e888b
2018-05-20 18:10:16 -07:00
Bob Clary 745c5ff6c2 Bug 1477807 - Distinguish ADBTimeoutErrors from other exceptions in Android remote tests, r=gbrown. 2018-07-27 08:27:16 -07:00
Sebastian Hengst 068e4b1bfe Backed out 2 changesets (bug 1451513) for likely causing frequent mochitest suite hangs (bug 1414495). a=backout
Backed out changeset 604167986098 (bug 1451513)
Backed out changeset afc5c4bd60da (bug 1451513)

--HG--
rename : testing/mochitest/api.js => testing/mochitest/bootstrap.js
2018-07-25 17:19:14 +03:00
Boris Zbarsky 75abc43e0d Bug 1476145 part 8. Stop using getInterface(nsIDOMWindowUtils) in various test code. r=kmag 2018-07-24 19:47:43 -04:00
Narcis Beleuzu 80c1cde899 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-25 01:22:42 +03:00
Narcis Beleuzu 6fdff882de Backed out changeset 4cba8b6eb37a (bug 1466801) for wpt failures. CLOSED TREE
--HG--
rename : browser/base/content/test/contextMenu/browser_utilityOverlay.js => browser/base/content/test/general/browser_utilityOverlay.js
2018-07-25 00:37:59 +03:00
Brian Grinstead 96dc530924 Bug 1476333 - Refer to AppConstants.BROWSER_CHROME_URL to get the browser URL from the frontend;r=Gijs
Before this change, we accessed the browser URL in the following ways:

- "chrome://browser/content/browser.xul"
- "chrome://browser/content/" (which redirects to chrome://browser/content/browser.xul)
- Services.prefs.getCharPref("browser.chromeURL") which returns "chrome://browser/content/"
- getBrowserURL() from utilityOverlay.js

MozReview-Commit-ID: I5vtRke1x9t

--HG--
extra : rebase_source : c525350a1954740873e85b045cbb14a8b43aa89d
2018-07-24 08:12:50 -07:00
Brian Hackett ecde232f88 Bug 1465477 Part 3 - Add --save-recordings option to the mochitest harness, r=jmaher.
--HG--
extra : rebase_source : 58b2f4bb9f1969ef6a8b1119b514fa2b749b6ced
2018-07-23 21:53:00 +00:00
Jonathan Kingston dd884fb6d5 Bug 1466801 - Flipping disallowInheritPrincipal to be allow. r=ckerschb,Gijs
Reviewers: Gijs, ckerschb

Reviewed By: Gijs, ckerschb

Subscribers: aryx, smaug, dao, RyanVM, dveditz, Gijs, ckerschb, bzbarsky, jkt

Bug #: 1466801

Differential Revision: https://phabricator.services.mozilla.com/D2096

--HG--
rename : browser/base/content/test/general/browser_utilityOverlay.js => browser/base/content/test/contextMenu/browser_utilityOverlay.js
extra : rebase_source : 6d912ffff2ecd717748b3a71f0efa17b36775e5a
extra : amend_source : 3414e5885544709640c9250759e61737b46cae4d
2018-07-24 20:35:55 +03:00
Bob Clary 43a7c80ca2 Bug 1402406 - do not format log message if super MochitestFormatter returns None, r=gbrown 2018-07-20 00:12:45 -07:00
Dão Gottwald d0a8d0ffb2 Bug 1442582 - Remove the tabbrowser-tabpanels binding. r=dao
MozReview-Commit-ID: HcQgRbvcdiV

--HG--
extra : rebase_source : 4eaebcb9e651f5e5e90a5082cb04678b4739e585
2018-03-16 22:30:01 +01:00
Emma Malysz ce8c74748f Bug 1454358, removes unneccessary implementation of ScrollBoxObject rr?enndeakin+6102 r=bz,enndeakin+6102
MozReview-Commit-ID: LBQ0RoS0ZVc

--HG--
rename : dom/webidl/ScrollBoxObject.webidl => dom/chrome-webidl/XULScrollElement.webidl
rename : layout/xul/ScrollBoxObject.cpp => dom/xul/XULScrollElement.cpp
rename : layout/xul/ScrollBoxObject.h => dom/xul/XULScrollElement.h
extra : rebase_source : 6a0de76dfdacbc29d261a4aea703a44f87ad7e12
2018-06-25 10:11:31 -07:00
Matt Howell 76ff0a0612 Bug 1052582 Part 1 - Support an arena parameter for js_pod_malloc and friends. r=sfink
This patch adds new functions taking the arena parameter rather than overloading
existing functions, because there are already overloads of calloc that take
two size_t parameters (which arena_id_t is an alias for), so it couldn't have
been done that way, and malloc and realloc needed to be consistent with calloc.

MozReview-Commit-ID: 1MUXoCUgJWO

--HG--
extra : rebase_source : 16261ba4e802efa0bc65878d490ae9b62aa35797
2018-06-29 13:06:14 -07:00
Bogdan Tara 6dbc2726d8 Backed out changeset b099e7e0b264 (bug 1454358) for build bustages on Element.h CLOSED TREE
--HG--
rename : dom/chrome-webidl/XULScrollElement.webidl => dom/webidl/ScrollBoxObject.webidl
rename : dom/xul/XULScrollElement.cpp => layout/xul/ScrollBoxObject.cpp
rename : dom/xul/XULScrollElement.h => layout/xul/ScrollBoxObject.h
2018-07-12 01:50:53 +03:00
Emma Malysz c28a132d13 Bug 1454358, removes unneccessary implementation of ScrollBoxObject rr?enndeakin+6102 r=bz,enndeakin+6102
MozReview-Commit-ID: LBQ0RoS0ZVc

--HG--
rename : dom/webidl/ScrollBoxObject.webidl => dom/chrome-webidl/XULScrollElement.webidl
rename : layout/xul/ScrollBoxObject.cpp => dom/xul/XULScrollElement.cpp
rename : layout/xul/ScrollBoxObject.h => dom/xul/XULScrollElement.h
extra : rebase_source : ad00e7030e50229975b0bc0d3c622af4fe244a79
2018-06-25 10:11:31 -07:00
Andrew Swan d6104e5c4c Bug 1451513 Part 2: Convert mochikit to a webextension r=jmaher,kmag
This is another quick-and-dirty port.  Some of the test logic could
probably be moved to unprivileged extension code but there's no urgent
reason to do that right now.

MozReview-Commit-ID: Af0XQbakLsx

--HG--
rename : testing/mochitest/bootstrap.js => testing/mochitest/api.js
extra : rebase_source : 17f8af667e73555bd69391d3be0835c3e50c90cd
2018-07-05 15:42:11 -07:00
Marco Castelluccio 6eb9f8c25b Bug 1471573 - Support resetting/dumping coverage counters for mochitest. r=jmaher
--HG--
extra : rebase_source : c58f3d27a929dab244a9a3b2c7bdc8ce1d97215d
extra : intermediate-source : cdfcca54339699cee381c289f2d0d2ae2cccd918
extra : source : 0903f7dc6c7f3d7f10fec403d2ebee470e887876
2018-06-27 17:56:09 +01:00
Bogdan Tara 6eafe1c00b Backed out changeset 9c75cab2e322 (bug 733530) for breaking artifact builds 2018-07-04 14:50:22 +03:00
Chris AtLee 8745339529 Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743

--HG--
extra : moz-landing-system : lando
2018-07-03 18:33:02 +00:00
Andrew Halberstadt f53f58d169 Bug 1472280 - [mochitest] Provide better 'lastTestSeen' strings to differentiate the end of a test r=jmaher
Currently mochitest looks for a test_start log action and stores the name of
the test in an instance variable. In the event of a timeout/hang, this string
is used in the log to help people try and narrow down where it happened.

However, there are a couple cases it can be misleading:
1) If the hang happens during shutdown, it looks like it was the last test's fault (it probably isn't)
2) If the hang happens in-between tests, it looks like the test timed out

We should make the string more descriptive. I propose that when we get a
test_end action, we change it to <test> (finished). And when we get the test
end action of the last test, we change it to "Last test finished".

This way it narrows down where the hang happened even further.

MozReview-Commit-ID: B6g8JrIJuJw

Differential Revision: https://phabricator.services.mozilla.com/D1885

--HG--
extra : moz-landing-system : lando
2018-06-30 09:00:18 +00:00
Greg Mierzwinski 8a8a847acc Bug 1472575 - Add delay to baseline coverage tests. r=jmaher
This patch adds a 30 second delay to the baseline coverage tests to help stabilize their code coverage results over time.

MozReview-Commit-ID: C3StSX7RdM9

--HG--
extra : rebase_source : d4ab053d0d55535333989294973aa4af7db4fea7
2018-06-19 16:09:16 -04:00
Dave Townsend d8b7fb22e3 Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy
Summary:
This moves the load of favicons into the content process. We use the same logic
for finding favicons (based on waiting until none have shown up for a short
time) but then load the favicon and convert it to a data uri which we then
dispatch to the parent process. Along the way this fixes asssociating the load
with the tab for WebExtension and devtools, fixes CSP usage for the load, fixes
expiry detection of the favicon and stops us from loading the same resource
twice.

This change also merges the prefs browser.chrome.site_icons and
browser.chrome.favicons leaving just the former controlling favicon loading. It
adds the pref browser.chrome.guess_favicon to allow disabling guessing where
a favicon might be located for a site (at <hostname>/favicon.ico). This is
mainly to allow disabling this in tests where those additional yet automatic
requests are uninteresting for the test.

There are multiple clean-ups that can follow this but this is a first step along
that path.

MozReview-Commit-ID: E0Cs59UnxaF

Reviewers: mak

Tags: #secure-revision

Bug #: 1453751

Differential Revision: https://phabricator.services.mozilla.com/D1672
Differential Revision: https://phabricator.services.mozilla.com/D1673
Differential Revision: https://phabricator.services.mozilla.com/D1674
Differential Revision: https://phabricator.services.mozilla.com/D1850
Differential Revision: https://phabricator.services.mozilla.com/D1869

--HG--
rename : browser/base/content/test/general/browser_bug408415.js => browser/base/content/test/favicons/browser_bug408415.js
rename : browser/base/content/test/general/browser_bug550565.js => browser/base/content/test/favicons/browser_bug550565.js
rename : browser/base/content/test/general/browser_favicon_change.js => browser/base/content/test/favicons/browser_favicon_change.js
rename : browser/base/content/test/general/browser_favicon_change_not_in_document.js => browser/base/content/test/favicons/browser_favicon_change_not_in_document.js
rename : browser/base/content/test/general/browser_subframe_favicons_not_used.js => browser/base/content/test/favicons/browser_subframe_favicons_not_used.js
rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_bug970276_favicon1.ico
rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_bug970276_favicon2.ico
rename : browser/base/content/test/general/file_bug970276_popup1.html => browser/base/content/test/favicons/file_bug970276_popup1.html
rename : browser/base/content/test/general/file_bug970276_popup2.html => browser/base/content/test/favicons/file_bug970276_popup2.html
rename : browser/base/content/test/general/file_favicon_change.html => browser/base/content/test/favicons/file_favicon_change.html
rename : browser/base/content/test/general/file_favicon_change_not_in_document.html => browser/base/content/test/favicons/file_favicon_change_not_in_document.html
rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_generic_favicon.ico
rename : browser/base/content/test/general/file_with_favicon.html => browser/base/content/test/favicons/file_with_favicon.html
extra : rebase_source : 6372b2681a59d267f966e9fa2ca9a54e3ff0cea0
extra : intermediate-source : b11aa832c41ac5beef9065f804d11fb7c9887990
extra : source : 638eb8a41245f6d9932861afda21edd5e0b2618a
2018-06-28 16:06:09 -07:00
Andrew Halberstadt 9435736ade Bug 1471620 - Skip python-tests locally that don't run with python 3 in CI r=davehunt
This will make sure that when running |mach python-test --python 3| locally,
we only run the tests that also run in CI with python 3 (and therefore pass
presumably).

MozReview-Commit-ID: 3OBr9yLSlSq

--HG--
extra : rebase_source : 456340d0ecdddf1078f2b5b4ebb1eddf3813b26a
2018-06-27 11:10:02 -04:00
Masayuki Nakano cccab7b98a Bug 900750 - part 4: Make NativeKey replaces MODIFIER_CONTROL and MODIFIER_ALT of mModKeyState with MODIFIER_ALTGRAPH if user emulates AltGr key press with pressing both Ctrl and Alt keys and current keydown produces character(s) r=m_kato,smaug
Users can emulate AltGr key with pressing both Ctrl key and Alt key on Windows
since AltGr is represented as so in Windows and physical keyboard may not have
AltRight key.

If user emulates AltGr key, we should set MODIFIER_ALTGRAPH to a set of
keyboard events for printable keys only when the key press produces
character(s) or a dead key.  For example:

1. ControlLeft keydown event should make ctrlKey true.
2. AltLeft keydown event should make altKey true (not AltGraph state).
3. ctrlKey and altKey of printable keydown, keypress and keyup events should be
   set to false, but getModifierState("AltGraph") should return true.
4. AltLeft keyup event should make altKey false.
5. ControlLeft keyup event should make ctrlKey false.

(If AltLeft key is pressed first, altKey of AltLeft keydown is true and
both altKey and ctrlKey of the following ControlLeft keydown are true as
usual.)

MozReview-Commit-ID: 8Km8GXPDQw1

--HG--
extra : rebase_source : f4924f075c68361c8ce563910280ea24774c519f
2018-06-04 14:45:28 +09:00
Masayuki Nakano 8fc19f6752 Bug 900750 - part 2: Make ModifierKeyState and VirtualKey treat AltGraph as new modifier and won't set Control and Alt state while AltGraph is active r=m_kato,smaug
By the proposal from Google, <https://github.com/w3c/uievents/issues/147>,
Chromium treat AltRight key as "AltGraph" modifier if the keyboard layout
has AltGr key.

When AltRight key is pressed with a keyboard layout which has AltGr key,
modifiers should as following:

1. "keydown" for ControlLeft:
  ctrlKey:  true, altKey: false, getModifierState("AltGraph"): false
2. "keydown" for AltRight:
  ctrlKey: false, altKey: false, getModifierState("AltGraph"): true
3. Some "keydown", "keypress" and "keyup" events:
  ctrlKey: false, altKey: false, getModifierState("AltGraph"): true
4. "keyup" for ControlLeft:
  ctrlKey: false, altKey: false, getModifierState("AltGraph"): true
5. "keyup" for AltRight:
  ctrlKey: false, altKey: false, getModifierState("AltGraph"): false

So, only when the preceding "keydown" event for ControlLeft, ctrlKey should
be set to true as usual.  However, after AltRight key is pressed actually,
we should treat "AltGraph" modifier is true and both ctrlKey and altKey
should be set to false for web apps can handle text input normally.

So, MODIFIER_ALTGRAPH and MODIFIER_CONTROL/MODIFIER_ALT should not be set
at the same time.

This patch makes ModifierKeyState have only MODIFIER_ALTGRAPH or
MODIFIER_CONTROL/MODIFIER_ALT.

Additionally, this patch makes VirtualKey::ShiftState treat "AltGraph" as a
modifier.  So, now, VirtualKey needs to convert ShiftState to index value when
it accesses its mShiftStates array.  Therefore, this patch adds
VirtualKey::ToIndex() and make each VirtualKey method use it before
accessing mShiftStates.

Note that this patch also fixes bug of WinUtils::SetupKeyModifiersSequence().
The constructor of KeyPair takes 2 keycode values, but the second virtual
keycode can have scancode to distinguish if the key is left or right.
However, WinUtils::SetupKeyModifiersSequence() never sets scancode to
KeyPair.  Therefore, it fails to dispatch AltRight key event.

MozReview-Commit-ID: 7ealxJH9KlZ

--HG--
extra : rebase_source : 761bc4416222def020a0731d6ae7940ef074ebe0
2018-05-30 17:27:31 +09:00
Geoff Brown a26309e5fe Bug 1470177 - Improve timeout handling in runjunit.py; r=bc 2018-06-25 10:09:45 -06:00
Jan-Erik Rediger 7566d43604 Bug 1469334 - Properly document arguments for ContentTaskUtils.waitForCondition. r=jmaher
MozReview-Commit-ID: BFhDX9nVTKT

--HG--
extra : rebase_source : b12285bb99d641e66d455a031532b59c6416fc02
2018-06-18 18:39:40 +02:00
kanika e0c4b56af2 Bug 1428847 - Move is_hidden and is_visible helper functions into BrowserTestUtils.jsm. r=johannh
MozReview-Commit-ID: 2xshA0CAPgY

--HG--
extra : rebase_source : ac908827986cdee251a454c0cd366a59c5cfdac0
2018-03-22 21:14:23 +05:30
Mike Conley 65895e8749 Bug 1458375 - Make browser mochitests wait for browser-idle-startup-tasks-finished before running tests. r=kmag
MozReview-Commit-ID: Jfl4p4LIPC4

--HG--
extra : rebase_source : 4cc9eb72793ec801c6344d1d006c66dbc3650b8b
2018-06-05 14:21:53 -07:00
Joel Maher 50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Chris Manchester 37ba0f60c9 Bug 1466958 - Fix mochitests when run locally against an android build. r=gbrown
MozReview-Commit-ID: Ie6665xeD53

--HG--
extra : rebase_source : f3d97973dc7770980c76ceb3bd799fb24a5252c0
2018-06-05 17:09:54 -05:00
Chris Manchester 508b393aa6 Bug 1462489 - Put packaged test addons in the test package with the test packager rather than Makefile.in r=mshal
MozReview-Commit-ID: 56Ah9HQc9TT

--HG--
extra : rebase_source : d1af6d7c92aece08932e93e7a1f1b43a78292410
2018-05-30 15:24:09 -07:00
Chris Manchester 4690df6ce9 Bug 1462489 - Use test addons from dist/xpi-stage when running mochitests locally. r=ahal
MozReview-Commit-ID: IoaxxjtJLhX

--HG--
extra : rebase_source : 39c461649eca73f104b7f7954aa9420048818d58
2018-05-30 15:21:39 -07:00
Dorel Luca 308f075972 Backed out 4 changesets (bug 1462489) for breaking mochitest on testing/mochitest/tests/python/test_basic_mochitest_plain.py
Backed out changeset 41cf0d53a95c (bug 1462489)
Backed out changeset daa33716b140 (bug 1462489)
Backed out changeset 3cd6a8ee8f66 (bug 1462489)
Backed out changeset dfed23857cea (bug 1462489)
2018-05-31 02:51:41 +03:00
Chris Manchester adac97a0fe Bug 1462489 - Put packaged test addons in the test package with the test packager rather than Makefile.in r=mshal
MozReview-Commit-ID: 56Ah9HQc9TT

--HG--
extra : rebase_source : cc74b4e385cc98036d24e120732cf4c30e73f962
2018-05-30 15:24:09 -07:00
Chris Manchester e266d11623 Bug 1462489 - Use test addons from dist/xpi-stage when running mochitests locally. r=ahal
MozReview-Commit-ID: IoaxxjtJLhX

--HG--
extra : rebase_source : 2e0534bc3acc38df2c887c75ca9148866d83a22d
2018-05-30 15:21:39 -07:00
Emilio Cobos Álvarez e799f668c4 Bug 1465107: Remove stylo mentions from the mochitest runner. r=xidorn
MozReview-Commit-ID: B430ssKhJbz
2018-05-30 10:04:09 +02:00
Johann Hofmann 35166c8f08 Bug 1462468 - Add a tracking protection option to the hamburger menu. r=mikedeboer
MozReview-Commit-ID: HxRljbdsRau

--HG--
extra : rebase_source : 3f3aae722ca2e1b6a28a29a5116d66bf40aa8092
2018-05-22 16:26:55 +02:00
Kris Maglione e6d77f8270 Bug 1460610: Fix content process whitelist for profile extensions when none are present at startup. r=aswan
Also removes the stub workerbootstrap extensions, which previously allowed
this to work for Mochitest extensions.

MozReview-Commit-ID: LPlk8qIgJmr

--HG--
extra : rebase_source : 329f7fe11dde7a2713652591ac735b0d745070c8
extra : amend_source : 125481f030980c610217a9a1f6e51d592bda3c65
2018-05-19 17:23:01 -07:00
Dorel Luca 047df7a932 Merge mozilla-inbound to mozilla-central. a=merge 2018-05-26 07:09:39 +03:00
Chris AtLee 6ced44821e Bug 1237182: Fix python unitests r=bustage on a CLOSED TREE
--HG--
extra : rebase_source : 1e118ab5aed8251dfff28f6c3c4f885e1de24a04
extra : histedit_source : 635a7aa2a4fb47ff1b3b28f0ce099948d6f1101a
2018-05-25 13:42:58 -04:00
Jared Wein e76681c5a2 Bug 1464102 - Add support for todo_is within ContentTask. r=Gijs
MozReview-Commit-ID: 9GUJIMpylBb

--HG--
extra : rebase_source : d0cecc5abad7168d4749fe6c6b547a19faca9e52
2018-05-24 12:06:36 -04:00
Jared Wein e04caaa29a Bug 1464102 - Add message listener for content-task:test-todo so todo from within ContentTask will work. r=Gijs
MozReview-Commit-ID: EuWX8eMl8hY

--HG--
extra : rebase_source : 2d12cc6a91b18c327622f03508e760d1903bd9ef
2018-05-24 12:00:09 -04:00
Narcis Beleuzu d072e49483 Backed out 3 changesets (bug 1464102) for browser-chrome failures on siteData/browser_siteData.js. CLOSED TREE
Backed out changeset 460cd874757f (bug 1464102)
Backed out changeset 3c227d911b2f (bug 1464102)
Backed out changeset 43b864db2e34 (bug 1464102)
2018-05-25 01:42:37 +03:00
Jared Wein 7561f9cb33 Bug 1464102 - Add support for todo_is within ContentTask. r=Gijs
MozReview-Commit-ID: 9GUJIMpylBb

--HG--
extra : rebase_source : 597dff9afa61f281b890ad157d85f117a24f082f
2018-05-24 12:06:36 -04:00
Jared Wein 4caaac5191 Bug 1464102 - Add message listener for content-task:test-todo so todo from within ContentTask will work. r=Gijs
MozReview-Commit-ID: EuWX8eMl8hY

--HG--
extra : rebase_source : 9124f486e4676410fb2fe0009eefc13c28695628
2018-05-24 12:00:09 -04:00
Kris Maglione 6b12d08f7d Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj
MozReview-Commit-ID: Iv4T1MVAF5

--HG--
extra : rebase_source : 1c518883d082884db7f9323a5acc20361228c26b
extra : histedit_source : 70a73c23d1199d3bfbb5379c78930401166c094b
2018-05-19 20:17:45 -07:00
Kris Maglione f8aeb3dbfc Bug 1462223: Remove unnecessary/unused bootstrap scope setup code. r=aswan
This also removes the workerbootstrap test extension, which is no longer used,
and contains the last references to the Worker and ChromeWorker bootstrap
globals.

MozReview-Commit-ID: 8YWReXMqX5W

--HG--
extra : rebase_source : b0aa59b2b5e6a08f4be803e828bd507f894e4a19
2018-05-19 14:03:50 -07:00
Paolo Amadini c476bfba8e Bug 1459927 - Traverse nsIStackFrame async callers when reporting browser-chrome test harness failures. r=jmaher
MozReview-Commit-ID: BZ1bt1amerq

--HG--
extra : rebase_source : 7fa5e81be720f24f0dedf0390f53b2b1102d2ac5
2018-05-08 15:10:01 +01:00
Geoff Brown 02e2a58e26 Bug 1462182 - Dump less device info during Android test-verify; r=jmaher 2018-05-17 16:19:02 -06:00
Gregory Mierzwinski 8eb9e2c317 Bug 1455401 - Generate baseline code coverage reports. r=jmaher,marco
The tests added in this patch will be used as a baseline for coverage that is common to all tests. They are added to each chunk being run in the test-coverage suite only if a test with an associated baseline type exists.

MozReview-Commit-ID: 1CrRZ1Ev2Mz

--HG--
extra : rebase_source : e2e4f9a51c82c637c8892dd8a5dbd84704b67b54
2018-04-25 15:22:28 -04:00
Kris Maglione 01c298aca6 Bug 1460092: Add ESLint rule to enforce use of ChromeUtils.generateQI. r=Gijs
Also fixes existing code which fails the rule.

MozReview-Commit-ID: CkLFgsspGMU

--HG--
extra : rebase_source : 86a43837659aa2ad83a87eab53b7aa8d39ccf55b
2018-05-08 18:36:22 -07:00
Andrew Halberstadt ac08b89a81 Bug 1459598 - Use profiles.json file to map test suites to the base profiles they use, r=jgraham
This serves two purposes:

1) It makes web-platform-tests pref downloading/handling a little more robust. When
run externally, it now downloads the entire testing/profiles directory. When loading
prefs it will look for both prefs_general.js (to support older versions of Firefox)
and profiles.json (for support moving forward).

This way we can add/remove/rename pref files under these directories without needing
to worry about breaking upstream wpt.

2) It provides developers an overview of which harnesses are using which base profiles.
Instead of hunting through test harness code to find this information, they can glance
at profiles.json.

MozReview-Commit-ID: AMzdnD8aGA2

--HG--
extra : rebase_source : 6fa0a802680417e49fcef99f3d03de7458a8fcba
2018-05-07 09:43:12 -04:00
Milan Sreckovic 87da3c52e9 Bug 1318947: More diagnostic information when snapshot comparison fails. r=jwatt
--HG--
extra : rebase_source : c6cf33a8d23c1d6fec4898b847767a3c4b4b7cdc
2018-05-04 09:42:00 +03:00
Joel Maher 91721cfdc5 Bug 1455316 - sometimes when test-verify finds a failure, all future tests are marked as failing also. r=gbrown 2018-05-01 14:04:24 -04:00
Andrew Halberstadt 89a1cd8a45 Bug 1451159 - [mochitest] Load profile data from testing/profiles/common r=gbrown
This makes mochitest use mozprofile's new 'merge' feature instead of
explicitly loading the user.js preference file.

This means that any extensions that get dropped into
testing/profiles/common/extensions, will automatically run as part of the
mochitest run. This can be useful for testing how extensions impact tests
locally or on try.

In the near future, all our other test harnesses will also start using this
profile directory.

MozReview-Commit-ID: 34aSqdnkHqx

--HG--
extra : rebase_source : 977b0eb6404648e387428004ec3f3085af6f86fd
2018-04-19 16:12:49 -04:00
Andrew Halberstadt c9bdbe0a32 Bug 1451159 - [testing/profiles] Use 'format' for interpolation instead of %s r=gbrown
MozReview-Commit-ID: EbDS1fYDe1X

--HG--
extra : rebase_source : e8e179f97fb3df492b2fcc690616157254e49fdd
extra : source : 03f43cb6ab42e55f475c6f6a99c7da547b0aa6f8
2018-04-20 11:03:38 -04:00
Andrew Halberstadt ee69aa133e Bug 1451159 - [testing/profiles] Store profile data in actual profile look alike folders r=gbrown
This moves testing/profiles/prefs_general.js to
testing/profiles/common/user.js. It also adds an 'extensions' folder to the
common profile. Dropping extension files here will get them installed in all
test harnesses (useful for testing on try).

The idea is that all test harnesses will eventually use this 'common' profile.
We'll also create some new per harness profiles, e.g testing/profiles/mochitest
and testing/profiles/reftest. This way there will be a single location
developers can go to set preferences, both for a specific harness, and across
all harnesses.

MozReview-Commit-ID: 8sqBqLiypgU

--HG--
rename : testing/profiles/prefs_general.js => testing/profiles/common/user.js
extra : rebase_source : 72a4a4b691e93c77479c7e70647b0ca373862c51
2018-04-19 16:12:26 -04:00
Geoff Brown 84a800ebe9 Bug 1458656 - Do not try to use non-existent robocop apk; r=nalexander 2018-05-03 13:34:00 -06:00
Mark Banner d19d88da30 Bug 1457835 - Enable ESLint for testing/mochitest (manual changes). r=jmaher
MozReview-Commit-ID: BoGnB1aQxm8

--HG--
extra : rebase_source : 3014c44fb75c24616da5ca35b4e0addaf9982d9e
2018-04-30 11:03:44 +01:00
Mark Banner 7953526ea2 Bug 1457835 - Enable ESLint for testing/mochitest (automatic changes). r=jmaher
MozReview-Commit-ID: 4Et3MAxcEQl

--HG--
extra : rebase_source : b6456aa9dd18df77cfb7fbb5012de33bd6fed681
2018-01-26 21:32:30 +00:00
Chris Manchester 22900f8fb9 Bug 1372381 - Generate automation.py with GENERATED_FILES rather than Makefile.in r=mshal
This commit also removes "DEFAULT_APP", which is unused.

MozReview-Commit-ID: 5YYaC5LJqUn

--HG--
extra : rebase_source : 45f0f8f11698890fae0dcca71174f88dbdb412c8
2018-04-30 11:08:59 -07:00
Geoff Brown aebd334d65 Bug 1457971 - Support test chunks in runjunit.py and run geckoview-junit in 3 chunks on debug builds; r=me,a=test-only 2018-04-30 17:58:27 -06:00
Kris Maglione a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Geoff Brown b7021e6fbe Bug 1445716 - Support profile locations in geckoview-junit; r=jmaher 2018-04-25 09:10:26 -06:00
Geoff Brown e7c02e67e3 Bug 1445716 - Process more geckoview-junit status codes; r=jmaher 2018-04-25 09:10:26 -06:00
J.C. Jones 6fad8e3ff1 Bug 1441338 - Change pgo certificates to use certspec/keyspec files r=keeler r=franziskus
(This also fixes Bug 879740 and Bug 1204543.)

build/pgo/certs contains an NSS database set that has a bunch of hand-generated
certificates, and many of these hand-generated certificates are specifically
depended upon for a variety of unit tests. This patch changes all of these to
use the "pycert.py" and "pykey.py" utilities that produce deterministic keys
and certificates.

The naming convention here is new, and defined in the README. It is based on
the mochitest runtest.py naming convention that imports .ca and .client
PEM-encoded certificates.

Unfortunately, the updates to build/pgo/genpgocert.py to generate these files
depends on OpenSSL in order to produce PKCS12 archives for pk11tool to import
into NSS. This could be done with pure-NSS tooling, but it'd require some new
command line functionality, which is out-of-scope for this change.

Note that build/pgo/genpgocert.py no longer takes arguments when run. It's not
run automatically anywhere that I can see, but could (reasonably) be, now.

Differential Revision: https://phabricator.services.mozilla.com/D971

--HG--
extra : amend_source : bc389b9b0a807a4889feb14db439daa28635dfe9
2018-04-23 11:14:17 +02:00
Kris Maglione 219ed0cc06 Bug 1454813: Part 2b - Rename SpawnTask.js to AddTask.js. r=florian
The old name no longer makes sense, since it no longer exports an spawn_task
symbol, and add_task is what we really care about.

MozReview-Commit-ID: IE7B8Czv8DH

--HG--
rename : testing/mochitest/tests/SimpleTest/SpawnTask.js => testing/mochitest/tests/SimpleTest/AddTask.js
extra : rebase_source : 03bca5aa69a7625a49b4455a6c96ce4c59de3a5a
2018-04-18 11:43:45 -07:00
Kris Maglione 2744972833 Bug 1454813: Part 2a - Remove spawn_task support in plain/chrome mochitests. r=florian
MozReview-Commit-ID: DbGBt6tH6Vo

--HG--
extra : rebase_source : c99351319eefb8e6454e80e0d354ef650e672ddf
2018-04-17 16:01:10 -07:00
Kris Maglione f1f4e87948 Bug 1454813: Part 1b - Stop automatically exposing Task singleton to browser tests. r=florian
Now that Task.jsm is deprecated and add_task no longer accepts generators, it
doesn't make sense to continue making this automatically available in test
scopes.

MozReview-Commit-ID: AckO5nnFngG

--HG--
extra : rebase_source : 826b7cce67d9ab000d6385663c543bc72eef174b
2018-04-19 14:52:47 -07:00
Kris Maglione dfd8eb706c Bug 1454813: Part 1a - Remove Tasks.jsm support in browser tests. r=florian
MozReview-Commit-ID: IxwtdywNt8Z

--HG--
extra : rebase_source : 770c017d6da0cc0feb21fbf7d1db84e48f74be6a
2018-04-18 11:47:45 -07:00
Geoff Brown fbc5b83b58 Bug 1445716 - Add Android mach command 'geckoview-junit'; r=jmaher 2018-04-18 14:43:35 -06:00
Geoff Brown 1705c7946a Bug 1445716 - Add runjunit.py, a test harness for junit tests on Android devices; r=jmaher 2018-04-18 14:43:33 -06:00
Kris Maglione 682fa8cd83 Bug 1453881: Part 1b - Manually fix tests that await generators in async functions. r=ochameau
MozReview-Commit-ID: 2oetVEj7yF

--HG--
extra : rebase_source : 153055141df20e1f9f88064ff4be788e74408bef
extra : histedit_source : 41fd082a6dd44bba88d1a503de6b2dd8daebd4e4
2018-04-15 00:30:04 -07:00
Kris Maglione 0f40271841 Bug 1453881: Part 1a - Automatically write add_task(function*) to add_task(async function) r=ochameau
This was done using the script at:

bc5629735d/processors/add-task-async.jsm?at=default&fileviewer=file-view-default

MozReview-Commit-ID: KxuS9Cen87

--HG--
extra : rebase_source : c0028e0cd55ba1643610cd30c55c6f4bca7d6e58
extra : histedit_source : ebc84fdec9c2db6176632d62de4e7bdad2a7829d
2018-04-12 21:10:04 -07:00
Alexander Surkov b59a2588ee Bug 1446671 - convert mochitest/textcaret/test_browserui.xul test into a browser test, r=yzen, gijs 2018-04-11 16:13:30 -04:00
Geoff Brown ca43a015dc Bug 1454404 - Pass adb path from Android mach commands to test harnesses; r=jmaher 2018-04-16 14:05:32 -06:00
Henrik Skupin e5f31f5f9e Bug 1453596 - [mochitest] Throw errors instead of strings to get line numbers. r=gbrown
Without using "new Error()" there will always be line 0 referenced
in the exception message.

MozReview-Commit-ID: KGzVDShiLTW

--HG--
extra : rebase_source : e677730f0dcde896157681925f169da529939cf8
2018-04-12 12:10:26 +02:00
Henrik Skupin e5298628bf Bug 1453596 - [mochitest] Throw exception if path for server alive file doesn't exist. r=gbrown
MozReview-Commit-ID: AjjNbeOjTyr

--HG--
extra : rebase_source : f75377b4d34edb3026794f99557e19eddb2af459
2018-04-12 12:06:34 +02:00
Bob Clary cc77040a96 Bug 1440714 - make sure to use root=True with chmod /sdcard/tests/, r=gbrown. 2018-04-10 23:12:28 -07:00
Geoff Brown 3680684f70 Bug 1452694 - Use TestRunnerActivity for geckoview mochitest/reftest; r=bc
This makes the changes necessary to use TestRunnerActivity when geckoview
is installed and requested, but we do not yet attempt to run any such
test tasks in automation.
2018-04-10 13:26:11 -06:00
Geoff Brown e947c0c1e9 Bug 1452956 - Use newlines when dumping Android logcat to test log; r=jmaher 2018-04-10 13:26:08 -06:00
arthur.iakab 50132b1765 Backed out changeset 090f4e5a8d73 (bug 1446671) For failing Test verify on accessible/tests/browser/events/browser_test_textcaret.js on a CLOSED TREE 2018-04-10 22:12:51 +03:00
Alexander Surkov 833fe43cb6 Bug 1446671 - convert mochitest/textcaret/test_browserui.xul test into a browser test, r=yzen, gijs 2018-04-10 14:02:19 -04:00
Tooru Fujisawa 3e70ba6781 Bug 1448531 - Part 6: Wait for DOMContentLoaded before adding observer. r=dao 2018-04-10 12:18:36 +09:00
Tooru Fujisawa a25b1f847f Bug 1448531 - Part 4: Add maybeErrorPage parameter to BrowserTestUtils.waitForNewWindow and BrowserTestUtils.browserLoaded. r=enndeakin 2018-04-10 12:18:35 +09:00
Tooru Fujisawa baf5ba9d94 Bug 1448531 - Part 3: Add anyWindow parameter to BrowserTestUtils.waitForNewWindow. r=enndeakin 2018-04-10 12:18:35 +09:00
Tooru Fujisawa bc1ed58f7a Bug 1448531 - Part 2: Make BrowserTestUtils.waitForNewWindow receive parameters object. r=enndeakin 2018-04-10 12:18:35 +09:00
Geoff Brown 146ff5998a Bug 1440714 - Convert Android mach commands to adb.py; r=bc 2018-04-05 12:50:29 -06:00
Geoff Brown d3d676106c Bug 1449767 - Avoid error after robocop tests when no screenshots produced; r=bc
Screenshots are usually only taken when a test fails.
2018-03-29 07:33:40 -06:00
Geoff Brown 26b5113ed2 Bug 1449762 - Fix argument to get_logcat() in robocop and android mochitest harnesses; r=bc 2018-03-29 07:33:38 -06:00
Geoff Brown b4dddb3c35 Bug 1440719 - Set MOZ_CRASHREPORTER_SHUTDOWN during tests, other than browser-chrome and non-e10s; r=ted 2018-03-28 12:43:52 -06:00
Geoff Brown cf1401dff9 Bug 1448697 - Try to use force-stop instead of kill to end remote applications; r=bc
This is important for running browser tests on some non-privileged devices, where
kill may not be permitted.
2018-03-26 12:21:46 -06:00
Tooru Fujisawa 954d90b00b Bug 1402380 - Set text/x-moz-url flavor of data transfer for places container with URLs inside it. r=enndeakin 2018-03-25 17:23:48 +09:00
Boris Zbarsky de9297b4bf Bug 1448048. Restrict the window.Components shim to non-nightly-only to see whether sites actually use it. r=mccr8
MozReview-Commit-ID: 6W1nEyKGlER
2018-03-23 12:53:48 -04:00
Geoff Brown 6083932cff Bug 1440714 - Convert Android browser test harnesses to adb.py; r=bc
This affects Android robocop, mochitest (all flavors) and reftests (all flavors).
2018-03-23 18:06:27 -06:00
Brendan Dahl bad447111c 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 : 424fd867edf7a3ab33cede88d2066291516de10c
2018-03-13 17:33:33 -07:00
Andrew Halberstadt 20f38147c2 Bug 1445624 - [test] Make sure verbose logging is enabled when running a single test, r=gbrown
This sets verbose=True (used by the mach formatter) and compact=False (used by tbplformatter) if
only a single test is specified with either |mach test| or |mach mochitest|.

This way all TEST_STATUS and log lines will be visible when developers are writing a new test.

MozReview-Commit-ID: 2nuKs9DLnx0

--HG--
extra : rebase_source : 1fc594b465a2a94dfcd85d56d042969af47f6f65
2018-03-19 16:04:02 -04:00
Kris Maglione 5f432476e0 Bug 1446676: Part 3 - Remove non-bootstrapped worker test add-on. r=aswan
Non-restartless extensions are no longer supported in the wild, and none of
the remaining automation extension rely on Workers in their components.

MozReview-Commit-ID: bh3nwwfM1g

--HG--
extra : rebase_source : db16e8bfdc8148310675b1c8641f4321b2a89702
extra : source : d6bda91c66d6625fb98c427ad62b337696df5acf
2018-03-16 22:31:05 -07:00
Kris Maglione d73b8f03d4 Bug 1446676: Part 1b - Convert automation overlay extensions to bootstrapped extensions. r=aswan
MozReview-Commit-ID: Awq8hpjKjY7

--HG--
rename : testing/talos/talos/bootstrap.js => testing/talos/talos/startup_test/tresize/addon/bootstrap.js
rename : testing/talos/talos/bootstrap.js => testing/talos/talos/tests/devtools/addon/bootstrap.js
rename : testing/talos/talos/bootstrap.js => testing/talos/talos/tests/tart/addon/bootstrap.js
extra : rebase_source : 60caa572aed38b6640961edbb69903df380ba969
extra : source : aabfc0197692dbb5dff1303fba35eb9b3dec5582
2018-03-16 21:31:04 -07:00
arthur.iakab 5e8092339a Merge mozilla-central to inbound
--HG--
rename : browser/base/content/test/general/bug364677-data.xml => browser/components/feeds/test/bug364677-data.xml
rename : browser/base/content/test/general/bug364677-data.xml^headers^ => browser/components/feeds/test/bug364677-data.xml^headers^
rename : browser/base/content/test/general/test_bug364677.html => browser/components/feeds/test/test_bug364677.html
rename : services/sync/tps/extensions/tps/bootstrap.js => services/sync/tps/extensions/tps/components/tps-cmdline.js
rename : testing/talos/talos/pageloader/bootstrap.js => testing/talos/talos/pageloader/components/tp-cmdline.js
rename : testing/talos/talos/startup_test/sessionrestore/addon/bootstrap.js => testing/talos/talos/startup_test/sessionrestore/addon/SessionRestoreTalosTest.js
rename : testing/talos/talos/talos-powers/bootstrap.js => testing/talos/talos/talos-powers/components/TalosPowersService.js
rename : tools/quitter/bootstrap.js => tools/quitter/QuitterObserver.js
extra : rebase_source : 5801e95a945b54754f27571e7b211e1eac132d67
2018-03-21 22:27:21 +02:00
Sebastian Hengst 65d6e8f735 Backed out 5 changesets (bug 1446676) for timeouts in talos-chrome-profiling on OS X. a=backout
Backed out changeset 5d3eb0526d8b (bug 1446676)
Backed out changeset d6bda91c66d6 (bug 1446676)
Backed out changeset 71d65d6b6499 (bug 1446676)
Backed out changeset aabfc0197692 (bug 1446676)
Backed out changeset ad8214a6cf04 (bug 1446676)

--HG--
rename : services/sync/tps/extensions/tps/bootstrap.js => services/sync/tps/extensions/tps/components/tps-cmdline.js
rename : testing/talos/talos/pageloader/bootstrap.js => testing/talos/talos/pageloader/components/tp-cmdline.js
rename : testing/talos/talos/startup_test/sessionrestore/addon/bootstrap.js => testing/talos/talos/startup_test/sessionrestore/addon/SessionRestoreTalosTest.js
rename : testing/talos/talos/talos-powers/bootstrap.js => testing/talos/talos/talos-powers/components/TalosPowersService.js
rename : tools/quitter/bootstrap.js => tools/quitter/QuitterObserver.js
2018-03-21 20:51:03 +02:00
Gurzau Raul d29789ae4b Backed out changeset deb3484ed429 (bug 1444973) for remoteautomation.py failures on Android a=backout 2018-03-21 16:53:11 +02:00
Tiberius Oros 649398dfd9 Merge inbound to mozilla-central. a=merge 2018-03-21 12:03:08 +02:00
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
Peter Van der Beken f5754d679a Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : 5911f91bd7a63cd3603494e087e3858bd0527500
2018-03-01 20:19:56 +01:00
Kris Maglione 6b484d848d Bug 1446676: Part 3 - Remove non-bootstrapped worker test add-on. r=aswan
Non-restartless extensions are no longer supported in the wild, and none of
the remaining automation extension rely on Workers in their components.

MozReview-Commit-ID: bh3nwwfM1g

--HG--
extra : rebase_source : ad3d131d6db984f4171c5f79b86de094d2cca1bf
2018-03-16 22:31:05 -07:00
Kris Maglione cf68a72173 Bug 1446676: Part 1b - Convert automation overlay extensions to bootstrapped extensions. r=aswan
MozReview-Commit-ID: Awq8hpjKjY7

--HG--
rename : testing/talos/talos/bootstrap.js => testing/talos/talos/startup_test/tresize/addon/bootstrap.js
rename : testing/talos/talos/bootstrap.js => testing/talos/talos/tests/devtools/addon/bootstrap.js
rename : testing/talos/talos/bootstrap.js => testing/talos/talos/tests/tart/addon/bootstrap.js
extra : rebase_source : 9e558f02aca879b67458388de1cf175e636837fe
2018-03-16 21:31:04 -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
Geoff Brown 8b8a2994e8 Bug 1435433 - Print master test summary after android mochitests when runByManifest; r=jmaher 2018-02-07 13:33:43 -07:00
Gurzau Raul 772c8edfef Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-07 02:29:42 +02:00
Andrew McCreight 754a4bcd3c Bug 1432992, part 2 - Manually remove some empty blocks. r=florian
Also, remove a now-obsolete comment from placesOverlay.xul and remove
some now-empty XPCShell test head files.

MozReview-Commit-ID: 6kKVQu8FAL3

--HG--
extra : rebase_source : 7dd05818d68a15bd170af734078db4ba45029d80
2018-01-25 16:52:25 -08:00
Andrew McCreight 5dec0e0beb 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

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Masayuki Nakano dfd6ae6c4b 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

--HG--
extra : rebase_source : b3705b0814d5690e00208d0d3315f09f886c6f26
2018-02-02 18:10:22 +09:00
Andrew Halberstadt f354075c7a Bug 1434430 - [flake8] Fix blank 'except' statements r=rwood
This is a new issue that gets linted with flake8 3.5.0. Basically you should
never use a blank except: statement.

This will catch all exceptions, including KeyboardInterrupt and SystemExit
(which is likely not intended). If a catch all is needed, use
`except: Exception`.  If you *really* mean to also catch KeyboardInterrupt et
al, use `except: BaseException`.

Of course, being specific is often better than a catch all.

MozReview-Commit-ID: FKx80MLO4RN

--HG--
extra : rebase_source : 7c74a7d0d81f2c984b47aff3a0ee3448b791177b
2018-01-31 14:32:08 -05:00
Paul Adenot 1b84dab469 Bug 1434958 - Allow using gstreamer 1.0 and don't hardcode paths when setting up fake devices for webrtc testing. r=pehrsons
MozReview-Commit-ID: 4ogpCqxMojK

--HG--
extra : rebase_source : c712ca3f1cf4c5eb4925338cb6c2b645d9a2010b
2018-02-01 17:41:15 +01:00
Florian Quèze 2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Boris Zbarsky 7a9f022f1a Bug 1434819 part 7. Remove the SHOW_* constants from nsIDOMNodeFilter. r=qdot
MozReview-Commit-ID: 7E2KZkLfbSI
2018-02-01 14:26:12 -05:00
Boris Zbarsky 1c50f93c8b Bug 1435764 part 4. Use NodeFilter in various system-JS places instead of hardcoding constant values. r=kmag
MozReview-Commit-ID: HuwuVXWcWQE
2018-02-06 13:03:44 -05:00
Andreas Tolfsen f83a4332e9 Bug 1434293 - Move mochitest off deprecated Marionette prefs. r=gbrown
The marionette.logging preference has been deprecated for some time.
We will want to use the official marionette.log.level preference instead.

Supported preferences are listed in
testing/marionette/prefs/marionette.js.

MozReview-Commit-ID: 4Z6OgqITe14

--HG--
extra : rebase_source : 62eabd701e79002b3828c3452e634966a2846643
2018-01-30 18:37:07 +00:00
Kris Maglione 918ed6c474 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

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Mike Hommey 478ce5d0b3 Bug 1432395 - Rename valgrind suppressions files to something more generic. r=froydnj
The MACHTYPE bash variable is an odd thing that returns e.g.
x86_64-redhat-linux-gnu on a CentOS system, but x86_64-pc-linux-gnu
on a Debian system, and possibly something different on other distros.

mach valgrind-test is the only place actually relying on MACHTYPE.
Others rely on information from python modules. Uniformize that, and use
the more generic 'pc' rather than 'redhat'.

--HG--
rename : build/valgrind/i386-redhat-linux-gnu.sup => build/valgrind/i386-pc-linux-gnu.sup
rename : build/valgrind/x86_64-redhat-linux-gnu.sup => build/valgrind/x86_64-pc-linux-gnu.sup
extra : rebase_source : ad94ce69e8094d2b9ddae97a3d261945886c0a61
2018-01-27 10:22:56 +09:00
Andrew Halberstadt 3684054b5d Bug 1433974 - Update BUG_COMPONENT for some of the new Testing components, r=jmaher
MozReview-Commit-ID: 7jQnnAhOzEr

--HG--
extra : rebase_source : af1c9dca779c6089b5cc062eea81ef9945133d48
2018-01-29 12:57:54 -05:00
Kris Maglione aec63e140c Backed out 3 changesets (bug 1431533) for Android mochitest bustage. CLOSED TREE
MozReview-Commit-ID: 5ubE9EMQpZ9

--HG--
extra : histedit_source : df68d7595925c07d9d6e8bacc2c46e69556f479a%2C72b768b9825e20ede6603ead75f871c50dc041f7
2018-01-24 22:04:59 -08:00
Kris Maglione 30b3a49bfd Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
MozReview-Commit-ID: 8V1ZT53ReiP

--HG--
extra : rebase_source : 12b5f8c3e125111db7382eb3d7d20a99fb2c35b3
extra : absorb_source : e99fa7f6eee02e7e6cadeb898c7fcf6dac9c902a
extra : histedit_source : d0dfc31fadc2b81d341c9d0cd1efec02923c003b
2018-01-24 15:48:47 -08:00
Kris Maglione ded77ac796 Bug 1431533: Part 3 - Define ChromeUtils on chrome-privileged Sandboxes that need it. r=mixedpuppy
This is necessary before we enable the ESLint rule to require using
ChromeUtils for module imports rather than older methods.

MozReview-Commit-ID: mKqByUS0o2

--HG--
extra : rebase_source : d4b856aac7ff7eddc37cbf591c4e6522c45453e2
extra : histedit_source : 1ca2b6031e480fb44a15991241901224acc9e52f
2018-01-18 14:52:39 -08:00
Bryce Van Dyk 4202646370 Bug 1438348 - Init MochitestDesktop's self.manifest to None to prevent attrib error. r=ahal
MozReview-Commit-ID: 90z5C5wrUUO

--HG--
extra : rebase_source : 893ab34fa34c3a004eabec230881860da80e9049
2018-02-14 17:07:24 -05:00
Brian Grinstead 1477c8b486 Bug 1438579 - Refer to the tabbrowser element as gBrowser instead of #content;r=dao
Since gBrowser is going to become a plain JS object instead of a DOM node,
we don't want any callers directly referring to the DOM node to get ahold of it.

MozReview-Commit-ID: KbE5dlTWmS

--HG--
extra : rebase_source : ef4caea778db406205b58b9f007846dabb062978
2017-10-05 15:58:45 -07:00
Julian Descottes 8aa7939bd1 Bug 1431194 - avoid timeouts when clearing prefs set via pushPrefEnv;r=jmaher
MozReview-Commit-ID: 1EYsxYnj2GE

--HG--
extra : rebase_source : dfa5d822e46387d9d473b5b744289f15f4410dbe
2018-01-17 21:51:54 +01:00
Alex Chronopoulos b763254d0e Bug 1406350 - part1: Update runtest.py to new loopback setup. r=pehrsons
MozReview-Commit-ID: GLB78LWVTHP

--HG--
extra : rebase_source : 308754062bcc333db49b0fae0bc79f51eb484098
2018-01-15 12:51:14 +02:00
Gijs Kruitbosch c9de1798f5 Bug 1426250 - allow EventUtils to dispatch drag/mouse events through the DOM only, r=enndeakin
MozReview-Commit-ID: HmdRdTQ05pm

--HG--
extra : rebase_source : be9642a54e99e6b799a9b839d132f276b6b57b8f
extra : histedit_source : e2e68f6f4caac82848d7f8dd4cb47c30cdeeb082
2018-01-05 21:30:42 +00:00
Andrew Halberstadt b7359b79da Bug 1429158 - Use 'mach' format by default for one-click-loaner mochitests, r=jmaher
This uses the 'mach' format by default when running mochitests
from a one-click-loaner. This is now consistent with the default
when running mochitests locally.

MozReview-Commit-ID: LYQbGm71Of8

--HG--
extra : rebase_source : a0a042ae1f7af8b09f80cf1b4dc33a58e67f333e
2018-01-09 14:34:27 -05:00
Valentin Gosu f943b98a02 Bug 1426501 - Change JS code to use nsIURIMutator instead of the nsIURI.spec setter r=mayhemer
MozReview-Commit-ID: FI6WrsQT2ke

--HG--
extra : rebase_source : 2b286c47c19ebd112a0c47fbe0a4c23bdb04755f
2018-01-08 15:20:29 +01:00
Cosmin Sabou 81a8319b46 Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
rename : dom/xul/templates/nsXULSortService.cpp => dom/xul/nsXULSortService.cpp
2018-01-03 23:59:59 +02:00
Olli Pettay f32a75dab4 backout Bug 1414204 because of regressions, r=backout
--HG--
extra : rebase_source : afc007d6310bb5f4c06da319aa66f50085f3926f
2018-01-03 18:42:37 +02:00
Andrew Halberstadt 0c637cdc6c Bug 1421799 - [test] Add mozlog logging arguments to |mach test| and |mach mochitest| r=gbrown
MozReview-Commit-ID: CaysVHzNTWo

--HG--
extra : rebase_source : f6e1375e1de7e80f2583ac89f78ff90afe01934f
2017-12-06 17:29:23 -05:00
Andrew Halberstadt 085ba4650f Bug 1421799 - [mochitest] Stop printing NOW RUNNING messages r=gbrown
The suite name is no part of the suite_start message and can be printed via a
mozlog formatter. We shouldn't be printing this directly to stdout from |mach
mochitest|.

MozReview-Commit-ID: TOuqfEF14

--HG--
extra : rebase_source : 23bb214e6c1eedccf95abe08bb06b187728599d5
2017-12-06 17:32:17 -05:00
Sebastian Hengst e6dbbae0aa Backed out 5 changesets (bug 1421799) for failing firefox ui functional tests. r=backout on a CLOSED TREE
Backed out changeset f9f32474fdaf (bug 1421799)
Backed out changeset 18b4fa241936 (bug 1421799)
Backed out changeset 88dca5c8cfac (bug 1421799)
Backed out changeset 8c1f1ab754a5 (bug 1421799)
Backed out changeset e028f677bc80 (bug 1421799)
2018-01-03 20:21:28 +02:00
Andrew Halberstadt 89c4f8acbc Bug 1421799 - [test] Add mozlog logging arguments to |mach test| and |mach mochitest| r=gbrown
MozReview-Commit-ID: CaysVHzNTWo

--HG--
extra : rebase_source : 005949ca4a91b4610837a7dd041f26a25559049a
2017-12-06 17:29:23 -05:00
Andrew Halberstadt 5a7959922c Bug 1421799 - [mochitest] Stop printing NOW RUNNING messages r=gbrown
The suite name is no part of the suite_start message and can be printed via a
mozlog formatter. We shouldn't be printing this directly to stdout from |mach
mochitest|.

MozReview-Commit-ID: TOuqfEF14

--HG--
extra : rebase_source : ebcf6e37b77a0ca1e6da242df9066d4b41286d5c
2017-12-06 17:32:17 -05:00
Stone Shih 994434653c Bug 1414204 Part2: Tweak the API to synthesize dnd operations. r=smaug.
SynthesizeDrop synthesizes a dnd operation by starting a drag session and firing mouse events. Tweak the API to follow the order of real use cases.

MozReview-Commit-ID: 1SdJPUtSVKq
2017-11-07 19:44:24 +08:00
Dorel Luca 61983e9ada Backed out 5 changesets (bug 1421799) for failing browser-chrome on Linux and OSX and for failing autophone-mochitest on Android r=backout on a CLOSED TREE
Backed out changeset 7fb20bced076 (bug 1421799)
Backed out changeset 629e467a07be (bug 1421799)
Backed out changeset 2de335c0287a (bug 1421799)
Backed out changeset afe14ec646ab (bug 1421799)
Backed out changeset bbe4d2292f86 (bug 1421799)
2017-12-14 15:41:22 +02:00
Andrew Halberstadt d27d62788b Bug 1421799 - [test] Add mozlog logging arguments to |mach test| and |mach mochitest| r=gbrown
MozReview-Commit-ID: CaysVHzNTWo

--HG--
extra : rebase_source : a5ffb00e0fae1a70a6d01d629710db6ea042260f
2017-12-06 17:29:23 -05:00
Andrew Halberstadt 0ebc117752 Bug 1421799 - [mochitest] Stop printing NOW RUNNING messages r=gbrown
The suite name is no part of the suite_start message and can be printed via a
mozlog formatter. We shouldn't be printing this directly to stdout from |mach
mochitest|.

MozReview-Commit-ID: TOuqfEF14

--HG--
extra : rebase_source : 15db5dc64476c52c91e59868c3653d5962870a5d
2017-12-06 17:32:17 -05:00
Masatoshi Kimura 295faed3f9 Bug 1418914 - Move E10SUtils.jsm into toolkit/. r=mossop
MozReview-Commit-ID: EgDzEEKAeh1

--HG--
rename : browser/modules/E10SUtils.jsm => toolkit/modules/E10SUtils.jsm
extra : rebase_source : 0920ce818773af797a0daf3cf4ae90af41d71d2a
2017-12-12 21:35:16 +09:00
Csoregi Natalia 1134c27c23 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-14 00:15:40 +02:00
Andrew Halberstadt bc48fbb9ae Bug 1209463 - [mozlog] Add a 'summary_on_shutdown' attribute to MachFormatter, r=jgraham
When 'summary_on_shutdown' is True (which is the case for |mach test| and |mach
mochitest|), BaseSummaryFormatters will save the summary information until the
'shutdown' action is received at the end of the logger's lifetime.

Summary information will no longer be dumped on 'suite_end'.

MozReview-Commit-ID: HKtVr5PxfOy

--HG--
extra : rebase_source : f350f09111deb510b27a4e55797243dda3160869
2017-11-29 12:02:19 -05:00
Stone Shih 39bc975ceb Bug 1421482 Part2: Replace test utility synthesizePointer with synthesizeMouse. r=smaug.
We should follow the real use cases to synthesize mouse or touch events to generate pointer events so that the related logic is covered by these test cases.

MozReview-Commit-ID: 9xSgjSL0Azt
2017-11-24 07:50:12 +08:00
Sebastian Hengst 9d920555ec Backed out 2 changesets (bug 1421482) for failing modified mochitest layout/base/tests/test_bug1078327.html. r=backout a=backout
Backed out changeset a8701e1bd012 (bug 1421482)
Backed out changeset d774f5fe6e94 (bug 1421482)
2017-12-12 19:03:49 +02:00
Stone Shih 841f50b537 Bug 1421482 Part2: Replace test utility synthesizePointer with synthesizeMouse. r=smaug.
We should follow the real use cases to synthesize mouse or touch events to generate pointer events so that the related logic is covered by these test cases.

MozReview-Commit-ID: 9xSgjSL0Azt
2017-11-24 07:50:12 +08:00
Tooru Fujisawa c43c8f4bd8 Bug 1416446 - Part 1: Wait for the next tick in BrowserTestUtils.waitForEvent. r=Paolo 2017-12-09 06:08:43 +09:00
Andrew Halberstadt 3e46924759 Bug 1209463 - [test] Use a common logger across suites from |mach test| and other test commands, r=gbrown
In order for |mach test| and |mach mochitest| to log an overall summary,
every test harness invocation they make needs to use the same structured
logger (otherwise the affected suite will be missing from the summary).

MozReview-Commit-ID: 8LJw7r8SItk

--HG--
extra : rebase_source : 1417dce3817bae94ad61a5250065c6cbc35857e4
2017-11-23 13:04:19 -05:00