Commit Graph

15824 Commits

Author SHA1 Message Date
Andreas Tolfsen
719adb851d 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
2017-04-17 17:24:19 +01:00
Gregory Szorc
4094c8fb3e 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
2017-04-26 13:59:36 -07:00
Gregory Szorc
6a4ef4b203 Bug 1359988 - Remove spidermonkey b2g build script; r=mshal
We shouldn't be running any Firefox OS automation.

MozReview-Commit-ID: 4ea9SL7jill
2017-04-26 13:51:01 -07:00
Gregory Szorc
7592a7527c 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
2017-04-26 13:50:02 -07:00
Gregory Szorc
678b62e174 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
2017-04-26 13:56:52 -07:00
Gregory Szorc
fcf1973b30 Bug 1359988 - Remove mozharness docs related to gaia; r=mshal
The code is gone. Remove the legacy docs.

MozReview-Commit-ID: 9oIC00swoml
2017-04-26 13:55:10 -07:00
Gregory Szorc
38762efd5d Bug 1359988 - Remove gaia scripts and configs from mozharness; r=mshal
Firefox OS is dead.

MozReview-Commit-ID: CWX04cHHT7u
2017-04-26 13:54:09 -07:00
Wes Kocher
52d75af886 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 6CUQEJghjzU
2017-04-27 13:37:47 -07:00
Wes Kocher
36a9133ce4 Merge inbound to central, a=merge
MozReview-Commit-ID: HZUHBRK4UmL
2017-04-27 13:00:07 -07:00
Dragana Damjanovic
2392afc0e0 Bug 1334776 - Store header names into nsHttpHeaderArray. r=mcmanus 2017-04-27 16:48:36 +02:00
Jeremy Chen
4a108d0ac3 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
2017-04-27 17:26:31 +08:00
Andreas Tolfsen
665e12d25b 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
2017-04-20 17:04:58 +01:00
Andreas Tolfsen
84e13e26c0 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
2017-04-19 21:19:36 +01:00
Carsten "Tomcat" Book
eb1595e913 Merge mozilla-central to autoland 2017-04-27 16:36:41 +02:00
Andreas Tolfsen
515c632145 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
2017-04-17 18:39:12 +01:00
Henrik Skupin
103ca6bb9b 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
2017-04-27 12:09:10 +02:00
Alexandre Poirot
208511b0d3 Bug 1356231 - Use toolkit EventEmitter.jsm instead of devtools module. r=mossop
MozReview-Commit-ID: 49JI7NtLwKK
2017-04-27 17:58:09 +02:00
Henrik Skupin
d18567609a 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
2017-04-20 12:12:27 +02:00
Henrik Skupin
e2c7164cf8 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
2017-04-13 14:57:25 +02:00
Henrik Skupin
b6d40379b2 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
2017-04-07 21:44:32 +02:00
Henrik Skupin
b9fb887a0a 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
2017-04-25 11:29:02 +02:00
Chris Pearce
ab155be095 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
2017-04-26 15:46:09 +12:00
Iris Hsiao
5966e5df93 Backed out changeset 0b8bf5cb743f (bug 1358373) for build bustage. a=backout
CLOSED TREE
2017-04-27 10:10:47 +08:00
Chris Pearce
8d09c4f9db 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
2017-04-26 15:46:09 +12:00
Jared Wein
06db750c9d 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
1f5ff5465f Merge m-c to autoland a=merge
MozReview-Commit-ID: LOGgOErcV9L
2017-04-26 17:43:38 -07:00
Wes Kocher
78efa7b9c0 Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: 9HQViJrDT6S
2017-04-26 17:30:31 -07:00
Mantaroh Yoshinaga
a1e7afbafb Bug 1356162 - Enable web-platform-tests of clip property animation. r=hiro
MozReview-Commit-ID: 7HRcmV7CWAN
2017-04-26 16:24:30 +09:00
Andrea Marchesini
b8849e9429 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
32889c9cc8 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
7c67d76792 Backed out changeset 4d8dfee7ebf3 (bug 1351548) 2017-04-26 13:12:59 +02:00
Shing Lyu
1ae324bcba 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
e17b9232d8 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
ffb4cca140 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
2017-04-19 16:42:10 -04:00
Emilio Cobos Álvarez
33f5311a7e Bug 1355351: Tests for correct resolution of style for pseudo-elements. r=heycam
MozReview-Commit-ID: BFvXhYCK46v
2017-04-16 23:29:46 +02:00
Andreas Tolfsen
7da810455a 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
2017-04-17 19:34:44 +01:00
Blake Kaplan
28f5fd4afb 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
2017-04-21 16:54:45 -07:00
Gregory Szorc
d4325ee0c5 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
2017-04-24 15:20:09 -07:00
Chris Manchester
549d7c76bb 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
2017-04-25 16:18:43 -07:00
Chris Manchester
7fade6f7f2 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
2017-04-25 16:17:44 -07:00
Chris Manchester
aecb7edab9 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
2017-04-25 15:54:24 -07:00
Andrew McCreight
435971c197 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
2017-04-12 11:01:24 -07:00
Aryeh Gregor
e129b8c3c7 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
2017-04-25 14:55:31 +03:00
Andreas Tolfsen
7e0a9391a6 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
2017-04-20 18:00:46 +01:00
Andreas Tolfsen
09b5bba5f9 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
2017-04-24 15:01:41 +01:00
Andreas Tolfsen
8ca67eea41 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
2017-04-17 18:42:18 +01:00
Andreas Tolfsen
0d9e1ed755 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
2017-04-17 17:51:13 +01:00
Andreas Tolfsen
f8ba964ead 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
2017-04-17 14:47:28 +01:00
Andreas Tolfsen
adc586ea8b 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
2017-04-03 19:20:19 +01:00
Andreas Tolfsen
326b3fb5ff Bug 1353074 - Run wrappedJSObject execute script tests in all sandboxes; r=maja_zf
MozReview-Commit-ID: 5u2u5alGb7Z
2017-04-03 19:19:05 +01:00