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
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
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
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
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
df8e8db803
Bug 1427668 - Move the webgl backbuffer into webgl. - r=daoshengmu
...
MozReview-Commit-ID: 2WpG7mfMRQ8
2018-01-05 15:27:30 -08:00
Sebastian Hengst
d52c7b3231
merge inbound to central. r=merge a=merge
2018-01-06 00:27:10 +02:00
Boris Zbarsky
9c7a904e7b
Bug 1426525 part 5. Remove the 'ref' getter/setter on XULElement. r=smaug
...
The WebIDL for this was already removed in bug 1425356.
MozReview-Commit-ID: HWxPe3a0Pmi
2018-01-05 13:48:39 -05:00
Boris Zbarsky
d6e49f095c
Bug 1426525 part 3. Remove the special-casing of the 'ref' attribute in CanBroadcast. r=smaug
...
MozReview-Commit-ID: K8Zkedorr7U
2018-01-05 13:48:39 -05:00
Boris Zbarsky
77660697fc
Bug 1426525 part 2. Remove the now-nearly-unused XULDocument::GetElementsForID method. r=smaug
...
MozReview-Commit-ID: Gv23I8gLhem
2018-01-05 13:48:39 -05:00
Boris Zbarsky
bde68b50e6
Bug 1426525 part 1. Remove XULDocument's mRefMap member, since there should be no XUL elements with 'ref' attributes anymore. r=smaug
...
'ref' used to be used for templates, but those are gone as of bug 1425356 being
fixed.
MozReview-Commit-ID: GerfZrckypp
2018-01-05 13:48:38 -05:00
Coroiu Cristina
cf8d0654b4
Backed out 5 changesets (bug 1426525) for bustage at build/src/layout/xul/tree/nsTreeContentView.cpp r=backout on a CLOSED TREE
...
Backed out changeset 96efa1b6f4d5 (bug 1426525)
Backed out changeset 37fdd4a04f4e (bug 1426525)
Backed out changeset cee585723368 (bug 1426525)
Backed out changeset 85e218bf000c (bug 1426525)
Backed out changeset 501c70abf837 (bug 1426525)
2018-01-05 21:40:44 +02:00
Boris Zbarsky
b7061c1a7e
Bug 1426525 part 5. Remove the 'ref' getter/setter on XULElement. r=smaug
...
The WebIDL for this was already removed in bug 1425356.
MozReview-Commit-ID: HWxPe3a0Pmi
2018-01-05 13:48:39 -05:00
Boris Zbarsky
62d4e8ee58
Bug 1426525 part 3. Remove the special-casing of the 'ref' attribute in CanBroadcast. r=smaug
...
MozReview-Commit-ID: K8Zkedorr7U
2018-01-05 13:48:39 -05:00
Boris Zbarsky
8ae71997ff
Bug 1426525 part 2. Remove the now-nearly-unused XULDocument::GetElementsForID method. r=smaug
...
MozReview-Commit-ID: Gv23I8gLhem
2018-01-05 13:48:39 -05:00
Boris Zbarsky
215419bbfb
Bug 1426525 part 1. Remove XULDocument's mRefMap member, since there should be no XUL elements with 'ref' attributes anymore. r=smaug
...
'ref' used to be used for templates, but those are gone as of bug 1425356 being
fixed.
MozReview-Commit-ID: GerfZrckypp
2018-01-05 13:48:38 -05:00
Ben Kelly
7f0e026bcb
Bug 1425975 P16 Make nsDocShell check for session cookie lifetime policy before allowing service worker intercept. r=asuth
2018-01-05 12:10:22 -05:00
Ben Kelly
fd30dd024a
Bug 1425975 P15 Add session lifetime policy checks to test_third_party_iframe.html. r=asuth
2018-01-05 12:10:22 -05:00
Ben Kelly
b7d9339122
Bug 1425975 P14 Assert that storage is allowed when a ClientSource is both execution ready and controlled. r=asuth
2018-01-05 12:10:22 -05:00
Ben Kelly
423f2202f9
Bug 1425975 P13 Check for a different final document principal and reset the ClientSource when it happens. r=asuth
2018-01-05 12:10:22 -05:00
Ben Kelly
d9c3b35de3
Bug 1425975 P11 Fix test_workerupdatefound.html not to frame loading against SW activation and updatefound events. r=asuth
2018-01-05 12:10:22 -05:00
Ben Kelly
8d1c01e9eb
Bug 1425975 P10 Fix the test_skip_waiting.html mochitest to properly wait for active worker state. r=asuth
2018-01-05 12:10:21 -05:00
Ben Kelly
3bd4435759
Bug 1425975 P9 Refactor MaybeCheckNavigationUpdate() to take a ClientInfo instead of a document. r=asuth
2018-01-05 12:10:21 -05:00
Ben Kelly
c67746c9b2
Bug 1425975 P7 Use the mControlledClients list to drive controller start and stop logic. r=asuth
2018-01-05 12:10:21 -05:00
Ben Kelly
aaf7a2cb50
Bug 1425975 P6 Rename some service worker methods to not reference documents. r=asuth
2018-01-05 12:10:21 -05:00
Ben Kelly
81e3a5bfa7
Bug 1425975 P5 Make ServiceWorkerManager::RemoveRegistration assert there is no controlled document. r=asuth
2018-01-05 12:10:20 -05:00
Ben Kelly
9354f0db20
Bug 1425975 P4 Make ServiceWorkerManager::UpdateClientControllers use mControlledClients. r=asuth
2018-01-05 12:10:20 -05:00
Ben Kelly
d199c719ef
Bug 1425975 P3 Refactor ServiceWorkerManager::GetDocumentRegistration() to GetClientRegistration(). r=asuth
2018-01-05 12:10:20 -05:00
Ben Kelly
0d02480ce1
Bug 1425975 P2 Add ServiceWorkerManager mControlledClients to track controlled ClientHandle references. r=asuth
2018-01-05 12:10:20 -05:00
Ben Kelly
ed3bd4b27a
Bug 1425975 P1 Add ClientHandle::OnDetach() which returns a MozPromise that resolves on actor destruction. r=asuth
2018-01-05 12:10:20 -05:00
Andrew McCreight
27fbef8dfc
Bug 1426801 - Clear gFirstIdleTask if we fail to dispatch the runnable. r=mrbkap
...
MozReview-Commit-ID: 23f9VDTyyqg
--HG--
extra : rebase_source : 525588c060c282e9ba1b6a80ffa2bea95c05c271
2018-01-04 14:59:14 -08:00
Emilio Cobos Álvarez
198b044d86
Bug 1428053: Fix ShadowRoot::ContentAppended. r=jessica
...
MozReview-Commit-ID: iUhaP8VVIO
2018-01-05 11:18:18 +01:00
Emilio Cobos Álvarez
90f6f7ae08
Bug 1428053: Use Maybe<uint32_t> instead of an integer and a bool. r=jessica
...
This is just cleanup and not needed, but I wrote it while debugging so I'd
rather land it :)
MozReview-Commit-ID: BdnheDnwHr4
2018-01-05 11:18:16 +01:00
Tiberius Oros
97791540b0
Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE
2018-01-05 12:02:07 +02:00
Tiberius Oros
0a895028f7
Merge inbound to mozilla-central r=merge a=merge
2018-01-05 11:57:58 +02:00
JW Wang
fb4b1616ab
Bug 1428184 - copy mStreams before iterating the array. r=bechen,gerald
...
It is bad to modify the array while iterating it.
MozReview-Commit-ID: JbpoRmM7GqP
--HG--
extra : rebase_source : 92523a0741aa6014808b182954f653fce54161fd
2018-01-05 11:34:59 +08:00
Olli Pettay
496d14fe4e
Bug 1427525, try to not leak IdleTaskRunners related to GC/CC during shutdow, r=mccr8
2018-01-05 01:56:46 +02:00
Florian Quèze
0d1852004e
Bug 862147 - remove window.external.addSearchEngine, r=smaug.
2018-01-05 00:53:59 +01:00
Kyle Machulis
7b2fb44f60
Backing out 8fd1d4a79a48 (Bug 952453) due to notification bustage on MacOS
...
MozReview-Commit-ID: BeziRSoUvh2
2018-01-04 14:50:21 -08:00
Hiroyuki Ikezoe
606a9e9a90
Bug 1421507 - Throttle animations in position:fixed element that the element is out of view. r=boris,tnikkel
...
MozReview-Commit-ID: jLvrcVhTKW
--HG--
extra : rebase_source : e2ff1e0158aa5207f86c47088283c22febe84197
2018-01-05 10:30:46 +09:00
Hiroyuki Ikezoe
9b4b9f9e65
Bug 1421507 - Test cases for position:absolute element. r=boris
...
MozReview-Commit-ID: IRPsvJ5WAQF
--HG--
extra : rebase_source : 5c6988a9af8392cc5abf54e56060dcf9653edffb
2018-01-05 10:30:17 +09:00
Karl Tomlinson
a848c67de0
bug 1418820 add diagnostic asserts to check for multiple concurrent drivers r=padenot
...
MozReview-Commit-ID: 5nRELgRkjQY
--HG--
extra : rebase_source : cc08e88c88e7997a2808aa6c1f59f8a70cd7f191
2017-12-21 20:08:21 +13:00