Commit Graph

575599 Commits

Author SHA1 Message Date
Andrew Sutherland
31246a1058 Bug 1416879 - Part 5: FetchStreamReader needs to cancel its reader when it encounters write errors. r=baku, f=bkelly
Currently, FetchStreamReader never signals to the JS stream code that
the reader has been closed.  This means that when a ServiceWorker
passes a ReadableStream to respondWith and the HTTP Channel gets
canceled, the JS code will keep generating the stream without ever
realizing the data's not going anywhere.  It's necessary to cancel
the reader.  Or do something like that, this seems to work!

--HG--
extra : rebase_source : 559af90ba766ebd4deb5d99b6696cd2207215f9f
2018-01-04 18:09:32 -05:00
Andrew Sutherland
8da7ba26dd Bug 1416879 - Part 4: FetchDriver needs to propagate write failures. r=baku
In the scenario where a ServiceWorker returns a pass-through fetch via
`evt.respondWith(fetch("underlying"))`, in order for the "underlying"
HTTP channel to be canceled when the outer HTTP channel is canceled,
FetchDriver's OnDataAvailable method needs to return an error when
the output pipe experiences an error.

Unfortunately, the contract for ReadSegments is effectively that it
returns NS_OK regardless of what the rv of the write handler returned,
so relying on the returned rv is insufficient.  And because various
Write*() methods will all fast-path to returning NS_OK if a count of 0
is passed, it's necessary to infer a closed/broken pipe by noticing
that we tried to write more than 0 bytes of data but 0 bytes were
written.  (This is safe because the pipe we write into was created
by FetchDriver::OnStartRequest which explicitly creates an infinite
pipe, so it's not possible for the write to fail due to lack of space
in the pipe.)

--HG--
extra : rebase_source : 788dab679298841fc03bb054458b6f8cc4a0a8d9
2018-01-04 18:04:55 -05:00
Andrew Sutherland
35d9749e9b Bug 1416879 - Part 3: (Also Bug 1418795) SyntheticDiversionListener should handle !mIPCOpen. r=bkelly
The SyntheticDiversionListener needs to handle the case where the IPC
connection is gone.  This patch avoids calling Send* methods which will
crash the content process if the actor has already been destroyed.
Additionally, OnDataAvailable will return an error in such a case so
that the caller can properly handle the error rather than continuing to
attempt to send data to a listener that doesn't care.  This latter
change is an artifact of a previous hack attempt to fix a related
diversion issue that is probably not required for this stack, but makes
sense as a fix, so I've left it in.

--HG--
extra : rebase_source : 824d4ab64e92ebb04d8d1ecd4df6d03a2cb37d2f
2018-01-04 13:59:13 -05:00
Andrew Sutherland
5272d9c40a Bug 1416879 - Part 2: Allow for diversion cancellation and trigger for intercepted channels. r=bkelly, r=mayhemer
The diversion mechanism never expected to be dealing with data sourced
from the content process, but that's exactly what happens with
ServiceWorker-intercepted channels with the current child-intercept
situation (which is being fixed).

In order to allow timely cancellation of diverted intercepted
channels, there needs to be a way to relay to the HttpChannelChild
that it needs to be canceled so that the synthesized pump can be
canceled and diversion can be marked as complete.  This patch adds
such a mechanism to ADivertableParentChannel and PHttpChannel for the
exclusive use of InterceptedHttpChannel and then uses it.

--HG--
extra : rebase_source : 59d3aa5e541d2a404c6320ae9fce03e7c9cd8b81
2018-01-04 18:38:07 -05:00
Andrew Sutherland
7f86d0ce4a Bug 1416879 - Part 1: DivertComplete should only be sent at OnStopRequest for synthesized responses. r=bkelly
Diversion for intercepted channels with a synthesized response is a
special case.  It is not appropriate to send DivertComplete when
mEventQ has been drained, because we are not dealing with the usual
mEventQ-enqueued OnDataAvailable payloads that had been received over
the network and sent down to the child.  In this case, all the data
originates in the child and does not go through mEventQ.  As such,
the correct place to send DivertComplete is at OnStopComplete for the
synthesized response.

--HG--
extra : rebase_source : 2209c25ad6f2b5655728d8dc07ef7f8b64df6ea6
2018-01-04 18:56:46 -05:00
Ben Kelly
64ef60ebaa Bug 1428447 Set a loading principal on ServiceWorker WorkerPrivate objects. r=asuth 2018-01-05 19:50:09 -05:00
Sebastian Hengst
6c6df154cd merge mozilla-central to mozilla-inbound. r=merge a=merge 2018-01-06 01:56:19 +02:00
Sebastian Hengst
2928d8ae82 Bug 1425975 - Follow-up: Move method to correct position. r=merge-fix a=merge-fix 2018-01-06 01:51:46 +02:00
Jeff Gilbert
f106df25cd Bug 1427668 - Flush on mac after EndTransformFeedback. - r=daoshengmu
MozReview-Commit-ID: A0Tbk2pIng
2018-01-05 15:28:01 -08:00
Jeff Gilbert
68be900a6c Bug 1427668 - Require frag_color_float for color_buffer_*float extensions. - r=daoshengmu
Add probe for faulty frag_color_float implementations.

MozReview-Commit-ID: E2I0mrDuicV
2018-01-05 15:27:59 -08:00
Jeff Gilbert
db4f0399df Bug 1427668 - Fixes and spew. - r=daoshengmu
MozReview-Commit-ID: 9NPkWsh2rxE
2018-01-05 15:27:56 -08:00
Jeff Gilbert
8fc8584d67 Bug 1427668 - Disable MakeCurrent TLS for ANGLE for now. - r=daoshengmu
MozReview-Commit-ID: HzKKivtXeHX
2018-01-05 15:27:54 -08:00
Jeff Gilbert
8ab9a9aa21 Bug 1427668 - Assert that no-alpha backbuffers have 0xff alpha. - r=daoshengmu
MozReview-Commit-ID: 5UJdoud0f2C
2018-01-05 15:27:51 -08:00
Jeff Gilbert
7edc1cd1d7 Bug 1427668 - Lose context if EnsureDefaultFB fails. - r=daoshengmu
MozReview-Commit-ID: 8OqXYXpUv4I
2018-01-05 15:27:48 -08:00
Jeff Gilbert
3331434de7 Bug 1427668 - Unify MaxRenderbufferSize and MaxTextureSize. - r=daoshengmu
MozReview-Commit-ID: AFS0IqmkQEo
2018-01-05 15:27:46 -08:00
Jeff Gilbert
182a604cde Bug 1427668 - Special-case lazy glEnable caps. - r=daoshengmu
MozReview-Commit-ID: KD5N2y1U804
2018-01-05 15:27:43 -08:00
Jeff Gilbert
fad02050d8 Bug 1427668 - Use shadows instead of calling into GL. - r=daoshengmu
MozReview-Commit-ID: 1ZFwDNboet3
2018-01-05 15:27:41 -08:00
Jeff Gilbert
768a9730e5 Bug 1427668 - InvalidateFB should accept incomplete FBs, but just skip them for now. - r=daoshengmu
MozReview-Commit-ID: LZtVwzZ1HK8
2018-01-05 15:27:38 -08:00
Jeff Gilbert
9e26c20b7f Bug 1427668 - ColorMask(0xf) for backbuffer resolve. - r=daoshengmu
MozReview-Commit-ID: KZJZ0Lc0vbC
2018-01-05 15:27:36 -08:00
Jeff Gilbert
79fa5ae9cf Bug 1427668 - Reject too-large MozFramebuffer requests. - r=daoshengmu
MozReview-Commit-ID: G2jqeb7QqhE
2018-01-05 15:27:33 -08:00
Jeff Gilbert
df8e8db803 Bug 1427668 - Move the webgl backbuffer into webgl. - r=daoshengmu
MozReview-Commit-ID: 2WpG7mfMRQ8
2018-01-05 15:27:30 -08:00
Jeff Gilbert
3f0aacfb10 Bug 1427668 - Add MozFramebuffer. - r=daoshengmu
MozReview-Commit-ID: CX0wxs7Gqvp
2018-01-05 15:27:28 -08:00
Florian Quèze
e44246d6d2 Bug 1428401 - Remove obsolete getPref helpers, r=Gijs. 2018-01-06 00:25:51 +01:00
Sebastian Hengst
a149c84834 Bug 1425975 - Fix merge bustage. r=bustage-fix a=bustage-fix 2018-01-06 01:10:52 +02:00
Coroiu Cristina
ebae541f60 Backed out 1 changesets (bug 1297740) for mingw32 build failure at src/ipc/chromium/src/base/process_util_win.cc r=backout on a CLOSED TREE
Backed out changeset e2501f2e295e (bug 1297740)
2018-01-06 00:59:25 +02:00
Sebastian Hengst
d52c7b3231 merge inbound to central. r=merge a=merge 2018-01-06 00:27:10 +02:00
arthur.iakab
edc6a0cc48 Merge autoland to mozilla-central r=merge a=merge 2018-01-05 23:51:43 +02:00
ffxbld
0f63741b8e No bug, Automated HPKP preload list update from host bld-linux64-spot-037 - a=hpkp-update 2018-01-05 12:22:25 -08:00
ffxbld
0046f0f438 No bug, Automated HSTS preload list update from host bld-linux64-spot-037 - a=hsts-update 2018-01-05 12:22:21 -08:00
Emilio Cobos Álvarez
bab6ad290a Bug 1427824: Remove invalid assertion in presence of display: contents. r=bz
MozReview-Commit-ID: 4jFGHcD5wds

--HG--
extra : rebase_source : 23afb26dd3a93d4693def423a7ee3f3f95ed91a7
2018-01-05 19:12:42 +01:00
Ryan VanderMeulen
49536acddf Bug 1428405 - Update pdf.js to version 2.0.250. r=bdahl 2018-01-05 13:09:53 -05:00
Johan Lorenzo
3757bebc72 Bug 1385401 - Fetch Google Play listings outside of the push-apk task r=aki
MozReview-Commit-ID: 2PTvLx4Atj5

--HG--
extra : rebase_source : e455755b3a20c290b0a54fb60b90efb6ca756fb4
2018-01-05 13:49:59 +01:00
Jorg K
bc6ff2f863 Bug 1427553 - Handle mull gracefully in ellipseString(). r=bobowen 2018-01-05 06:52:00 -05:00
Tiberius Oros
0a895028f7 Merge inbound to mozilla-central r=merge a=merge 2018-01-05 11:57:58 +02:00
Tiberius Oros
b61fe475c8 Merge autoland to mozilla-central r=merge a=merge 2018-01-05 11:56:24 +02:00
Myk Melez
c3da3e7642 Bug 1379338 - scriptify preferences XBL; r=jaws
MozReview-Commit-ID: Egyzs2KxhzH
2018-01-04 21:37:47 -08:00
Andreea Pavel
b88f05e893 Backed out changeset 3a55b10a6974 (bug 106327) for build bustage on
/builds/worker/workspace/build/src/layout/xul/nsMenuFrame.cpp r=backout a=backout on a CLOSED TREE

--HG--
extra : amend_source : e09bf154093728898ad2c27dd185108f9ff3b009
2018-01-05 04:46:46 +02:00
ffxbld
a2f5eacf1f No bug, Automated HPKP preload list update from host bld-linux64-spot-034 - a=hpkp-update 2018-01-04 14:13:48 -08:00
ffxbld
df3bec329c No bug, Automated HSTS preload list update from host bld-linux64-spot-034 - a=hsts-update 2018-01-04 14:13:44 -08:00
Andreea Pavel
25357802c6 Merge mozilla-inbound to mozilla-central r=merge a=merge 2018-01-04 23:28:19 +02:00
Hiroyuki Ikezoe
ff1b1ade87 Bug 1420928 - Templatize functions that ensures nsStyleAutoArray length. r=boris
MozReview-Commit-ID: 7MvW9OCBkCP

--HG--
extra : rebase_source : 723092199ce780058b0f87bfd0c208987c847e47
2018-01-05 06:24:10 +09:00
Hiroyuki Ikezoe
9070574de9 Bug 1420928 - Drop StyleTransition::GetCombinedDuration. r=boris
We no longer call the function directly.  It has been replaced by
nsStyleDisplay::GetTransitionCombinedDuraion(uint32_t).

MozReview-Commit-ID: 9wZExWPmnyG

--HG--
extra : rebase_source : dff6b4e686578e7c79e16148ab3ab63b40444be7
2018-01-05 06:24:09 +09:00
Hiroyuki Ikezoe
3fe9a1ba97 Bug 1420928 - Reuse computed values for transition properties repeatedly if the computed values' length is less than transition-property length. r=boris
MozReview-Commit-ID: BptxzspwoP9

--HG--
extra : rebase_source : a1335be7d9750aadf23e33a7b12114eef53f2e64
2018-01-05 06:24:09 +09:00
Hiroyuki Ikezoe
13133e575b Bug 1420928 - Reuse computed values for animation properties repeatedly if the computed values' length is less than animation-name length. r=boris
MozReview-Commit-ID: DSmUlE9m0UI

--HG--
extra : rebase_source : 7fe6f42edf6da3d3dbb988c7d569272fdd6d56af
2018-01-05 06:24:09 +09:00
Hiroyuki Ikezoe
9f18c8396b Bug 1420928 - Add a function that calculates combined duration with a given position in the transition-property list. r=boris
MozReview-Commit-ID: 9YOII9lqtRq

--HG--
extra : rebase_source : 6c06b3b4f5cdd09b35473c0a19211158252519e2
2018-01-05 06:24:08 +09:00
Hiroyuki Ikezoe
b6d9f2a64e Bug 1420928 - Add getters for each transition property in nsStyleDisplay. r=boris
MozReview-Commit-ID: KMUk5VFmKG7

--HG--
extra : rebase_source : ce4bbcd06f3076a5df582a38b2c762c67e4cb78a
2018-01-05 06:24:08 +09:00
Hiroyuki Ikezoe
146aae5f3b Bug 1420928 - Add getters for each animation property in nsStyleDisplay. r=boris
This is also a prerequisite to use repeated values for the used value.
Note that each count should never be zero since their initial value is 1 and
we never set zero length property value to the member.

MozReview-Commit-ID: 44ZMhopuK6o

--HG--
extra : rebase_source : 6284b2b5beb43bf78c16e0c39e95ec0e5118ed14
2018-01-05 06:24:08 +09:00
Hiroyuki Ikezoe
9fcd2613d3 Bug 1420928 - BuildKeyframes takes animation name and timing function instead of StyleAnimation. r=boris
This is a prerequisite to use repeated values for the used value of the each
animation property instead of the computed values.

In a subsequent patch in this patch series, the timing function will be replaced
with the one which may be a repeated value in computed animation timing function values list.

MozReview-Commit-ID: GOKHE3MH0Ue

--HG--
extra : rebase_source : ecc270eddb648d2915292ec3e219f4e349c6047c
2018-01-05 06:24:07 +09:00
Hiroyuki Ikezoe
e170a44222 Bug 1420928 - Pass a const reference of nsStyleDisplay instead of a raw pointer to DoUpdateTransitions. r=birtles,boris
MozReview-Commit-ID: 91QtuEqlRYv

--HG--
extra : rebase_source : f75813fb7b7d6119272d38fc1cc331084b3b6830
2018-01-05 06:24:07 +09:00
Hiroyuki Ikezoe
1373124b80 servo: Merge #19693 - Drop animation name and transition property from early properties (from hiikezoe:drop-animation-name-and-transition-property-from-early-properties); r=boris
<!-- Please describe your changes on the following line: -->
https://bugzilla.mozilla.org/show_bug.cgi?id=1420928

Source-Repo: https://github.com/servo/servo
Source-Revision: 97e39797418486196e9685931e01a3d1b563f93e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b6829e2a84c8b6d7cd037d6b7cacd40769caca7b
2018-01-04 22:14:18 -06:00