Граф коммитов

83344 Коммитов

Автор SHA1 Сообщение Дата
Zibi Braniecki 28c31b907a Bug 1548798 - Switch SequenceRooter, RecordRooter and RootedUnion to use RootedContext. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D29810

--HG--
extra : moz-landing-system : lando
2019-05-03 16:07:21 +00:00
Dorel Luca edcc375f36 Backed out 2 changesets (bug 1539147) for Build bustage in builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/dom/WindowGlobalActor.h. CLOSED TREE
Backed out changeset 366f29cc8ce7 (bug 1539147)
Backed out changeset 5fa4ae41da87 (bug 1539147)
2019-05-03 18:55:51 +03:00
Dorel Luca 926056ac66 Backed out changeset beae0db3529d (bug 1531910) for WPT failures in webrtc/RTCPeerConnection-createDataChannel.html 2019-05-03 18:37:07 +03:00
John Dai 1050f322ac Bug 1539147 - Part 2: Refactor WindowGlobalParent and WindowGlobalChild; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D29427

--HG--
extra : moz-landing-system : lando
2019-05-03 15:31:04 +00:00
John Dai cc389b0887 Bug 1539147 - Part 1: Remove unused function; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D29426

--HG--
extra : moz-landing-system : lando
2019-05-03 15:30:57 +00:00
Boris Zbarsky 6430c24e0a Bug 1548625 part 2. Get rid of some ExposeObjectToActiveJS calls in DOM code. r=mccr8,jonco
The call in VRFrameData::LazyCreateMatrix is not needed because
aRetval.set(aArray) ends up calling into Heap::get() which does a read barrier
and exposes.

The call in nsXULPrototypeScript::Compile is not needed because initializing
the AutoJSAPI will guarantee that the global of the Realm it enters, which is
what we're examining here, will be exposed.

The call in Promise's CreateNativeHandlerFunction is not needed because the
object being passed in was always just-created into a stack Rooted.

The call in MIDIMessageEvent::GetData is not needed because it's always working
with a just-created object.  Also, mData is a Heap, so there will be a read
barrier anyway before anyone gets at the value.

The call in PrototypeDocumentContentSink::ExecuteScript is not needed because
the AutoEntryScript will guarantee that the global of the Realm it enters is
exposed.  And the JSAutoRealm is not needed either, because we're in that Realm
already.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 10:09:11 +00:00
Boris Zbarsky 6f29e8d383 Bug 1548625 part 1. Get rid of some ExposeObjectToActiveJS calls in nsGlobalWindowOuter. r=mccr8,jonco
We store newInnerGlobal in a Rooted, so as long as we expose on all codepaths
that assign to that variable (which with this patch we do, typically via
GetWrapper() calls), there's no need to expose explicitly.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 10:08:20 +00:00
Boris Zbarsky e6c83d06e3 Bug 1548613. Get rid of FastGetGlobalJSObject. r=mccr8,jonco
Marking GetGlobalJSObject and GetGlobalJSObjectPreserveColor final and inline
on inner/outer windows allows compilers to de-virtualize and inline them, which
makes them just as fast as calling FastGetGlobalJSObject is now (in the case of
GetGlobalJSObjectPreserveColor; GetGlobalJSObject has to do the gray-unmarking,
which is a bit more work).

In WindowDestroyedEvent::Run we want to switch to GetGlobalJSObject(), because
we want to root the object and hence should unmark gray.

In nsGlobalWindowInner::RunTimeoutHandler we likewise want to unmark gray.  The
AutoEntryScript constructor likely did that already, but it's not that
expensive when it doesn't need to do any work.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 10:08:07 +00:00
Boris Zbarsky 517a6ebdd7 Bug 1547923 part 6. Make nsIGlobalObject::GetGlobalJSObject always expose to active JS. r=mccr8
See callsite audit in https://bugzilla.mozilla.org/attachment.cgi?id=9061976
for details on why the remaining GetGlobalJSObject callers should switch to the
"always expose" behavior.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 21:36:15 +00:00
Boris Zbarsky 356eb6dfd9 Bug 1547923 part 5. Start using nsIGlobalObject::GetGlobalJSObjectPreserveColor where possible. r=mccr8,jonco
Differential Revision: https://phabricator.services.mozilla.com/D29706

--HG--
extra : moz-landing-system : lando
2019-05-03 15:15:31 +00:00
Boris Zbarsky ff72e84ac1 Bug 1547923 part 4. Add nsIGlobalObject::HasJSGlobal(). r=mccr8
Consumers that just care about this boolean state should use this instead of
getting the JSObject* directly.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 21:32:17 +00:00
Boris Zbarsky 5c1d789bfa Bug 1547923 part 3. Add nsIGlobalObject::GetGlobalJSObjectPreserveColor(). r=mccr8
This can be used in things like assertions or some other rare circumstances
where not exposing the object to active JS is OK.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 21:23:35 +00:00
Boris Zbarsky 1f3596354d Bug 1547923 part 2. Remove Promise::GlobalJSObject. r=mccr8
Promise::Compartment is unused.

The callers that want to call AutoJSAPI::Init can pass it an nsIGlobalObject,
which is actually _more_ efficient, since passing a JSObject just gets an
nsIGlobalObject from it and passes that.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 18:38:04 +00:00
Boris Zbarsky 248fcf067d Bug 1547923 part 1. Remove unused callers of GetGlobalJSObject. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D29702

--HG--
extra : moz-landing-system : lando
2019-05-02 18:37:52 +00:00
Bryce Van Dyk e6ea35d315 Bug 1533211 - Remove assertion for if MP4 sample description index is invalid. r=jya
It's possible for a malformed mp4 to contain invalid sample description index in
fragments, that do not reference any sample description entries found in the
header. E.g. the header may contain 2 sample description entries (which should
be indexed with indices 1 and 2), but for a fragment to contain an index to 4.
Instead of asserting in this case we should gracefully fail.

Bug 1547328 plans to add logging for this case, so we have a means to still
detect failures here from bad files.

Depends on D29733

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

--HG--
extra : moz-landing-system : lando
2019-05-03 00:38:10 +00:00
Bryce Van Dyk 910dd0ad38 Bug 1533211 - Add crashtest for MP4 with a bad sample description index. r=jya
Add an mp4 with a bad sample description index to crashtests. When samples in a
fragment are encountered, they should reference a sample description entry found
in the mp4 header. However, it's possible that the index contained in the
fragment may refer to an entry that doesn't exist in the header, as in this
file.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 00:38:28 +00:00
Michael Froman dbe06dee04 Bug 1548686 - only add RemoteDecoderModule in CreatePDMs if e10s. r=jya
This can cause 1proc tests to fail because no decoder ends up supporting
a format.  The particular case was enabling Vorbis decoding on RDD.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 00:35:15 +00:00
Michael Froman 9b57c4ac82 Bug 1548113 - pass mEOS from MediaRawData to remote decoder. r=jya
Lack of mEOS for decoding Vorbis on RDD was causing a mochitest failure
with file spacestorm-1000Hz-100ms.ogg in dom/media/test/test_playback.html.
The symptom was an incorrect frame count here[1].

[1] https://searchfox.org/mozilla-central/rev/b59a99943de4dd314bae4e44ab43ce7687ccbbec/dom/media/platforms/agnostic/VorbisDecoder.cpp#178

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

--HG--
extra : moz-landing-system : lando
2019-05-03 00:36:19 +00:00
Bryce Van Dyk db3021c25c Bug 1533215 - Remove assert that can be triggered by malformed MP4. r=jya
The assert removed here can be triggered by malformed mp4s that lack certain
crypto info (the sinf box), but that still indicate samples are encrypted via
sample description entries.

I plan to follow up the removal here by adding logs so we have some way to
detect this case. This will be done as part of bug 1547328.

Depends on D29692

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

--HG--
extra : moz-landing-system : lando
2019-05-03 00:48:45 +00:00
Bryce Van Dyk be7276c15c Bug 1533215 - Add crashtest for MP4 with encrypted track with bad sinf. r=jya
Add an mp4 with a mangled tenc box to the crashtests. This file has been fuzzed
and appears to have had the tenc box for its second track changed to a '.enc'
box, which means it cannot be parsed. The tenc box is contained in the sinf box,
so this will bust the sinf parse. We should tolerate such bad files and not
assert and/or crash.

Driveby add a comment to another line in crashtests list to make it clear the
bug the file originally relates to.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 00:49:13 +00:00
Nika Layzell cb46ce1db3 Bug 1546806 - Bump requestLongerTimeout value, r=jdai
Differential Revision: https://phabricator.services.mozilla.com/D29776

--HG--
extra : moz-landing-system : lando
2019-05-03 09:07:25 +00:00
Byron Campen [:bwc] 17a80eda9c Bug 1531910: Re-enable a test-case, and check protocol length based on UTF-8 encoding. r=jib
Depends on D28252

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

--HG--
extra : moz-landing-system : lando
2019-05-02 18:27:53 +00:00
Dorel Luca 1b163e4dfb Merge mozilla-central to autoland. CLOSED TREE 2019-05-03 16:09:46 +03:00
Dorel Luca 38b93d753b Merge mozilla-inbound to mozilla-central. a=merge 2019-05-03 16:01:03 +03:00
Gijs Kruitbosch c1c14ab7ad Bug 1539759 - improve DTD entity handling, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D27904

--HG--
extra : moz-landing-system : lando
2019-05-03 09:13:58 +00:00
Daniel Varga bf77e2d7ed Backed out 7 changesets (bug 1392408) for mochitest failures at test_xhr_withCredentials.html and xpcshell failures at test_startup_(no)session_async.js
Backed out changeset 05656abf3e6c (bug 1392408)
Backed out changeset ac9c08f90cd0 (bug 1392408)
Backed out changeset 855b8dd227f9 (bug 1392408)
Backed out changeset 9c3b9f800a0c (bug 1392408)
Backed out changeset 2a64ecfab240 (bug 1392408)
Backed out changeset b765eaf69bcb (bug 1392408)
Backed out changeset 337d93c03c2e (bug 1392408)
2019-05-03 11:56:25 +03:00
Kershaw Chang 6bd2b36d88 Bug 1542593 - Don't access gNeckoChild if not on main thread r=jdm
gNeckoChild is only accessed on main thread, so we should use NS_IsMainThread to see whether we should access gNeckoChild or not.
This patch also makes UDPSocketChild::Bind return NS_ERROR_NOT_AVAILABLE when mBackgroundManager is null.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 17:29:46 +00:00
Julien Cristau cd18b00642 Bug 1548513 - fix bustage in ResizeObserver with diagnostic asserts disabled. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D29677

--HG--
extra : moz-landing-system : lando
2019-05-03 05:38:00 +00:00
Gurzau Raul bf5404331b Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-05-03 07:22:56 +03:00
Gurzau Raul b4e790d05f Merge inbound to mozilla-central. a=merge 2019-05-03 07:16:59 +03:00
Myk Melez 926c25f9a4 Bug 1547877 - enable configuration of new Notification Store implementation r=mossop,lina
Differential Revision: https://phabricator.services.mozilla.com/D29305

--HG--
rename : dom/notification/NotificationDB.jsm => dom/notification/new/NotificationDB.jsm
rename : dom/notification/NotificationDB.jsm => dom/notification/old/NotificationDB.jsm
extra : moz-landing-system : lando
2019-05-02 23:02:13 +00:00
Myk Melez 1b3f6d1faf Bug 1547877 - enable configuration of new XULStore implementation r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D29304

--HG--
rename : toolkit/components/xulstore/XULStore.jsm => toolkit/components/xulstore/new/XULStore.jsm
extra : moz-landing-system : lando
2019-05-02 23:01:57 +00:00
Gurzau Raul 0068b9927d Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-05-03 01:17:27 +03:00
Gurzau Raul 39cabb27e2 Merge inbound to mozilla-central. a=merge 2019-05-03 01:02:21 +03:00
Ehsan Akhgari 782c6b7440 Bug 1548432 - Part 2: Ignore cookie name-value-pair strings without a "=" character; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29619

--HG--
extra : moz-landing-system : lando
2019-05-02 17:12:55 +00:00
Brindusan Cristian 05b6a8de1e Backed out 6 changesets (bug 1392408) for build bustages at nsContentPolicy.cpp and nsFrameLoaderOwner.cpp. CLOSED TREE
Backed out changeset a32ab60deb60 (bug 1392408)
Backed out changeset 69cbc0afb1f1 (bug 1392408)
Backed out changeset cd9081aac4bf (bug 1392408)
Backed out changeset d88d5959f4a6 (bug 1392408)
Backed out changeset 01fd757e335b (bug 1392408)
Backed out changeset 872645a5122c (bug 1392408)
2019-05-02 19:57:25 +03:00
Bogdan Tara 386d23bfe7 Backed out 4 changesets (bug 1320404) for test_permmanager_load_invalid_entries.js failures
Backed out changeset 7c2f4e64d38e (bug 1320404)
Backed out changeset a7e7c0251179 (bug 1320404)
Backed out changeset dd741b25a244 (bug 1320404)
Backed out changeset de9073c57d20 (bug 1320404)
2019-05-03 06:12:25 +03:00
Chris Pearce fb8bc549b9 Bug 1540573 - p7. Modify CSP tests to use preload=2 on (emulated) cellular connections. r=jya
The Content Security Policy tests were handling the smaller android preload
values that were #defined on Android by setting media.preload.default=2.  Now
that we're detecting whether we're on cellular or not, and the android
emulators that our tests run on emulate a cellular connection, just setting
media.preload.default is no longer enough.

So set media.preload.default.cellular=2 in the CSP mochitests instead of
media.preload.default, to make the CSP mochitests pass in the Android
emulators.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 02:45:06 +00:00
Chris Pearce a3f9372fa2 Bug 1540573 - P6. Use frugal preloading of media data when on cellular, otherwise aggressive. r=jya
We're allowed to take some liberties as to what the default value and behaviour
we assume for the 'preload' attribute on HTMLMediaElement by the spec. On
desktop we assumed preload="metadata", while on mobile we assumed the default
of preload="none" to save data. On mobile we also assumed that preload="auto"
meant preload="metadata".

I think it makes sense to instead of always assuming that data on Android is
always expensive, we can instead detect if we're running on a cellular connection,
and preload frugally then, otherwise aggressively.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 02:44:49 +00:00
Chris Pearce c957fbd2ef Bug 1540573 - P5. Only "always throttle" media download to the readahead on cellular connections. r=jya
Normally when downloading media data we throttle the download only if we're
ahead of the read cursor more than the "readahead limit", and if we estimate
that the connection is fast enough that we'll be able to download at a rate
fast enough to playback in real time if we resume it later.

On mobile we additionally override this so that we always throttle the download
once we're ahead of the read cursor by the readahead limit. This is to save
data.  I think we can relax this to only do this override if we're on a
cellular connection; if we're on WiFi we can assume data is cheap.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 02:44:31 +00:00
Chris Pearce c13f163bd6 Bug 1540573 - P4. Use larger MediaCache sizes when on cellular connection. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D26233

--HG--
extra : moz-landing-system : lando
2019-05-03 02:44:05 +00:00
Chris Pearce 693f25ad50 Bug 1540573 - P3. Expose network link type on ContentChild for use in content process. r=snorp
In GeckoView the nsINetworkLinkService doesn't work in the content process, as
we don't seem to have an AndroidBridge there, so just maintain the network
connection type on the ContentChild.

(I had considered keeping this on the NeckoChild, but the creation of that is
initiated from the content process side, and there's not an easy and clean way
to have the parent process send us the connection type after construction of
the NeckoParent, other than have the NeckoChild request it either
synchronously, or doing it async and hoping it's not asked for the value before
the response comes in.)

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

--HG--
extra : moz-landing-system : lando
2019-05-03 02:43:47 +00:00
Michael Froman 8d9ae81a3d Bug 1539030 - (redux) don't attempt RDD launch unless needed. r=jya
Detect content process that already has connection to the RDD process
and don't attempt to relaunch or needlessly call
RDDProcessManager::CreateContentBridge.  Calling CreateContentBridge
unnecessarily causes churn by recreating RemoteDecoderManagerParents.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 21:08:58 +00:00
Perry Jiang cf811f1da6 Bug 1535699 - Propagate redirect mode across cross-process redirects. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D29719

--HG--
extra : moz-landing-system : lando
2019-05-02 20:46:34 +00:00
Gurzau Raul e54b1b421e Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-05-03 01:19:30 +03:00
Thomas Nguyen b0bfbd85aa Bug 1532318 - Part 2 : update changes of nsIHttpChannel in codebase r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D22786

--HG--
extra : moz-landing-system : lando
2019-05-02 12:33:55 +00:00
Thomas Nguyen 23e61a2595 Bug 1532318 - part 1: use ReferrerInfo class in nsIHttpChannel instead of referrer and referrer policy r=valentin,ckerschb,michal
Differential Revision: https://phabricator.services.mozilla.com/D22783

--HG--
extra : moz-landing-system : lando
2019-05-02 12:34:52 +00:00
Kershaw Chang 3aad5c69c2 Bug 1541114 - Check mIPCOpen before sending messages r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D27869

--HG--
extra : moz-landing-system : lando
2019-05-02 12:00:57 +00:00
Jonas Allmann 7fa6018a95 Bug 1547713 - Remove chrometask_chromescript from eval()-whitelist, r=ckerschb
Flip pref to allow the use of eval() in this purely test-related case.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 08:58:32 +00:00
Valentin Millet d934ec2ff8 Bug 1530178 - copyFromChannel/copyToChannel until end of buffer when destination/source is longer r=padenot,karlt
than available space, as clarified in https://github.com/WebAudio/web-audio-api/issues/1004

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

--HG--
extra : moz-landing-system : lando
2019-05-02 09:24:57 +00:00