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

16015 Коммитов

Автор SHA1 Сообщение Дата
Blake Kaplan 17849d2e28 Bug 1345990 - Switch to an options object for BTU.openNewForegroundTab. r=mconley
MozReview-Commit-ID: HkFXpiWICge

--HG--
extra : rebase_source : e3b31a5df25ac7df0c67ee35915a62169703e1af
2017-04-26 17:08:32 -07:00
Henrik Skupin 2c6b09cf46 Bug 1362528 - Let getWindowHandles and getChromeWindowHandles return list of strings r=ato
By the webdriver spec both commands have to return a list of strings for the
window handles. Right now those are numbers.

MozReview-Commit-ID: 5Gn624BaVI1

--HG--
extra : rebase_source : 400acb7a0cc4bc1b1bf09934959a63da1bb5a28c
2017-05-05 22:21:51 +02:00
David Burns 7d9e71c048 Bug 1361987 - Move setWindowRect to not return from a generator. r=ato
setWindowRect is using `return` from a generator which is not valid
javascript. This now populates the response before it is returned to
the client.

MozReview-Commit-ID: 6vSadp59Nrt

--HG--
extra : rebase_source : d642771dd2308c21d1e3398b7387b4ae4e5ffeea
2017-05-05 20:29:04 +01:00
David Burns eda4f81db7 Bug 1361987 - Move maximizeWindow call to not use a return in a generator. r=ato
The maximizeWindow call in Marionette uses return which is not valid javascript.
This change update the response that is then picked up by the server before
returning to the remote end.

MozReview-Commit-ID: JJzsTHba0AK

--HG--
extra : rebase_source : 8b64aa37c7391d60a9de3276cef89a5564bbcd37
2017-05-05 14:49:41 +01:00
Justin Wood a900ff41d5 Bug 1265537 - Adjust Windows TC Builds to generate simple package names, adjust tests to use them. r=grenade
MozReview-Commit-ID: AgCTrIMXEdd

--HG--
extra : rebase_source : 9e35daebc08d884bc0ed1235f832abd8309b9ffb
extra : source : 3bb90c64e2a86f92334bc0b9045ee1ff20e243e9
2017-05-02 22:16:21 -04:00
Carsten "Tomcat" Book 6ae9b7bb71 Merge mozilla-central to autoland
--HG--
rename : browser/base/content/gcli_sec_bad.svg => devtools/client/themes/images/gcli_sec_bad.svg
rename : browser/base/content/gcli_sec_good.svg => devtools/client/themes/images/gcli_sec_good.svg
rename : browser/base/content/gcli_sec_moderate.svg => devtools/client/themes/images/gcli_sec_moderate.svg
2017-05-05 15:27:55 +02:00
Henrik Skupin 28439aac69 Bug 1362051 - Update tests have to set MOZ_MARIONETTE environment variable. r=ato,maja_zf
To allow update tests to use source builds of Firefox before bug 1355888
was landed, the MOZ_MARIONETTE environment variable has to be be
pre-emptively set. Otherwise Marionette will not be activated after
the update has been applied.

MozReview-Commit-ID: Hqb6SjYtOPR

--HG--
extra : rebase_source : 10f9b4d2545198fc95294381ec1db63f1445c736
2017-05-04 22:10:50 +02:00
Armen Zambrano G. cdf7027693 Bug 1362142 - Mozharness to distinguish Windows archictecture properly. r=aki
We currently use:
> '64' in platform.architecture()[0] # architecture() returns (bits, linkage)

Unfortunately, that is the Python binary byte size.
https://docs.python.org/2/library/platform.html
> platform.architecture(executable=sys.executable, bits='', linkage='')
>
>    Queries the given executable (defaults to the Python interpreter binary)
>    for various architecture information.
>
>    Returns a tuple (bits, linkage) which contain information about the bit
>    architecture and the linkage format used for the executable.

Instead we should be using machine()
> platform.machine()
>
>    Returns the machine type, e.g. 'i386'. An empty string is returned if the
>    value cannot be determined.

My sampling size:
* win10   - AMD64
* win7    - x86
* Linux64 - x86_64
* MacOSX  - x86_64

MozReview-Commit-ID: HVBRHUGP1J2

--HG--
extra : rebase_source : 729f581dfa8244e3055cc0c383760444850ccdfa
2017-05-04 15:16:50 -04:00
Dão Gottwald 39669a550b Bug 1054740 - Stop reusing tabs when restoring windows since at this point it's counterproductive rather than a useful optimization. r=mikedeboer
MozReview-Commit-ID: EuM08mEhDqZ

--HG--
extra : rebase_source : 43fc0410045f0efe48db2ae14d56994a90bded5f
2017-05-04 14:26:32 +02:00
Armen Zambrano G. d9ebaa23e6 Bug 1361462 - Python3 support for Mozharness r=aki,rwood
This adds support for fetching Python3 zip files
for Talos for Windows 32-bit and 64-bit.

MozReview-Commit-ID: KpYXQrfwRBY

--HG--
extra : rebase_source : e31530c45ab24e98a2b0ac6d51d7956b204df5b0
2017-05-04 16:47:45 -04:00
Armen Zambrano G. d035037d96 Bug 1361462 - Mozharness' tooltool should create directories if missing r=aki
MozReview-Commit-ID: 5HjD7smfCZx

--HG--
extra : rebase_source : dc0c0654644a7b96b64c838a00d9bc34e7b58ef9
2017-05-05 09:10:07 -04:00
Armen Zambrano G. 855bc5a8c1 Bug 1361462 - Add tooltool_cache for Windows Talos jobs r=aki
MozReview-Commit-ID: LUNJuFMgwm8

--HG--
extra : rebase_source : a6c9f21aa8ef033d34f8ad18d54a803e25581760
2017-05-04 16:01:48 -04:00
Honza Bambas a1b64b4694 Bug 1319111 - Expose URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Justin Wood e1ab4d2be9 Backout Bug 1337861 (Enforce MOZ_BUILD_DATE) due to Bug 1360550. r=catlee a=catlee
Bug 1360550 resulted in the buildid the Linux builds had being different than the directory they were uploaded to. This had fallout affects for QA's firefox-ui tests and presumably anything using mozdownload.

MozReview-Commit-ID: 7xbEihhDF1N

--HG--
extra : rebase_source : 5b857887722e172695eb1f0fb12361fc89c24f80
2017-05-04 12:51:06 -04:00
Sebastian Hengst 1609e49868 merge mozilla-central to mozilla-inbound. r=merge a=fix-for-buildbot-bridge-on-osx 2017-05-04 17:49:38 +02:00
Wander Lairson Costa be9d05d81d Bug 1350413 part 1: move macosx64/opt build to buildbot-bridge. r=dustin
Because of bug 1338651, we need to stick to BBB macosx64 builds for now.

MozReview-Commit-ID: AwQc5r6ikUN

--HG--
extra : transplant_source : %97%1B%95H%D8L1%87%84h%F4%89%0D%283w%98%7E%2C%F4
2017-05-02 16:12:51 -03:00
Iris Hsiao e71485e5b0 merge mozilla-inbound to mozilla-central a=merge 2017-05-04 11:18:36 +08:00
Sebastian Hengst 532800137b Backed out changeset db9f3b377504 (bug 1054740) for failing Marionette's test_prefs.py TestPreferences.test_clear_pref, at least on Linux in non-e10s mode. r=backout on a CLOSED TREE 2017-05-03 23:15:56 +02:00
Wes Kocher 4e89a77541 Merge m-c to autoland, a=merge
MozReview-Commit-ID: F7qkNALe0WT
2017-05-03 13:52:24 -07:00
Wes Kocher 21203b47b5 Merge inbound to m-c a=merge
MozReview-Commit-ID: JgXkqrOwl3N
2017-05-03 13:40:24 -07:00
Nick Alexander 0bfebf0c87 Bug 1361545 - Add "skin" flavorDimension for Photon mobile work. r=sebastian,bustage-fix
This is pretty straight-forward.

Sadly, this will require local developers to add a "skin" product
flavor to their invocations, like:

./mach gradle app:assembleLocalAustralisDebug

In addition, this shows how many different variants of the Gradle
product flavor are embedded into our automation configurations.  I
can't solve that at this time.

Since I was here, I took the time to rename "automation" to
"official", which makes "localAustralis" the default in Android
Studio, avoiding a common issue with new builders producing an APK
that doesn't include omni.ja in the IDE.

MozReview-Commit-ID: CtU7zFpNCob
2017-05-03 19:20:58 +02:00
Sebastian Hengst fcaaea05db Backed out changeset 289c6a3f7886 (bug 1361545) for busting Android gradle builds. r=backout 2017-05-03 19:19:52 +02:00
Nick Alexander 571de094b3 Bug 1361545 - Add "skin" flavorDimension for Photon mobile work. r=sebastian
This is pretty straight-forward.

Sadly, this will require local developers to add a "skin" product
flavor to their invocations, like:

./mach gradle app:assembleLocalAustralisDebug

In addition, this shows how many different variants of the Gradle
product flavor are embedded into our automation configurations.  I
can't solve that at this time.

Since I was here, I took the time to rename "automation" to
"official", which makes "localAustralis" the default in Android
Studio, avoiding a common issue with new builders producing an APK
that doesn't include omni.ja in the IDE.

MozReview-Commit-ID: CtU7zFpNCob

--HG--
extra : rebase_source : 477ef683f850ff11cfa128e17855666bb7758a7a
2017-05-02 15:27:37 -07:00
Dão Gottwald 1d352d917c Bug 1054740 - Stop reusing tabs when restoring windows since at this point it's counterproductive rather than a useful optimization. r=mikedeboer
MozReview-Commit-ID: LhJDs9GSxuK

--HG--
extra : rebase_source : 96cb427ada78ee70368f6cb1d4cad4811681c454
2017-05-03 21:57:06 +02:00
Michal Novotny 133308dd0d Bug 1361435 - Remove references to unused pref network.http.bypass-cachelock-threshold, r=mcmanus
Removes references to now unused pref that was added in bug 868441 and removed in bugs 913807 and 1054572. It also removes some leftovers from http channel which have not been removed in those 2 bugs.
2017-05-04 17:37:42 +02:00
André Bargull f21754e0f3 Bug 1317383 - Part 5: Update expected results for wpt typedarray and wasm tests. r=bbouvier
--HG--
extra : rebase_source : 47be2308322e996fa8bef359d5f1b523fac9801e
2017-05-02 14:21:04 -07:00
Andrea Marchesini 40a6c939ee Bug 1330900 - Enable WPT for <script nomodule>, r=annevk
Enabling means set dom.moduleScripts.enabled to true
2017-05-04 10:24:13 +02:00
Andrew Swan 79a787c063 Bug 1352204 Fix test issues with non-MPC extensions r=kmag
Continue to allow non-multiprocessCompatible extensions in automation.
There are a ton of places that would need to be changed, many of which
will be changing soon anyway with the non-webextensions change in 57
so this is mostly the expedient route to keeping the tree green.

MozReview-Commit-ID: EZZoDVdhLfy

--HG--
extra : rebase_source : f83472bc1c88dd0deadbe485d9002499027ff07f
2017-05-03 08:02:51 -07:00
Henrik Skupin 891449384c Bug 1357634 - Use 'beforeunload' to detect a possible page load. r=ato
Using only the different unload events to detect a page load is
unreliable because of a possible delay in starting the navigation,
which could be triggered by a slowness of the application.

By using 'beforeunload', an event will be received much earlier,
and the unload timer can be extended to a couple more seconds to
wait for the navigation request to start.

If a website has it's own 'beforeunload' listener registered,
a tab modal dialog will be opened by Firefox, and Marionette
returns from the currently active command immediately to allow
the test to handle the dialog.

MozReview-Commit-ID: 6ZUYtFJSSnz

--HG--
extra : rebase_source : 3f7b9d9d0067ed7c65a3bb8774f0a5ae8bc702c2
2017-04-28 10:27:12 +02:00
Andreas Tolfsen c6333df5ad Bug 1355888 - Clarify that -marionette flag works cross platform; r=whimboo
Windows systems only accept singled-dashed -marionette, whereas Unix
platforms accept both that and double-dashed --marionette.  This makes
the documentation true for all supported platforms.

MozReview-Commit-ID: IG7ir2HVoHo

--HG--
extra : rebase_source : f3b2740e47f373e5f784d131f1844f82b4c56990
2017-04-13 15:22:40 +01:00
Andreas Tolfsen 29483db42b Bug 1355888 - Remove unused DEFAULT_PORT constant; r=whimboo
MozReview-Commit-ID: 3lkxXFM7Jz0

--HG--
extra : rebase_source : 2ee28babb8ef080542b7b16bbf2a6e9b852b1a9c
2017-04-13 15:09:30 +01:00
Andreas Tolfsen a0995b33db Bug 1355888 - Remove marionette.enabled pref from wptrunner; r=jgraham
MozReview-Commit-ID: IzASL0SBCsR

--HG--
extra : rebase_source : 2614e902138a6e370c024be0680458e61388d344
2017-04-13 15:09:11 +01:00
Andreas Tolfsen cf773b33a8 Bug 1355888 - Mark marionette.enabled pref in client as a deprecated; r=whimboo
To preserve backwards compatibility for in-app restarts using
Services.startup.quit(eRestart), we want to continue using the
marionette.enabled preference in the Python client until the patch
introducing the MARIONETTE environment variable (preceding this) makes
it into an official release.

This is due to the fact that the Marionette Python client is being
used for upgrade tests, and it is needs to stay compatible with all
release trains.

MozReview-Commit-ID: KstsJRu4lIP

--HG--
extra : rebase_source : 01a00549a9c8b57fd65aad8cd68ef04fdcca981d
2017-04-13 15:08:49 +01:00
Andreas Tolfsen 8216b2843e Bug 1355888 - Remove marionette.enabled pref; r=maja_zf,whimboo
There are no current use cases for starting and stopping the Marionette
server at runtime through a preference.  Since it is possible for
arbitrary addons to modify any preference, we are removing it to reduce
the potential attack surface for Marionette.

This effectively leaves only three ways of starting Marionette:
By passing the -marionette flag to the Firefox binary at startup,
setting the MOZ_MARIONETTE environment variable, and by calling
server.TCPListener#start(), which is an internal chrome API.

MozReview-Commit-ID: 9zKsV8ufySU

--HG--
extra : rebase_source : c0914f2ab99229d507830bbf9704e82bd83b1883
2017-04-13 15:08:14 +01:00
Andreas Tolfsen f67d69a55f Bug 1355888 - Add env var MOZ_MARIONETTE to start server; r=maja_zf,whimboo
This patch introduces a new environment variable, MOZ_MARIONETTE, which
if set will start the Marionette remote control server.  This is meant
to be analogous to passing the -marionette flag to the Firefox binary.

When the server is started, we set the environment variable to
preserve Marionette's enabled state across internal restarts.
When Services.startup.quit(eRestart) is called, Firefox is restarted
without the original command line flags it was started with, which means
we lose track of whether Marionette was enabled.  By setting
MOZ_MARIONETTE in-process, we preserve the knowledge of this state.

This approach is in line with how state is preserved across in-app
restarts in toolkit/xre/nsAppRunner.cpp:4761 (XRE_PROFILE_*), and for
how MOZ_APP_RESTART and XUL_APP_FILE works.

MozReview-Commit-ID: Dcb34m6FoZh

--HG--
extra : rebase_source : 98515c702dfd8eaad01f7eab06d33124ce14b15c
2017-04-15 01:50:29 +01:00
Julian Descottes 3953540654 Bug 1183962 - stop installing webide button in menu or navbar automatically;r=jryans
MozReview-Commit-ID: CACgml3Xijf

--HG--
extra : rebase_source : 6fc322700f3d2113c813f2a33c09abc3ba865405
2017-05-02 22:56:40 +02:00
Gregory Szorc abd52a84b9 Bug 1361436 - Emit build stats immediately after build; r=ted
The "generate-build-stats" mozharness action collects a bunch of build
system metrics, including build_resources.json, ctors count, and
installer size and reports them by writing special messages that
log parsers read.

Before this commit, this mozharness action occurred sometime after
"build." But relative ordering to other actions was not consistent
and appears to be significantly cargo culted.

4e61e69a383c (bug 1304508) changed the "check" mozharness action to
invoke `mach build check` instead of `make` directly. An unintended
consequence of this is that `mach build` replaced the
build_resources.json file from the build itself with one measuring
`make check`. This made the "build time summary" metric take a nose
dive.

This commit works around the issue introduced by 4e61e69a383c by
reordering the mozharness actions so "generate-build-stats" follows
immediately after the "build" action. Not only does it now occur
before the "check" action, but it also occurs before uploading and
other actions.

I'm not sure why "generate-build-stats" is its own action and not
part of "build" itself. As the diff shows, numerous instances of
"generate-build-stats" are commented out, which means we aren't
collecting metrics. "generate-build-stats" is also missing from a
handful of mozharness configs, including Windows Clang builds. I'm
not sure what the history is (it is likely varied and almost certainly
involves a fair amount of cargo culting), but I think it is a bug that
we aren't collecting build metrics for every build. I would like to
fix this. And moving "generate-build-stats" immediately after "build"
should make that transition easier.

MozReview-Commit-ID: 7jNTVWRvMnh

--HG--
extra : rebase_source : 0b5fd1f462caa5c283ba7e1b693fdc5b8b948add
2017-05-02 14:32:52 -07:00
Jessica Jong 6469b8fbc1 Bug 1358448 - Add wpt for cases when moving radio out of or into a form. r=smaug
MozReview-Commit-ID: AdXVNfg1eyw

--HG--
extra : rebase_source : 53b31c45f9f3ce11b9d5ad68f464ccd9e21bc197
2017-05-02 23:01:00 +02:00
Wes Kocher e141e24ffb Merge m-c to autoland, a=merge
MozReview-Commit-ID: 1peTFbNMVnU
2017-05-02 17:38:11 -07:00
Wes Kocher df3f95a52f Merge inbound to m-c a=merge
MozReview-Commit-ID: 4SpokMW1d3I
2017-05-02 17:35:06 -07:00
Henrik Skupin 036c6138ff Bug 1361302 - Fix clicks.html to not trigger a double navigation for history navigation. r=automatedtester
Our click + page load implementation doesn't handle complex navigation
scenarios yet. As such those should not be triggered inside our unit
tests.

MozReview-Commit-ID: Cog5vohttes

--HG--
extra : rebase_source : 7068483f041ab1895ecc921f377da9bfd420ec23
2017-05-02 16:33:25 +02:00
Sebastian Hengst a71bcd1f3c Backed out changeset 46dd4a4338a1 (bug 1352204) for timing out Talos suites g2, o and s. r=backout 2017-05-02 20:19:17 +02:00
Wes Kocher 9a6937d9cb Bug 1361417 - Update moz.build crash reporter bug components r=bsmedberg
MozReview-Commit-ID: IJgNTLI4K5w

--HG--
extra : rebase_source : c93a49e6e8ca9284f0084c86f0a551c0a076ee6f
2017-05-02 09:44:42 -07:00
Andrew Swan efb4f22c33 Bug 1352204 Fix test issues with non-MPC extensions r=kmag
Continue to allow non-multiprocessCompatible extensions in automation.
There are a ton of places that would need to be changed, many of which
will be changing soon anyway with the non-webextensions change in 57
so this is mostly the expedient route to keeping the tree green.

MozReview-Commit-ID: EZZoDVdhLfy

--HG--
extra : rebase_source : 34aa762917566b052ade6372280caed72fbfbe9a
2017-05-01 10:34:27 -07:00
Mantaroh Yoshinaga 0fdc861258 Bug 1355732 Enable web platform tests of column-* properties animation. r=hiro
MozReview-Commit-ID: EsuYbfbP17G

--HG--
extra : rebase_source : 708128f68c7bf4970f13ca1c65ab37cf5cbec286
2017-05-02 17:43:33 +09:00
Wes Kocher 213466c2df Merge m-c to inbound, a=merge
MozReview-Commit-ID: LDWwyJ6Gdqw
2017-05-01 16:06:49 -07:00
Wes Kocher 7faa53484a Merge inbound to central, a=merge
MozReview-Commit-ID: 8sRTD0l9sKa
2017-05-01 15:55:18 -07:00
Ben Hearsum 3fc6f41c38 bug 1358601: set up CI builds and tests for DevEdition on mozilla-beta - enable pgo, fix Linux treeherder symbols, use correct mozconfigs for Mac and Windows. r=rail
MozReview-Commit-ID: LQAzdw7paGf
2017-05-01 16:26:26 -04:00
Ben Hearsum 81d1f419d1 bug 1358601: set up CI builds and tests for DevEdition on mozilla-beta - fix stage_platform, clobbers, and update_channel. r=asasaki
Because DevEdition builds are intended to be shipped, we must force clobbers on all of them. We also need to fix the update channel, which is currently still set to "beta". In order to make it possible to override this we need to change stage_platform to a unique value.

--HG--
extra : amend_source : 84422951ad22665c1cf027882171db01953ff840
2017-05-01 09:31:09 -04:00
Ben Hearsum 55e7aca426 bug 1358601: set up CI builds and tests for DevEdition on mozilla-beta - set stage product for buildbot based builds. r=rail
To make OS X and Windows DevEdition builds upload to the "devedition" area on archive, instead of "firefox".

--HG--
extra : amend_source : b5472a9c2f27aa59b7f8715800dcb2161fe4252f
2017-05-01 12:58:27 -04:00
Sebastian Hengst 511aaabc7a merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-04-30 20:25:47 +02:00
Jeremy Chen c398656635 Bug 1359786 - re-enable interpolation tests for word-spacing and flex-basis. r=hiro DONTBUILD (test-only)
MozReview-Commit-ID: 45OfSVVuCUw
2017-05-01 00:36:07 +08:00
Jeremy Chen 29e85ccbca Bug 1359786 - update MANIFEST for web-platform-tests. r=hiro DONTBUILD (test-only)
MozReview-Commit-ID: 8zAizjwsMLN
2017-05-01 00:36:06 +08:00
Jeremy Chen c073148ffd Bug 1359786 - reuse existing lengthPairType for positionType in web animations' web-platform-tests. r=hiro DONTBUILD (test-only)
Since lengthPairType and positionType share the same testing logics, we shall
just reuse lengthPairType::{testInterpolation, testAddition} for positionType.

MozReview-Commit-ID: 1nBBHmTB3U9
2017-05-01 00:36:06 +08:00
Jeremy Chen c9c4b8cd54 Bug 1359786 - only check the mid-point while testing interpolation results in animations' web-platform-tests. r=hiro DONTBUILD (test-only)
In case of interpolation, we shall just check at 500ms.
No need to check 0ms and 1000ms.

MozReview-Commit-ID: FldqRXj0HLo
2017-05-01 00:36:06 +08:00
Greg Mierzwinski 5d46e96825 Bug 1360667 - Change location of coverage collection in xpcshell. r=jmaher
MozReview-Commit-ID: EsA8hTKd15Y

--HG--
extra : rebase_source : 4f2e5bd8b2ecb6dee6b2b85f9687b62feb6c9531
2017-04-28 15:20:37 -04:00
Sebastian Hengst 42fd33ff9c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ELENTh08Be7
2017-04-29 11:10:31 +02:00
Joel Maher cd365fb366 Bug 1359361 - new bloom test on osx is generating too many alerts. r=rwood
MozReview-Commit-ID: IAIGXaZFqMb
2017-04-28 17:04:02 -04:00
Henrik Skupin ea0737e52e Bug 1360466 - Only handle hashchange event for the current window. r=ato
Similar to the other unload and load events during a page load,
the hashchange event should only be handled if the event's target
document is the current window.

MozReview-Commit-ID: F1LMBh5Cy4A

--HG--
extra : rebase_source : 668fd6946067989e7e732b24baf6de2e85541f21
2017-04-28 14:16:59 +02:00
Henrik Skupin 5b9b18e398 Bug 1360466 - Use target instead of originalTarget in handleEvent. r=ato
originalTarget seems to be outdated and not used anymore for each
navigation related event. But target is, and as such handleEvent
has to make use of that instead.

MozReview-Commit-ID: AN2H1PbCt7A

--HG--
extra : rebase_source : fbead2b5b802454f0e288fb9696db5d422e46b50
2017-04-28 17:36:42 +02:00
Gregory Szorc 4f5e255e5c Bug 1304508 - Remove final references to pymake in mozharness; r=ted
We shouldn't be running pymake any more. So code to work around its
behavior is no longer necessary and can be removed. Good riddance.

MozReview-Commit-ID: AlV6ZLiA6WB

--HG--
extra : rebase_source : 56252a8d96f108fd24878e7a26f0d4ffe4a0db45
2017-04-26 13:41:00 -07:00
Gregory Szorc 2a5be2b0d9 Bug 1304508 - Remove references to pymake in mozharness configs; r=ted
Now that mozharness is calling `mach build` to invoke the "check" target,
there are no more consumers of the "enable_pymake" config option. So we
remove it from the configs.

We also remove definitions of the "make" executable referring to pymake.
The only call sites I could find for "query_exe('make')" are in
testing/mozharness/scripts/mobile_l10n.py. So most of these definitions of
the "make" executable appear to be a cargo cult or left over from a
previous rewrite (the code we just changed to stop calling "make" wasn't
using query_exe). Since mobile_l10n.py is still using query_exe() to find
the make executable, there's a chance switching away from pymake (if this
patch even does that - I don't think we touched a config file related to
that script) could break something. I'm fine with teasing out that bug.

MozReview-Commit-ID: 7HR6ShAKcoV

--HG--
extra : rebase_source : 07c6a6f7aaab6d7fceeab46b6ca2744c964148dd
2017-04-26 13:31:40 -07:00
Gregory Szorc 47737eb684 Bug 1304508 - Use mach for running "check" target; r=ted
We switch mozharness to use `mach build` to invoke the "check" make
target instead of using `make` itself. Because `mach` is the interface
that everyone should use and `make` is an implementation detail.

My editor also snuck in a change to normalize a CRLF line ending.

MozReview-Commit-ID: 4gdE6oeK0Lz

--HG--
extra : rebase_source : 0bfd6503a25f6b4304b596bd59ef99294c011474
2017-04-24 18:24:48 -07:00
Aryeh Gregor 527fb3fff5 Bug 1358104 - Only throw InvalidCharacterError for bad XML id's, not NamespaceError r=baku
Discussion at <https://github.com/whatwg/dom/issues/319>.  In short, the
specification used to say to throw sometimes InvalidCharacterError and
sometimes NamespaceError, but browsers disagreed on which to throw in
corner cases, and everyone agreed it wasn't worth the effort to spec the
distinction, so we just changed it to InvalidCharacterError across the
board.

The test changes are already upstream.

MozReview-Commit-ID: AWSZBznQprG

--HG--
extra : rebase_source : 2f0051f48124380f17300a38ceb8c2ab23015ca1
2017-04-20 17:37:07 +03:00
Ben Hearsum 83ab509084 bug 1358601: set up CI builds and tests for DevEdition on mozilla-beta - add linux devedition builds r=aki,kmoir
MozReview-Commit-ID: 9mghIaHomfs

--HG--
extra : rebase_source : 5cadc16cf4b02b93eb1ae9ab14a87435c246b45c
2017-04-27 10:35:36 -04:00
Wes Kocher febd210bd9 Merge m-c to inbound, a=merge
MozReview-Commit-ID: Lm5sPLbtrs
2017-05-03 13:54:34 -07:00
Ben Kelly d9b204c062 Bug 1361754 Don't propagate Navigator object on document.open() any more. r=mrbkap 2017-05-03 13:25:05 -07:00
Carsten "Tomcat" Book 1045b9730a merge mozilla-inbound to mozilla-central a=merge 2017-04-28 10:36:11 +02:00
Shing Lyu 16402be633 Bug 1351548 - Switch from reftest-stylo.list to reftest.list on linux64-stylo. r=bholley
MozReview-Commit-ID: As1Bvg8qFKb
2017-04-28 11:15:54 +08:00
Sebastian Hengst 0936d33fb8 Backed out changeset 88c2a0b2dde5 (bug 1319111) for crashing Talos. r=backout 2017-04-28 00:16:39 +02:00
Wes Kocher 9528ad9a03 Merge m-c to inbound, a=merge
MozReview-Commit-ID: DaH1djmEY5A
2017-04-27 13:29:07 -07:00
Wes Kocher 2aa72d4cdc Merge inbound to central, a=merge
MozReview-Commit-ID: HZUHBRK4UmL
2017-04-27 13:00:07 -07:00
Dragana Damjanovic 9a3cfa6017 Bug 1334776 - Store header names into nsHttpHeaderArray. r=mcmanus 2017-04-27 16:48:36 +02:00
Andreas Tolfsen 8f9f92f1cb Bug 1359079 - Take <select multiple> into account for obscured click test; r=whimboo
Because individual <option> elements are painted and represented in the
DOM when they belong to a <select multiple> list, the center point of
the list might be one of the options.

To take this into account, we perform an inclusive descendant check
(DOMElement.contains) to see if the <option> element is a descendant of
the container <select> element.

In the case the targetted element is the element itself, the test will
still pass since it is an _inclusive_ descendant check.  In other words,
containerEl.contains(tree[0]), if tree[0] is equal to containerEl,
will pass.

The relevant specification changes were made in
40abcefd6a.

MozReview-Commit-ID: ORX8zLxQJ

--HG--
extra : rebase_source : 87ca38df6696257d569ef1ffcb888426d1f569af
2017-04-17 17:24:19 +01:00
Gregory Szorc dacde5024f Bug 1359988 - Remove retrieve_b2g_device(); r=mshal
There appear to be no in-tree users of this function and it references
"b2g." I'm pretty sure it is dead code.

MozReview-Commit-ID: EHHRQ2iqQoP

--HG--
extra : rebase_source : ec136063dc5e4243232fce5289a8f47bd925b481
2017-04-26 13:59:36 -07:00
Gregory Szorc 7fc879b5fc Bug 1359988 - Remove spidermonkey b2g build script; r=mshal
We shouldn't be running any Firefox OS automation.

MozReview-Commit-ID: 4ea9SL7jill

--HG--
extra : rebase_source : 6d5c457d14d9d2b2b4abda47a2b3bfa1fa745d36
2017-04-26 13:51:01 -07:00
Gregory Szorc 5bf4c7477a Bug 1359988 - Remove mozharness configs for multi locale b2g builds; r=mshal
We shouldn't be running any automation related to Firefox OS. We should
be able to delete these files.

MozReview-Commit-ID: SY5f0GD9NQ

--HG--
extra : rebase_source : 3b7b5b28bc5da554ad9082c1c3115b3ab8de2e0a
2017-04-26 13:50:02 -07:00
Gregory Szorc 48c3f90e39 Bug 1359988 - Remove references to gaia in mozharness; r=mshal
These were the last occurrences of "gaia" in the mozharness directory.

MozReview-Commit-ID: 8ACEw1rMoUS

--HG--
extra : rebase_source : b5d98c9166d75a83f5303ee0faa34484b6f998d3
2017-04-26 13:56:52 -07:00
Gregory Szorc 07ab7036b5 Bug 1359988 - Remove mozharness docs related to gaia; r=mshal
The code is gone. Remove the legacy docs.

MozReview-Commit-ID: 9oIC00swoml

--HG--
extra : rebase_source : a98bb87426246957d0b28bb519301025d397b58b
2017-04-26 13:55:10 -07:00
Gregory Szorc a873e406bd Bug 1359988 - Remove gaia scripts and configs from mozharness; r=mshal
Firefox OS is dead.

MozReview-Commit-ID: CWX04cHHT7u

--HG--
extra : rebase_source : b455f916a4b673aad265d57560cf5e272a1740ca
2017-04-26 13:54:09 -07:00
Wes Kocher a463bb4c4c Merge m-c to autoland, a=merge
MozReview-Commit-ID: 6CUQEJghjzU
2017-04-27 13:37:47 -07:00
Jeremy Chen 97e8b7fffc Bug 1354437 - enable border-spacing interpolation test. r=hiro
So far, we don't have a type to test anamations of a pair of length.
Since border-spacing consists two absolute lengths, we shall add this
new type.

MozReview-Commit-ID: Bo8VMWPLDHc

--HG--
extra : rebase_source : 26439e622fac5806465e971b84a111c9e01ffe1e
2017-04-27 17:26:31 +08:00
Andreas Tolfsen 632deccd67 Bug 1357878 - Maximize window synchronously and restore when maximized; r=maja_zf
When refactoring the tests for the Set Window Rect command, it was
discovered that the Maximize Window command was not synchronous.

This patch makes GeckoDriver#maximizeWindow synchronous by waiting for
the DOM resize event to fire before returning the window rect to the user.

It also aligns the command with the WebDriver standard by making it
restore the window to its original size when calling the command a
second time.

MozReview-Commit-ID: Ft3tn2A4m7u

--HG--
extra : rebase_source : 52b523e53dd19cc8bdc4631382c96db5906f333a
2017-04-20 17:04:58 +01:00
Andreas Tolfsen 5bd3bf699c Bug 1357878 - Prevent hang on setting window size to existing size; r=maja_zf
When the window's size is being set to the window's existing size,
Marionette unconditionally listens for the DOM resize event.  When a
window is not resized, no such event fires.

This patch skips setting the window size when the window's current size
is the requested size.  This bypasses the problem of listening for an
event that never occurs.

It also combines the window position- and size tests into a
test_window_rect.py test, since they share many of the same
characteristics.

Fixes: https://github.com/mozilla/geckodriver/issues/643
MozReview-Commit-ID: IUtCFXwT1fh

--HG--
extra : rebase_source : 43c4d0e24cf1e0dc6102af48b8fe6f075b6dd4a2
2017-04-19 21:19:36 +01:00
Carsten "Tomcat" Book e1e203f1f5 Merge mozilla-central to autoland 2017-04-27 16:36:41 +02:00
Andreas Tolfsen 3752f5aaf4 Bug 1359043 - Remove incorrect click/scroll test r=whimboo
The test assumes the click point is the centre of the element, whereas
WebDriver uses the _in-view_ centre point to perform clicks.

If parts of the element is rendered outside the viewport, the click
point is calculated from visible portion of the element that is seen in
the viewport.

This means that if any portion of an element is within the boundaries of
the viewport, it is clickable.  If it is not, then it is not interactable.

This change is unfortunately not accompanied with any
implementation changes, but prepares Marionette for the changes
to the Element Click implementation that will come as part of
https://bugzilla.mozilla.org/show_bug.cgi?id=1321516.

MozReview-Commit-ID: Kh0zzRrtmJ4

--HG--
extra : rebase_source : 63cc463a11d5ca085e7a96ea84dcadbe3bb90204
2017-04-17 18:39:12 +01:00
Henrik Skupin d92bf63b99 Bug 1357407 - Enable logger output for framescript when remoteness is enabled. r=ato
With remoteness enabled content framescripts don't seem to inherit the
appenders for loggers, which have been set by the main script. To get
the output written to stdout they have to add their own appender. To
prevent duplicated output after framescripts get reloaded, the addition
of the appender should only happen once.

MozReview-Commit-ID: A5TMQvQu0Iy

--HG--
extra : rebase_source : 9a9ecdb8aec8d7b310b916407edbac77b8ec88c9
2017-04-27 12:09:10 +02:00
Alexandre Poirot c90bccb53a Bug 1356231 - Use toolkit EventEmitter.jsm instead of devtools module. r=mossop
MozReview-Commit-ID: 49JI7NtLwKK

--HG--
extra : rebase_source : 7fb015f56be94c4bbe2d56506653f069c9ad8dd3
2017-04-27 17:58:09 +02:00
Henrik Skupin 247b5f9899 Bug 1335778 - Make element click command check for page load and wait. r=ato
If the click command triggered a page load, it should not return before
the page has been fully loaded. With this patch we allow an opt-in for
commands to make use of an unload check. It's set to 200ms right now, and
will cancel an ongoing waitForPageLoad() if no page activity is detected.

MozReview-Commit-ID: DWV53sckBS2

--HG--
extra : rebase_source : 1b7905c101b7ebf406e88c73be5d0e069b7342c0
2017-04-20 12:12:27 +02:00
Henrik Skupin fc3604eaf5 Bug 1335778 - Harden test_page_timeout_fail against intermittent failures. r=ato
Tests for page timeout durations have to use an HTTPD handler that delays
or slows down document load. Otherwise there a risk that the timeout error
is not returned before the document finishes loading.

MozReview-Commit-ID: HGGcXfCuaSH

--HG--
extra : rebase_source : c79b01ca4e56e21877c6fe94309b7b0424d9b552
2017-04-13 14:57:25 +02:00
Henrik Skupin 7ec2768336 Bug 1335778 - Synchronize navigate() for trigger methods using generators. r=ato
In the case when the trigger callback inside navigate() uses a generator,
the code has to be synchronized and needs to wait until the contained
command has been completed.

MozReview-Commit-ID: 8qKUMvH7HpS

--HG--
extra : rebase_source : 19a87058d62088701914ab2a468ddffaecec1fe2
2017-04-07 21:44:32 +02:00
Henrik Skupin fd0dae0214 Bug 1335778 - Make switchToFrame synchronous for in-process frames. r=ato
In the case of switching to an in-process frame, the checkLoad timer
is setup which waits for the frame's content to finish loading.

But the command doesn't actually wait for those events and calls
sendResponse() immediately. This causes a race condition for the
following commands.

MozReview-Commit-ID: 6vuQ7paQ55K

--HG--
extra : rebase_source : ceb590f435d84ead4eba2e718e1ebaa01900d33f
2017-04-25 11:29:02 +02:00
Chris Pearce ce7bb69227 Bug 1358373 - Handle underestimating how many shmems the CDM needs to return decoded video frames to Gecko. r=gerald
The CDM process can't allocate shmems itself because it's sandboxed, so we
pre-allocate shmems in the content process and send them to the GMP process for
the CDM to use. Some sites seem to have encoded their content in such a way as
to cause the CDM to allocate and hang onto more frames than we pre-allocate; so
we run out of shmems in the GMP process, and the CDM can't allocate further
buffers to return output, and we fail.

So change the ChromiumCDMChild to allocate non-shmem-backed buffers if it runs
out of shmems, and return the result to the content process as an nsTArray.
Upon receiving that, the parent will send an extra shmem to the child, to
hopefully avoid the slow path again.

Also increase media.eme.chromium-api.video-shmems to 4, so that we're less
likely to hit this slow path in the wild. I've seen that Lightbox.co.nz and
Microsoft's EME test-drive require 4 shmems.

MozReview-Commit-ID: ISQYDkTj5uY

--HG--
extra : rebase_source : 92870f1adc7ae68e58b15443e4223012bdf0e39a
2017-04-26 15:46:09 +12:00
Iris Hsiao c43c229375 Backed out changeset 0b8bf5cb743f (bug 1358373) for build bustage. a=backout
CLOSED TREE

--HG--
extra : amend_source : f6fd0c93b8b1ff9cc111cc4bc7776dd8e2a383d0
2017-04-27 10:10:47 +08:00
Chris Pearce ecfe3c34c4 Bug 1358373 - Handle underestimating how many shmems the CDM needs to return decoded video frames to Gecko. r=gerald
The CDM process can't allocate shmems itself because it's sandboxed, so we
pre-allocate shmems in the content process and send them to the GMP process for
the CDM to use. Some sites seem to have encoded their content in such a way as
to cause the CDM to allocate and hang onto more frames than we pre-allocate; so
we run out of shmems in the GMP process, and the CDM can't allocate further
buffers to return output, and we fail.

So change the ChromiumCDMChild to allocate non-shmem-backed buffers if it runs
out of shmems, and return the result to the content process as an nsTArray.
Upon receiving that, the parent will send an extra shmem to the child, to
hopefully avoid the slow path again.

Also increase media.eme.chromium-api.video-shmems to 4, so that we're less
likely to hit this slow path in the wild. I've seen that Lightbox.co.nz and
Microsoft's EME test-drive require 4 shmems.

MozReview-Commit-ID: ISQYDkTj5uY

--HG--
extra : rebase_source : 4beba0212411a0f5867feb506bbf732f5a934fa9
2017-04-26 15:46:09 +12:00
Jared Wein 7dbb0e91c3 Bug 1347413 - Remove the unused browser-fullZoom:zoomReset and browser-fullZoom:zoomChange notifications. r=dao,mccr8
MozReview-Commit-ID: GeqfVngo9QT
2017-03-15 11:26:57 -04:00
Wes Kocher 226702fd85 Merge m-c to autoland a=merge
MozReview-Commit-ID: LOGgOErcV9L
2017-04-26 17:43:38 -07:00
Wes Kocher c90904f9bf Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: 9HQViJrDT6S
2017-04-26 17:30:31 -07:00
Mantaroh Yoshinaga cb2cd69269 Bug 1356162 - Enable web-platform-tests of clip property animation. r=hiro
MozReview-Commit-ID: 7HRcmV7CWAN

--HG--
extra : rebase_source : 64b658ca3397a7a270c242f277a4813e01f5cbb9
2017-04-26 16:24:30 +09:00
Andrea Marchesini 8beb8af7d4 Bug 1357846 - Introducing nsIFilePicker.displaySpecialDirectory, r=smaug
nsIFilePicker.displaySpecialDirectory is a string that can be set to TmpD,
Desk, or any other special directory value. The real value of this directory
will be read in the parent process.
2017-04-26 18:20:19 +02:00
Joel Maher 5841b2f70e Bug 1358098 - Increase regression threshold for sccache alerts. r=rwood,ted
MozReview-Commit-ID: 8L8iSoBqrCu
2017-04-26 11:01:25 -04:00
Sebastian Hengst 88c73138b1 Backed out changeset 4d8dfee7ebf3 (bug 1351548) 2017-04-26 13:12:59 +02:00
Shing Lyu 0673a3e783 Bug 1351548 - Switch from reftest-stylo.list to reftest.list on linux64-stylo. r=bholley
MozReview-Commit-ID: 3GHNhi3gdg9
2017-04-26 18:21:48 +08:00
Phil Ringnalda be9487beea Backed out changeset f7656a18ff7e (bug 1358674) for gfx assertion failures about Texture deallocated too late during shutdown in browser-chrome
CLOSED TREE

MozReview-Commit-ID: 5KqpbH2oM0V
2017-04-25 20:30:23 -07:00
Mike Conley 365f4e988a Bug 1352501 - Remove Reader Mode promotion panel. r=jaws,MattN
Note that the UITour library can still show a panel in the event that we want to
promote the feature that way.

MozReview-Commit-ID: FzKSzO987h7

--HG--
extra : rebase_source : 8c129106478559f011a3a4e311331851939ab408
2017-04-19 16:42:10 -04:00
Emilio Cobos Álvarez ea71d98f7b Bug 1355351: Tests for correct resolution of style for pseudo-elements. r=heycam
MozReview-Commit-ID: BFvXhYCK46v

--HG--
extra : rebase_source : b66f5de7a7a25f81e746155eb2192863315c562b
2017-04-16 23:29:46 +02:00
Andreas Tolfsen 0c61ad5319 Bug 1359050 - Test element in view with pointer events enabled; r=maja_zf
This change makes it possible to click elements that has its
pointer-events style property set to "none".

If an element has its style property pointer-events set to "none",
the element in view test will fail due to document.elementsFromPoint
excluding it due to non-interactability.  This is only a problem when
checking if the element is inside the viewport, and not when actually
performing interaction with the element.

The relevant specification change is
ba6ee925b5.

MozReview-Commit-ID: JwZB6fm7P9A

--HG--
extra : rebase_source : 18ddf7955c7e0bc6d1d7f798aebc6e09799a99ca
2017-04-17 19:34:44 +01:00
Blake Kaplan 63fed782c8 Bug 1358674 - Automatically release cached processes when processCount is lowered. r=krizsa
This makes sure that tests that either specifically want to test fewer content
processes *or* tests that don't work with multiple content processes will get
what they ask for when they run.

MozReview-Commit-ID: 6FI8BmB98Zi

--HG--
extra : rebase_source : 52fbf155fb3d1ae2a9805968aa96761bc27ed0ed
2017-04-21 16:54:45 -07:00
Gregory Szorc 60eae39780 Bug 1357344 - Guard against division by 0 when reporting CPU usage; r=mshal
In cases where CPU usage couldn't be recorded, we may incur a division
by 0 exception.

While we should figure out why we're not collecting CPU data, this patch
papers over the uncaught exception which was causing mozharness to bail.

MozReview-Commit-ID: 3PrIl6cEzuf

--HG--
extra : rebase_source : ece317b73af6a5b47ccad30981963457e6c6b9a8
2017-04-24 15:20:09 -07:00
Chris Manchester 96f55718c4 Bug 1357562 - Prevent windows clang builds from being replaced by an artifact build. r=nalexander
These builds do not have a distinct variant and they do not have an artifact
build equivalent, so specify this in their respective mozharness configs.

MozReview-Commit-ID: CHMglUoP8LR

--HG--
extra : rebase_source : a82323616c8266a6e7d4d82fde0da441da3cc3f3
2017-04-25 16:18:43 -07:00
Chris Manchester 5dca661175 Bug 1357562 - Remove 'artifact_build_variant_in_try': None entries where no longer necessary. r=nalexander
The previous commit changed our default behavior to make these entries no longer
necessary.

MozReview-Commit-ID: 5bKEH7zbbWi

--HG--
extra : rebase_source : 431d7f6df1136a20ed5796c23832879c5be99790
2017-04-25 16:17:44 -07:00
Chris Manchester 1871ce657b Bug 1357562 - Specify artifact build replacement via mozharness for non-variant builds. r=nalexander
No builds other than vanilla opt and debug builds are supported by the artifact
code currently, so prevent variant builds from being replaced by artifact builds
by modifying mozharness' replacement logic to replace a build with an artifact
build only when it is a regular opt or debug build or when specified by a
config.

MozReview-Commit-ID: KUUgrbga53l

--HG--
extra : rebase_source : d3c6e3929bf02893ec18f54b0a8739181067e22b
2017-04-25 15:54:24 -07:00
Andrew McCreight 43d4185c57 Bug 1355834 - Report LLVM symbolizer OOMs as errors. r=jgraham
This will make it easier to correctly star these failures, which
otherwise simply show up as a false positive leak.

MozReview-Commit-ID: 5P6AMRyYmtI

--HG--
extra : rebase_source : 6e63bffb6cdcb389d6533acbc44c2a206009a99e
2017-04-12 11:01:24 -07:00
Aryeh Gregor 1d730f1c5d Bug 1359371 - Update Selection.webidl to match spec r=smaug
Practical changes:

1) Some additional method arguments are nullable or optional, which
matches Chrome/WebKit.  They make more sense non-nullable and
non-optional, but Chrome is afraid of the compat impact of changing.

2) Added [CEReactions] to deleteFromDocument().

MozReview-Commit-ID: Kg9EDubnEui

--HG--
extra : rebase_source : 1d47ee0b12b0b719159c326f789dd6e6b6000c8e
2017-04-25 14:55:31 +03:00
Andreas Tolfsen 9d9b0dba43 Bug 1359004 - Add preliminary support for unexpected alerts r=whimboo
Add preliminary support for returning unexpected alert open errors when
calling commands that require it according to the WebDriver standard.

Also fixes a faulty test that seems to believe it is fine to click an
element whilst an alert is present.

Further work needs to be done on user prompts, asserts, and the handler
for user prompts in https://bugzilla.mozilla.org/show_bug.cgi?id=1264259.

MozReview-Commit-ID: BiWURoQECji

--HG--
extra : rebase_source : caa1506a0e972c7ad0da2d31993fb0b8ecc1ee17
2017-04-20 18:00:46 +01:00
Andreas Tolfsen 72f6c01b53 Bug 1359059 - Skip visibility checks when clicking in XUL; r=whimboo
This patch removes the call to element.isVisible when clicking XUL
elements because it does not do anything useful.  element.isVisible skips
the Selenium atom.isElementDisplayed check for XUL elements and runs a
few web content/viewport centric tests that always pass in XUL.

It also splits the chrome click out to a separate function to avoid a
few if-conditions.

MozReview-Commit-ID: EkcwT77ku3C

--HG--
extra : rebase_source : ee5e8148934ec008cda996610c20a826f86412af
2017-04-24 15:01:41 +01:00
Andreas Tolfsen 754d617ec8 Bug 1359053 - Reject interaction.flushEventLoop if window is discarded; r=maja_zf
The window reference may have been discarded as a result of interaction.
For example, this may happen when clicking a button that deletes the
host <iframe> element containing the child window.  In this case, the
WindowProxy will set its closed property to true, to indicate that the
browsing context has been discarded.

We only want to flush the event loop of windows that exist, and so we
return early from interaction.flushEventLoop if the window has been
closed.

MozReview-Commit-ID: LtTHQRudKvk

--HG--
extra : rebase_source : e4133ddeed9e89e38fba6e9b8f17544a3546f7eb
2017-04-17 18:42:18 +01:00
Andreas Tolfsen e14f20eea7 Bug 1359054 - Take shadow DOM into account when getting paint tree; r=maja_zf
We want to take shadow DOM into account when getting an element's
pointer-interactable paint tree.

Marionette is currently unable to determine if an element inside a shadow
DOM host is disconnected from the document because we are constructing
the frame container with only the main document.

MozReview-Commit-ID: IPDi8fQZYRP

--HG--
extra : rebase_source : 8c6757a032342aa6bbe50ef15025a37ac09ae413
2017-04-17 17:51:13 +01:00
Andreas Tolfsen a01b7b7f4e Bug 1353074 - Use mutable sandboxes for selection API; r=maja_zf
Injected script in the Marionette caret selection API used the "default"
immutable sandbox, but we want to run them in the mutable sandbox.

MozReview-Commit-ID: BpbHdDhDtg4

--HG--
extra : rebase_source : 2b710ca483f1732d91527820006da5da331b5df3
2017-04-17 14:47:28 +01:00
Andreas Tolfsen 3535278dba Bug 1353074 - Components ctor test should not throw; r=maja_zf
Testing the return value is misleading in this case.  What we want to
test is that it does not throw due to a permissions issue.

MozReview-Commit-ID: 2Wbwou9opyF

--HG--
extra : rebase_source : 2731ddce0efcd705880a70d69ee934571a766b9a
2017-04-03 19:20:19 +01:00
Andreas Tolfsen c0a09ea48c Bug 1353074 - Run wrappedJSObject execute script tests in all sandboxes; r=maja_zf
MozReview-Commit-ID: 5u2u5alGb7Z

--HG--
extra : rebase_source : 1c4ea16db0fb7bcd5475ac93442921917aa0738b
2017-04-03 19:19:05 +01:00
Andreas Tolfsen d9784cf772 Bug 1353074 - Run Components permission test in all sandboxes; r=maja_zf
The Components.classes constructor should throw an error in both the
mutable and the "default" sandbox.

MozReview-Commit-ID: C40nZNaVWwz

--HG--
extra : rebase_source : 81ecde684967241de5fed8f61dd1c0d69d077cfb
2017-04-03 19:18:25 +01:00
Andreas Tolfsen e8db02d195 Bug 1353074 - Run globals execute script tests in all sandboxes; r=maja_zf
We accidentally only ran them in "default" and "system" before, and also
one of the arguments in the system globals test was wrong.

MozReview-Commit-ID: DmBYGsZaIVP

--HG--
extra : rebase_source : 25f72fca677a44079d727e5ff3fa147e3e28eb6e
2017-04-03 19:17:24 +01:00
Andreas Tolfsen 1f633b4770 Bug 1353074 - Test arguments in all sandboxes; r=maja_zf
We were previously missing a test for the arguments variable that is
implicitly exposed to functions.

MozReview-Commit-ID: IC6aJcUsyhd

--HG--
extra : rebase_source : 7aeb986bb4c299ef5996f7b2847e6cc2d878459f
2017-04-03 19:15:13 +01:00
Andreas Tolfsen cb1c619b93 Bug 1353074 - Use tuples for script arguments; r=maja_zf
The Python standard library uses tuples to define arguments for functions,
whenever they are invoked through meta programming.

The Marionette client only allows the list type for backwards
compatibility, so we prefer tuples in this case.

Another good argument for tuples is that tuples are immutable.

MozReview-Commit-ID: 72zPzYvBz7Q

--HG--
extra : rebase_source : 79315dd809e00c4c805bd0de3244b519e3ff286f
2017-04-03 19:14:16 +01:00
Andreas Tolfsen 42acd45542 Bug 1353074 - Make unload event safe for introspection from content; r=maja_zf
Marionette does not protect the unloadHandler in
testing/marionette/evaluate.js from content introspection or
modification, which can happen when web frameworks override
window.addEventListener/window.removeEventListener.

The script evaluation module used in Marionette relies on
sandbox.window.addEventListener/removeEventListener to throw an error when
script execution is aborted due to the document unloading itself.  If the
window.addEventListener/removeEventListener functions have been overridden
to introspect the objects that are passed, they may inadvertently touch
objects originating from chrome space, such as the unloadHandler.

Because the Gecko sandboxing system put in place strict security measures
to prevent accidental chrome-space modification from content, inspecting
the unloadHandler will throw a permission denied error once the script
has finished executing.

We have found examples in the wild of this in particular with the Angular
web framework.  This patch makes the unloadHandler safe for introspection
from web content.

Fixes: https://github.com/mozilla/geckodriver/issues/515
MozReview-Commit-ID: E2LgPhLLuDT

--HG--
extra : rebase_source : 9948585b4ac2f464a9f31868bfd2d5967e61755e
2017-04-03 18:36:43 +01:00
Alexandre Poirot eda858a388 Bug 1356237 - Ship a copy of transport module in marionette. r=ato
DevTools is about to move out of mozilla-central and be released as an add-on.
So that these protocol files are going to be missing from the tree.
To accommodate that, we are doing a copy of them next to marionette.

MozReview-Commit-ID: 9PyhuwyZyXI

--HG--
extra : rebase_source : b6d96ae5e4c4ac837713e396ab72163b168871f2
2017-04-24 20:23:04 +02:00
Aryeh Gregor af57d2df0f Bug 1251198 - Remove various obsolete events from document.createEvent r=smaug
Other browsers do not support any of these (IIRC), telemetry reports
essentially zero usage, and supporting them is contrary to the DOM spec.

Notes on specific events:

CommandEvent and SimpleGestureEvent: These are not supposed to be
web-exposed APIs, so I hid the interfaces from web content too
(necessary to avoid test_all_synthetic_events.html failures).

DataContainerEvent: This was a non-standard substitute for CustomEvent
that seemed to have only one user, so I removed it entirely and switched
the user (MozillaFileLogger.js) to CustomEvent.

ScrollAreaEvent: This is entirely non-standard, but we apparently expose
it deliberately to web content, so I didn't see any reason to remove it
from createEvent.

SimpleGestureEvent and XULCommandEvent: Can still be created from
createEvent(), but not by content.

TimeEvent: This is still in because it has no constructor, so there's no
other way to create it.  Ideally we'd update the SMIL spec to add a
constructor.  I did remove TimeEvents.

MozReview-Commit-ID: 7Yi2oCl9SM2

--HG--
extra : rebase_source : 199ab921acfc531b8b85e77f90fcd799b03c887b
2017-04-20 15:45:37 +03:00
Aryeh Gregor aec49bff0f Bug 1359453 - Use standard exception for selection.removeRange() r=masayuki
The test change is already upstream:
https://github.com/w3c/web-platform-tests/pull/5686

The spec change has not officially been accepted yet as of this writing,
possibly delayed for IPR review:
https://github.com/w3c/selection-api/pull/87

MozReview-Commit-ID: 3auwvwP4X72

--HG--
extra : rebase_source : 0396cd7c454b234598d77427bc20c6ea0645dc2e
2017-04-26 15:50:36 +03:00
Aryeh Gregor 5bc9092ee8 Bug 1359780 - Always remove duplicates/whitespace in DOMTokenList methods r=masayuki
Previously, replace() and toggle() would not always remove duplicates
and whitespace from the DOM attribute in the case where they were no-ops
(replacing a nonexistent token, force-toggling a token to its current
state).  Now they do.  This matches the behavior of add() and remove(),
and also replace() in one case (replacing an existing token with
itself).

This follows a spec change: https://github.com/whatwg/dom/pull/444

MozReview-Commit-ID: 7lDEQxOGxPV

--HG--
extra : rebase_source : 842ff24c46681649affcedcba2623128fc6f5a7b
2017-04-26 15:13:44 +03:00
Sebastian Hengst 3a9a395200 Backed out changeset 4a9cc95b8a9f (bug 1335778) for failing firefox-ui-functional-local's test_notifications.py TestNotifications.test_addon_install_failed_notification. r=backout 2017-04-26 14:13:09 +02:00
Sebastian Hengst 58e94402a0 Backed out changeset 5589cde521f8 (bug 1335778) 2017-04-26 14:12:21 +02:00
Sebastian Hengst daa08aca84 Backed out changeset 0e6dee0ccecf (bug 1335778) 2017-04-26 14:12:17 +02:00
Sebastian Hengst 2bb5df4de7 Backed out changeset e084deb550c2 (bug 1335778) 2017-04-26 14:12:13 +02:00
Aryeh Gregor 99eb2c1bc7 Bug 1359387 - Support Selection.empty()/setPosition() r=masayuki,smaug
Blink, WebKit, and Edge already support these, and they're in the spec.
Tests submitted to wpt upstream.

MozReview-Commit-ID: 5NFBeClNN7y

--HG--
extra : rebase_source : ea073639904e1ae9449990827ad32626aa6267d9
2017-04-25 15:49:27 +03:00
Henrik Skupin d9653a7941 Bug 1335778 - Make element click command check for page load and wait. r=ato
If the click command triggered a page load, it should not return before
the page has been fully loaded. With this patch we allow an opt-in for
commands to make use of an unload check. It's set to 200ms right now, and
will cancel an ongoing waitForPageLoad() if no page activity is detected.

MozReview-Commit-ID: DWV53sckBS2

--HG--
extra : rebase_source : 455e252e85c14b4ca841f02794bf0d33133ef10a
2017-04-20 12:12:27 +02:00
Henrik Skupin 0c281b238c Bug 1335778 - Harden test_page_timeout_fail against intermittent failures. r=ato
Tests for page timeout durations have to use an HTTPD handler that delays
or slows down document load. Otherwise there a risk that the timeout error
is not returned before the document finishes loading.

MozReview-Commit-ID: HGGcXfCuaSH

--HG--
extra : rebase_source : c79b01ca4e56e21877c6fe94309b7b0424d9b552
2017-04-13 14:57:25 +02:00
Henrik Skupin 2a85a061ba Bug 1335778 - Synchronize navigate() for trigger methods using generators. r=ato
In the case when the trigger callback inside navigate() uses a generator,
the code has to be synchronized and needs to wait until the contained
command has been completed.

MozReview-Commit-ID: 8qKUMvH7HpS

--HG--
extra : rebase_source : 19a87058d62088701914ab2a468ddffaecec1fe2
2017-04-07 21:44:32 +02:00
Henrik Skupin e1a0e9491a Bug 1335778 - Make switchToFrame synchronous for in-process frames. r=ato
In the case of switching to an in-process frame, the checkLoad timer
is setup which waits for the frame's content to finish loading.

But the command doesn't actually wait for those events and calls
sendResponse() immediately. This causes a race condition for the
following commands.

MozReview-Commit-ID: 6vuQ7paQ55K

--HG--
extra : rebase_source : ceb590f435d84ead4eba2e718e1ebaa01900d33f
2017-04-25 11:29:02 +02:00
Xidorn Quan 658ec0d2cc Bug 1340434 part 2 - Request complete log and mark suppressed unexpecteds. r=jmaher
MozReview-Commit-ID: FFP7UfmJ1xs

--HG--
extra : rebase_source : e3c5ee954c3a64359fc4423b8644ee718f463555
2017-02-17 23:45:13 +11:00
Xidorn Quan 7a6a7134b7 Bug 1340434 part 1 - Increase the max log size for linux unittest. r=jmaher
MozReview-Commit-ID: 8XDgwx9pmwy

--HG--
extra : rebase_source : 65831b25b4e700b96c920f9cc1f3c93a4ef10e38
2017-04-28 17:30:09 +08:00
Carsten "Tomcat" Book 99ad79fa44 Merge mozilla-central to autoland 2017-04-28 10:46:26 +02:00
Henrik Skupin 8be6debc7e Bug 1357634 - Temporarily skip test_click_number_link and test_clicking_on_a_multiline_link for intermittent failures. r=Tomcat
MozReview-Commit-ID: 3mhV5Sf4Lvj

--HG--
extra : rebase_source : 7cd187678735edcf3facbd88ac66d8370ee32479
2017-04-28 09:00:08 +02:00
Cameron McCormack 5bd602ecc8 Bug 1361303 - Part 1: Add test for serialization of CSS Custom Property names. r=xidorn
MozReview-Commit-ID: E1nwZzB8hRK

--HG--
extra : rebase_source : c85ed63b9a9225cd65c1dd94206229513ed149b4
2017-05-02 15:03:53 +08:00
Iris Hsiao 1401934d7b merge mozilla-inbound to mozilla-central a=merge 2017-05-02 11:04:36 +08:00
Honza Bambas 0504ed64c3 Bug 1319111 - Exposing URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Olli Pettay edb4c7f19f Backout bug 1359780 because it causes bug 1360230, r=backout
--HG--
extra : rebase_source : 019b76e46c55697d54b50677b704f2af44e3a786
2017-04-27 20:50:21 +03:00
Blake Kaplan 7829881e9e Bug 1345990 - Allow creation of new tabs in their own processes. r=mconley
This uses XPCOM to replace the default process selector with one that always
asks for a new process and then put the old one back again. This comes with a
test to prove that it works.

MozReview-Commit-ID: Bq6KP4VzP7W

--HG--
extra : rebase_source : 1ea86df2e2443be38cfae4e5f8c1336bf742157c
2017-04-26 17:52:20 -07:00
Blake Kaplan a7595ea509 Bug 1345990 - Switch to an options object for BTU.openNewForegroundTab. r=mconley
MozReview-Commit-ID: HkFXpiWICge

--HG--
extra : rebase_source : f7739afebaa74976b4ce5100bde29cbcd33c9526
2017-04-26 17:08:32 -07:00
Aki Sasaki 0550f47570 bug 1360542 - remove aurora_to_beta and central_to_aurora. r=rail
MozReview-Commit-ID: KUyuR80Sz0e

--HG--
extra : rebase_source : 7020fcfd6499f426ac22c9e692b2cc4bdba3d718
2017-05-04 11:35:32 -07:00