Commit Graph

86477 Commits

Author SHA1 Message Date
Matt Woodrow
20e71d4c8a Bug 1556489 - P16. Add AddClientChannelHelperInParent helper method. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D40973
2019-09-03 10:19:37 +10:00
Matt Woodrow
b1aa62197e Bug 1556489 - P10. Pass PostData and Headers at DocShell creation time. r=nika,farre
Differential Revision: https://phabricator.services.mozilla.com/D40967
2019-09-03 10:19:27 +10:00
Matt Woodrow
e579f452c1 Bug 1556489 - P8. Add CSPService::ConsultCSPForRedirect. r=mayhemer,ckerschb
We extract the code from CSPService::AsyncOnChannelRedirect so that we can use it in a follow-up change.

Differential Revision: https://phabricator.services.mozilla.com/D40965
2019-09-03 10:19:12 +10:00
Jean-Yves Avenard
de650bb217 Bug 1556489 - P2. Use ReplacementChannelConfig across HttpChannelParent and ContentChild. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D40960
2019-09-03 09:49:46 +10:00
Jean-Yves Avenard
cc07990908 Bug 1556489 - P1. Introduce ReplacementChannelConfig. r=mayhemer
This class allows to encapsulate all the information required in order to create a new HttpChannel object following a redirect.

Differential Revision: https://phabricator.services.mozilla.com/D40959
2019-09-03 09:47:17 +10:00
Dorel Luca
0350d05627 Merge mozilla-inbound to mozilla-central. a=merge 2019-09-03 00:38:02 +03:00
Martin Stransky
85351067cf Bug 1548475 - [Wayland] Disable Flash on Wayland backend, r=glandium
Reviewers: jmathies

Reviewed By: jmathies

Bug #: 1548475

Differential Revision: https://phabricator.services.mozilla.com/D30020

--HG--
extra : rebase_source : 8ad63589add41a921bec2834aa82bdabb039fcda
2019-09-02 19:05:45 +03:00
Eric Rahm
b42b1702fc Bug 1577934 - Remove using namespace std from dom/media audio tests r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D44290

--HG--
extra : moz-landing-system : lando
2019-09-01 06:47:26 +00:00
Eric Rahm
74b57d4f28 Bug 1577932 - Remove using namespace std from dom/media r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D44289

--HG--
extra : moz-landing-system : lando
2019-09-02 12:40:00 +00:00
Sebastian Streich
6a4c76882f Bug 1505412 - Skip CSP-Nonce check for CSP-Ro+Redirected Channels r=ckerschb
***
- Another test setup

Differential Revision: https://phabricator.services.mozilla.com/D36916

--HG--
extra : moz-landing-system : lando
2019-09-02 14:49:27 +00:00
Alphan Chen
9fceaaa7ff Bug 1549975 - Implement SessionStorageListener for contentSessionStore in C++ r=peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D36493

--HG--
extra : moz-landing-system : lando
2019-08-27 14:47:27 +00:00
Andreas Pehrson
a83d028749 Bug 1577537 - Exit MediaStreamGraphImpl::CollectReports early when there are no streams. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D44369

--HG--
extra : moz-landing-system : lando
2019-09-02 14:58:03 +00:00
Andreas Pehrson
48222ef21a Bug 1577537 - Catch AppendMessage calls that could be too late. r=karlt
If all streams and all ports have been destroyed, there's no guarantee that the
graph is still alive. By forbidding AppendMessage calls after this point, we can
catch bugs with the offending callsite still being in the stack.

Differential Revision: https://phabricator.services.mozilla.com/D44223

--HG--
extra : moz-landing-system : lando
2019-09-02 14:57:47 +00:00
Bogdan Tara
19972acbe5 Backed out changeset 55f62128b50b (bug 1577425) for bustages complaining about nsPlainTextSerializer.h CLOSED TREE 2019-09-02 18:23:39 +03:00
Andreas Pehrson
4c6d307f1c Bug 1576836 - Let audio elements end when a MediaStream becomes inaudible. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D43629

--HG--
extra : moz-landing-system : lando
2019-09-02 13:53:50 +00:00
Mirko Brodesser
270c9537a7 Bug 1577425: add nsPlainTextSerializer::OutputManager. r=hsivonen
In order to encapsulate the output together with `mAtFirstColumn`.

Differential Revision: https://phabricator.services.mozilla.com/D43926

--HG--
extra : moz-landing-system : lando
2019-08-29 09:43:34 +00:00
Csoregi Natalia
a829e6912f Backed out 2 changesets (bug 1576836) for media failures on DOMMediaStream.cpp. CLOSED TREE
Backed out changeset 6c0f218a2988 (bug 1576836)
Backed out changeset 481ab3a1f913 (bug 1576836)
2019-09-02 16:30:05 +03:00
Csoregi Natalia
453e825117 Backed out 2 changesets (bug 1577537) for failures on MediaStreamGraph.cpp. CLOSED TREE
Backed out changeset 977ca44c928d (bug 1577537)
Backed out changeset 4aa6364cc6e8 (bug 1577537)
2019-09-02 16:15:14 +03:00
Paul Adenot
b3f91d148e Bug 1576656 - Only allow setting an AudioBuffer as convolution impulse if it has the same sample-rate than the associated AudioContext. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D43477

--HG--
extra : moz-landing-system : lando
2019-09-02 13:06:29 +00:00
Paul Adenot
f766c2a6d2 Bug 1572878 - Compute the reverb on the main thread. r=karlt
This is necessary to keep the invariant that once the setter returns, the reverb
is ready to process.

Differential Revision: https://phabricator.services.mozilla.com/D43476

--HG--
extra : moz-landing-system : lando
2019-09-02 12:58:51 +00:00
Paul Adenot
d8326c0e70 Bug 1572878 - Add a new method on AudioNodeStream, to be able to set a Reverb object on a ConvolverNode, from the main thread, using a ControlMessage. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D42900

--HG--
extra : moz-landing-system : lando
2019-09-02 12:58:40 +00:00
Andreas Pehrson
a6a88ad56e Bug 1577537 - Exit MediaStreamGraphImpl::CollectReports early when there are no streams. r=padenot
Depends on D44223

Differential Revision: https://phabricator.services.mozilla.com/D44369

--HG--
extra : moz-landing-system : lando
2019-09-02 12:41:22 +00:00
Andreas Pehrson
2e9d409e27 Bug 1577537 - Catch AppendMessage calls that could be too late. r=karlt
If all streams and all ports have been destroyed, there's no guarantee that the
graph is still alive. By forbidding AppendMessage calls after this point, we can
catch bugs with the offending callsite still being in the stack.

Differential Revision: https://phabricator.services.mozilla.com/D44223

--HG--
extra : moz-landing-system : lando
2019-09-02 12:39:12 +00:00
Andreas Pehrson
df0968cae9 Bug 1576836 - Let audio elements end when a MediaStream becomes inaudible. r=jib
Depends on D43628

Differential Revision: https://phabricator.services.mozilla.com/D43629

--HG--
extra : moz-landing-system : lando
2019-08-31 00:13:42 +00:00
Mark Banner
709c7ccf0c Bug 1577746 - Automatically enable more ESLint rules for dom/. r=baku
This enables:
- mozilla/no-useless-parameters
- mozilla/no-useless-run-test
- no-extra-boolean-cast
- no-unneeded-ternary

Depends on D44150

Differential Revision: https://phabricator.services.mozilla.com/D44151

--HG--
extra : moz-landing-system : lando
2019-09-02 11:23:26 +00:00
Mark Banner
acd70816c6 Bug 1577746 - Enable ESLint rule dot-notation for dom/. r=baku
Depends on D44149

Differential Revision: https://phabricator.services.mozilla.com/D44150

--HG--
extra : moz-landing-system : lando
2019-09-02 11:23:05 +00:00
Mark Banner
351d147e2f Bug 1577746 - Enable ESLint rule object-shorthand for dom/. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44149

--HG--
extra : moz-landing-system : lando
2019-09-02 11:22:27 +00:00
Emilio Cobos Álvarez
c25009c80b Bug 1577721 - Unify attribute cloning between XUL / HTML and everything else. r=bzbarsky
This contains an (intentional) behavior change, which is that we always copy
(i.e.  don't reparse) style attributes, even across documents.

XUL and HTML already had this behavior. This makes stuff like SVG and MathML
consistent with that.



Depends on D44128

Differential Revision: https://phabricator.services.mozilla.com/D44129

--HG--
extra : moz-landing-system : lando
2019-09-02 10:43:52 +00:00
Emilio Cobos Álvarez
58d9be367b Bug 1577721 - Use AddListenerFor in nsXULElement::AfterSetAttr. r=bzbarsky
The attribute is definitely set in AfterSetAttr...

Differential Revision: https://phabricator.services.mozilla.com/D44128

--HG--
extra : moz-landing-system : lando
2019-09-02 10:43:43 +00:00
Edgar Chen
07c5d9bb1b Bug 1298509 - Notify identifier map entries if they get removed via DestroyElementMaps; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D43154

--HG--
extra : moz-landing-system : lando
2019-08-30 11:52:32 +00:00
Kershaw Chang
07b1d8bc29 Bug 1576183 - Don't access worker promise if already shutdown r=baku
The reason of the assertion failure is that WorkerFetchResolver::Shutdown is already called, but we still call WorkerRun from WorkerFetchResponseEndRunnable::Cancel [1].
This patch adds a flag mIsShutdown to avoid doing WorkerRun if mIsShutdown is true.


[1] https://searchfox.org/mozilla-central/rev/325c1a707819602feff736f129cb36055ba6d94f/dom/fetch/Fetch.cpp#733

Differential Revision: https://phabricator.services.mozilla.com/D43777

--HG--
extra : moz-landing-system : lando
2019-08-28 20:21:50 +00:00
Yaron Tausky
4130823e2d No bug - Refactor IDBObjectStore::AppendIndexUpdateInfo() r=sg,ttung
In the interest of cleaning up as you go, this commit reduces code
duplication by factoring out repeated code into a separate function
and calling it instead. It also removes an unused parameter and
propagating this change to all callers.

Differential Revision: https://phabricator.services.mozilla.com/D41549

--HG--
extra : moz-landing-system : lando
2019-09-02 07:25:11 +00:00
Sylvestre Ledru
a3c3a55924 Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in dom/vr/ r=kip
Depends on D43781

Differential Revision: https://phabricator.services.mozilla.com/D43782

--HG--
extra : moz-landing-system : lando
2019-08-30 21:55:18 +00:00
Dorel Luca
e8f334670d Merge mozilla-inbound to mozilla-central. a=merge 2019-08-31 12:47:56 +03:00
Makoto Kato
6aaa810233 Bug 1577685 - Move some utility functions from IMEStateManager to widget. r=masayuki
I would like to log `IMEState` and `InputContextAction`in widget. But this
utilities are in `IMEStateManager`, so I would like to move it to widget
by using `mozilla/ToString.h`.

Differential Revision: https://phabricator.services.mozilla.com/D44103

--HG--
extra : moz-landing-system : lando
2019-08-30 05:56:58 +00:00
Brad Werth
9521ad6e9c Bug 1563163 Part 1: Make Flex::Flex gracefully handle frames without FlexContainerInfo structures. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D44283

--HG--
extra : moz-landing-system : lando
2019-08-30 23:16:09 +00:00
Andrew McCreight
e41a2280e5 Bug 1577819, part 3 - Initialize process type in RequestProcInfo. r=Ehsan
Right now, the type ends up being uninitialized if the type doesn't
match, in the GeckoProcessType_Content case.

Differential Revision: https://phabricator.services.mozilla.com/D44213

--HG--
extra : moz-landing-system : lando
2019-08-30 21:52:40 +00:00
Andrew McCreight
9fe0f5c10b Bug 1577819, part 2 - WebIDLProcType should match ProcType. r=Ehsan
ProcType gets turned into WebIDLProcType, so I assume the intention is
that they are identical. I changed the definition of WebIDLProcType to
match ProcType, and added a static assert to check that they have the
same number of cases.

I also changed the coercion from a static_cast<> to an explicit switch
statement so that it will degrade more gracefully if, say, the enums
get reordered, or one enum gets a case added and removed at the same
time.

Differential Revision: https://phabricator.services.mozilla.com/D44212

--HG--
extra : moz-landing-system : lando
2019-08-30 21:55:42 +00:00
Andrew McCreight
d8dc15b323 Bug 1577819, part 1 - Rename mozilla::dom::ProcType to mozilla::dom::WebIDLProcType. r=Ehsan
There is also a mozilla::ProcType, which makes things
confusing. dom::ProcType seems to be used only for passing values to
JS via WebIDL, so I put WebIDL in the name.

Differential Revision: https://phabricator.services.mozilla.com/D44211

--HG--
extra : moz-landing-system : lando
2019-08-30 21:52:36 +00:00
Brad Werth
885d6ecdc2 Bug 1572840 Part 4: Change nsGlobalWindowOuter::GetRDMDeviceSize to divide out full zoom levels. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D43716

--HG--
extra : moz-landing-system : lando
2019-08-30 18:45:29 +00:00
Bob Owen
2bee21f74c Bug 1575838: Check that we can create a similar DrawTarget first in canvas Adjusted targets. r=mattwoodrow
This also fixes DrawTargetSkia::CanCreateSimilarDrawTarget because currently
if only one of the height or width is negative then it doesn't get caught.

Differential Revision: https://phabricator.services.mozilla.com/D43075

--HG--
extra : moz-landing-system : lando
2019-08-30 17:14:44 +00:00
Paul Bone
5e8f344e45 Bug 1577194 - Skip the postMessage tests for fission r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D44092

--HG--
extra : moz-landing-system : lando
2019-08-30 16:27:36 +00:00
Ehsan Akhgari
625509f19c Bug 1399803 - Consider all IPv4 loopback addresses as secure context; r=bzbarsky,dragana
Differential Revision: https://phabricator.services.mozilla.com/D43633

--HG--
extra : moz-landing-system : lando
2019-08-30 07:57:34 +00:00
Andreas Pehrson
6d0734ab82 Bug 1577734 - Don't unset mGraphTimeOffset in MediaStreamRenderer. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D44158

--HG--
extra : moz-landing-system : lando
2019-08-30 14:46:44 +00:00
Emilio Cobos Álvarez
964d721a80 Bug 1577191 - Crashtest.
Differential Revision: https://phabricator.services.mozilla.com/D44155

--HG--
extra : moz-landing-system : lando
2019-08-30 14:08:27 +00:00
Andreas Pehrson
a695bb9ded Bug 1576938 - Make MediaInputPort::Init work on an already-disconnected port. r=karlt
Depends on D44020

Differential Revision: https://phabricator.services.mozilla.com/D44021

--HG--
extra : moz-landing-system : lando
2019-08-29 23:45:02 +00:00
Andreas Pehrson
52abe196ee Bug 1576938 - Allow a live MediaStreamTrack to be created with a destroyed input stream. r=karlt
This is a valid use case when cloning a MediaStreamTrack, if the source track of
the clone has had its input stream destroyed out-of-band and that change hasn't
been asynchronously communicated to the source track yet, i.e., it's still live.

Depends on D44019

Differential Revision: https://phabricator.services.mozilla.com/D44020

--HG--
extra : moz-landing-system : lando
2019-08-29 23:45:04 +00:00
Andreas Pehrson
e571b688f3 Bug 1576938 - Add crashtest. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D44019

--HG--
extra : moz-landing-system : lando
2019-08-29 23:26:37 +00:00
Andreas Pehrson
3383369e5f Bug 1577495 - Use a single SharedDummyStream per HTMLMediaElement. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D43982

--HG--
extra : moz-landing-system : lando
2019-08-29 23:11:19 +00:00
Sebastian Hengst
6c326548a4 Bug 1577363 - Set dom/security/test/general/mochitest.ini as passing with fission. r=Ehsan
It got set as failing in bug 1576814 but passes after bug 1576316 added back fission-incompatible code.

Differential Revision: https://phabricator.services.mozilla.com/D44113

--HG--
extra : moz-landing-system : lando
2019-08-30 13:52:04 +00:00