Commit Graph

564112 Commits

Author SHA1 Message Date
Sebastian Hengst
32f7c8fec3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1h3kZyrtqSt
2017-10-17 11:45:16 +02:00
Sebastian Hengst
af89102d41 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JRsSap6SwOZ
2017-10-17 11:42:24 +02:00
ffxbld
79aa12fe2c No bug, Automated blocklist update from host bld-linux64-spot-315 - a=blocklist-update 2017-10-16 23:06:04 -07:00
ffxbld
0498069c9a No bug, Automated HPKP preload list update from host bld-linux64-spot-315 - a=hpkp-update 2017-10-16 23:06:00 -07:00
ffxbld
962f3aa143 No bug, Automated HSTS preload list update from host bld-linux64-spot-315 - a=hsts-update 2017-10-16 23:05:56 -07:00
Phil Ringnalda
838e056c79 Backed out 4 changesets (bug 1395497) for Linux failures in test_conformance__textures__misc__texture-npot-video.html
Backed out changeset c99dadd2df7d (bug 1395497)
Backed out changeset 4e3dd1e01908 (bug 1395497)
Backed out changeset c9fbcd8bd4cb (bug 1395497)
Backed out changeset a8503893cc85 (bug 1395497)

MozReview-Commit-ID: C324dGFTpLb
2017-10-16 19:13:56 -07:00
Timothy Nikkel
e56423e0fe Bug 1408607. Add a test. 2017-10-16 20:09:18 -05:00
Jeff Gilbert
a144f85f1f Bug 1395497 - Add AndroidSurfaceTexture support to GLBlitHelper. - r=snorp
MozReview-Commit-ID: JttqOoDCE4O
2017-10-16 19:33:39 -05:00
Jeff Gilbert
ca2f5c0f17 Bug 1395497 - Use mat3s to transform tex coords in GLBlitHelper. - r=daoshengmu
MozReview-Commit-ID: 9AjnrOY4Rrc
2017-10-16 19:33:39 -05:00
James Willcox
ec1aa0da64 Bug 1395497 - Regenerate JNI binding r=me
MozReview-Commit-ID: D1zqIMsH1fH
2017-10-16 19:33:38 -05:00
James Willcox
cbcb5ef5e9 Bug 1395497 - Create SurfaceTexture in detached state, attach on first use r=jgilbert
MozReview-Commit-ID: HfkEUH9aiBo
2017-10-16 19:33:38 -05:00
Brendan Dahl
0946e8c036 Bug 1399956 - Add headless mochitests to taskcluster. r=jmaher
MozReview-Commit-ID: IGnl6WroOOV
2017-10-16 16:15:45 -07:00
Brendan Dahl
42bc28d260 Bug 1399956 - Disable some mochitests in headless. r=jrmuizel
These tests will need more work and are low priority.

MozReview-Commit-ID: H0J16E8FqNr
2017-10-16 16:15:45 -07:00
Brendan Dahl
95fd4f75d9 Bug 1399956 - Add headless flag for mochitests. r=jmaher
MozReview-Commit-ID: Kqk0sw4ykEm
2017-10-16 16:15:45 -07:00
Brendan Dahl
affa6b60d0 Bug 1399956 - Support synthesized touch events. r=jrmuizel
Fixes test_group_pointerevents.html

MozReview-Commit-ID: 7RPkiHtx0rj
2017-10-16 16:15:45 -07:00
Brendan Dahl
357f877106 Bug 1399956 - Support synthesized scroll events. r=jrmuizel
Fixes test_bug1151667.html

MozReview-Commit-ID: 8lCHNTA8zIL
2017-10-16 16:15:45 -07:00
Brendan Dahl
45352c7de8 Bug 1399956 - Default to san-serif for headless font. r=jrmuizel
Fixes problem with the initial computed value of font-family
being empty and not matching the later value in
test_value_storage.html.

MozReview-Commit-ID: HOHvMZPP1GD
2017-10-16 16:15:45 -07:00
Brendan Dahl
18db282eaa Bug 1399956 - Add logging to headless widget. r=jrmuizel
Use similar logging to the various nsWindows to make
debugging easier.

MozReview-Commit-ID: 5AsaehQsOtA
2017-10-16 16:15:45 -07:00
Brendan Dahl
72ed58e8b8 Bug 1399956 - Add basic hard coded GTK theme in headless. r=jrmuizel
Many tests rely on the minimum size of widgets to
be set. Also, the precise size seems to matter for some
tests that have hard coded offsets.

MozReview-Commit-ID: BglZD1cKdY9
2017-10-16 16:15:45 -07:00
Brendan Dahl
d9e05f42d9 Bug 1399956 - Support synthesized mouse events. r=jrmuizel
Fixes:
 - test_pointerlock-api.html
 - test_group_mouseevents.html

MozReview-Commit-ID: 82RKzjJv9X1
2017-10-16 16:15:45 -07:00
Brendan Dahl
f2ed681b19 Bug 1399956 - Track top level windows in headless mode for window ordering. r=jrmuizel
This better emulates a window manager and triggers the
required activated/deactivated events on the proper windows as
they are closed or hidden.

MozReview-Commit-ID: 1A2JTp8i4VE
2017-10-16 16:15:45 -07:00
Sebastian Hengst
a984558fa2 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: K49FVRdOww8
2017-10-16 10:55:46 +02:00
Sebastian Hengst
72da7d04f9 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 3oPupIUQHga
2017-10-16 10:54:00 +02:00
ffxbld
e5bbda30b9 No bug, Automated HPKP preload list update from host bld-linux64-spot-307 - a=hpkp-update 2017-10-15 22:50:12 -07:00
ffxbld
28ef948b68 No bug, Automated HSTS preload list update from host bld-linux64-spot-307 - a=hsts-update 2017-10-15 22:50:09 -07:00
Sebastian Hengst
c429719e2a merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: TaCJmNGpct
2017-10-15 23:43:07 +02:00
Sebastian Hengst
17905cf3cc merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: KmQKTMlI0Lt
2017-10-15 23:40:03 +02:00
ffxbld
40b456626e No bug, Automated HPKP preload list update from host bld-linux64-spot-301 - a=hpkp-update 2017-10-15 10:33:36 -07:00
ffxbld
93cacab1f5 No bug, Automated HSTS preload list update from host bld-linux64-spot-301 - a=hsts-update 2017-10-15 10:33:33 -07:00
Joel Maher
0e715e3cda Bug 1408730 - skip browser_ebay.js on artifact builds. r=mkaply 2017-10-15 10:24:45 -04:00
Randell Jesup
336209d98d Bug 1408716: Remove unneeded dynamic_cast r=drno 2017-10-15 07:47:14 -04:00
Joel Maher
2120bf7a70 Bug 1404836 - Disable gfx/layers/apz/test/mochitest/test_group_pointerevents.html on windows 10 for frequent failures. r=me, a=test-only 2017-10-15 05:55:43 -04:00
Joel Maher
8eed010557 Bug 1403428 - Disable /html/browsers/windows/browsing-context-names/choose-_parent-001.html on !win for frequent failures. r=me, a=test-only 2017-10-15 05:55:21 -04:00
Joel Maher
9be0d7276b Bug 1400098 - Disable dom/workers/test/test_fileReader.html on !debug for frequent failures. r=me, a=test-only 2017-10-15 05:55:12 -04:00
Joel Maher
558b169cc1 Bug 1396184 - Disable uriloader/exthandler/tests/mochitest/browser_ext_helper_pb.js on OSX for frequent failures. r=me, a=test-only 2017-10-15 05:55:05 -04:00
Sebastian Hengst
cbeded1fe4 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-15 11:41:41 +02:00
Sebastian Hengst
c5cf9de9bd merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: AWcJtsdyruX
2017-10-15 11:40:42 +02:00
ffxbld
39f4a652d1 No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2017-10-14 22:59:04 -07:00
ffxbld
0c0219f6c4 No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2017-10-14 22:59:01 -07:00
Kris Maglione
e74866a836 Bug 1405286: Part 4 - Don't overwrite existing state with finishedtransferringdata. r=mixedpuppy
In cases where data transfer finishes immediately after we close a request, we
can sometimes wind up overwriting that state information with
"finishedtransferringdata", which allows scripted callers to break certain
invariants and cause crashes.

MozReview-Commit-ID: Do3GttF3M9S

--HG--
extra : rebase_source : 22ef41b1655641fb5f73034d076f3bb6e148a626
extra : absorb_source : 5ca805e93d4d5feed9a5bd7e7f292104cd1bdd11
2017-10-14 20:01:18 -07:00
Kris Maglione
f0b1b98a83 Bug 1405286: Part 3 - Test that filterResponseData from cached onHeadersReceived doesn't crash. r=mixedpuppy
It currently isn't possible to suspend a channel from onHeadersReceived for a
cached response. And since it's not possible to add a new stream filter after
a response has started, adding a stream filter at that point will crash if the
channel is still registered.

This test is a basic sanity check for that scenario.

MozReview-Commit-ID: ALYUtxX7mci

--HG--
extra : rebase_source : 120889fd8f9edd097a7dae807b54eb3fd283f0f6
2017-10-14 19:25:35 -07:00
Kris Maglione
3967e13d94 Bug 1405286: Part 2 - Ensure ordered processing of StreamFilter events. r=mixedpuppy
Our current StreamFilter code doesn't behave well when data delivery is
targeted to a thread pool, rather than a single thread.

Thread pools don't guarantee ordered processing of events. It's theoretically
always possible for multiple events dispatched to a pool to be processed in
parallel, or even slightly out of order.

For the most part, this should only be a theoretical concern, unless several
data events are dispatched at the same time, and the pool has enough available
threads to service all of them (which is an unlikely scenario in this code).
However, when data delivery is targeted to a thread pool, the OnDataAvailable
callbacks do not have access to the thread pool itself, only the thread that
the callback was dispatched to. This means that after each OnDataAvailable
call, we likely store a new IO thread, and writes end up queued to a different
single thread depending on exactly when they happen.

Threads in thread pools often wind up executing long-running runnables, such
as synchronous IO or network operations. Which means that we introduce
arbitrary delays for some writes, and are likely to wind up with highly
arbitrary ordering.


This patch solves both of these problems by introducing strict event queue
ordering, and also dispatching IO events to the original explicit delivery
target, rather than whatever the current thread happened to be at the time of
the last data event.

MozReview-Commit-ID: 1SdYjS6ltqw

--HG--
extra : rebase_source : a92aeff88b21ad41f2eef71a732fdf60f447789a
2017-10-14 18:58:53 -07:00
Kris Maglione
635fc0e1ae Bug 1405286: Part 1 - Allow retrieving the delivery target from retargetable requests. r=dragana
After data delivery for a request has been retargeted, there's no reliable way
to get the appropriate event target to re-dispatch data events after
asynchronous processing.


While it's technically possible to retrieve the current thread from
OnDataAvailable callbacks and re-use that for later dispatch, that approach
has some issues:

1) It's not currently possible to reliably map the current thread to the
thread pool that owns it. That means that if data delivery is being targetted
to a thread pool, attempts to redispatch events to the previous delivery
thread might lead to long delays when one thread in a pool is blocked.

2) If a filter wishes to dispatch data events to the wrapped listeners before
it's recieved any data (as extensions StreamFilters sometimes do), there's no
way to determine the proper event target without waiting for initial data to
be received.


Simply returning the correct event target from the request solves both of
these problems.

MozReview-Commit-ID: CJxq7O4399R

--HG--
extra : rebase_source : db2f659ecad16daafdbcc108d7b1a51ea1af31f9
2017-10-14 18:30:38 -07:00
Sebastian Hengst
05889a48b5 Backed out changeset 3df6520e217f (bug 1408468) for failing shape highlighter related tests, e.g. xpcshell's devtools/server/tests/unit/test_shapes_highlighter_helpers.js. r=backout
--HG--
extra : amend_source : 7de8f44cf8e6efd015cfd9c21f0a817fdaeaf962
2017-10-17 00:34:11 +02:00
Sebastian Hengst
a32d6e8b12 Backed out changeset d9ab5b748c99 (bug 1408468) 2017-10-17 00:33:53 +02:00
Sebastian Hengst
379eb7d3d6 Backed out changeset a52945a497c8 (bug 1408562) for leak in dt1 job on Linux x64 asan. r=backout on a CLOSED TREE
--HG--
extra : amend_source : de81f48b29a820fb46ace77295911344902ed202
2017-10-17 00:05:09 +02:00
Kris Maglione
bb49a293fc Bug 1404198: Follow-up: Fix more OS-X build bustage on a CLOSED TREE r=bustage
--HG--
extra : amend_source : 2ab5881c9eae6b689a0c45c33b3faeb398b5eeaf
2017-10-16 14:56:50 -07:00
Gabriel Luong
45b8022b6e Bug 1408468 - Part 2: Fix eslint errors in shapes.js and doc_inspector_highlighter_csshapes_iframes.html. r=me CLOSED TREE 2017-10-16 17:38:40 -04:00
Kris Maglione
12085d8c3d Bug 1404198: Follow-up: Fix OS-X build bustage. r=bustage
MozReview-Commit-ID: EUSy85iEkCb

--HG--
extra : amend_source : af963cc82ac558bfde4e2538d853cceff0ba3b52
2017-10-16 14:30:31 -07:00
David Major
34919e275a Bug 1408695 - Work around a VS2017 constexpr pointer math bug in HTMLTrackElement.cpp. r=gerald 2017-10-14 21:09:05 -04:00