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

83394 Коммитов

Автор SHA1 Сообщение Дата
Jan-Ivar Bruaroey a8cc07510f Bug 1547381 - Call StopTrack() in the right order. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D29924

--HG--
extra : moz-landing-system : lando
2019-05-06 09:14:38 +00:00
Ryan Hunt bb5d014363 Bug 1547812 - Add some documentation to PBrowser and PBrowserBridge. r=nika
Depends on D29251

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

--HG--
extra : moz-landing-system : lando
2019-05-06 14:47:56 +00:00
Ryan Hunt 3f70638b7c Bug 1547812 - Add dom/docs for design documents about the DOM. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D29251

--HG--
extra : moz-landing-system : lando
2019-05-03 21:51:51 +00:00
Andreea Pavel e20faa07db Bug 1519063 - disable test_bug403852.html on android not debug r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D30006

--HG--
extra : moz-landing-system : lando
2019-05-06 12:41:57 +00:00
Masayuki Nakano 41c520d31f Bug 1543315 - part 16: Mark PresShell::HandleEventWithTarget() as MOZ_CAN_RUN_SCRIPT r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D30011

--HG--
extra : moz-landing-system : lando
2019-05-06 13:15:05 +00:00
Masayuki Nakano 780b285e68 Bug 1543315 - part 15: Mark PresShell::ScrollFrameRectIntoView() as MOZ_CAN_RUN_SCRIPT r=smaug
Unfortunately, `EventChainVisitor` does not grab the `nsPresContext` with
`RefPtr` by itself.  Therefore, there is no guarantee of the lifetime without
checking the origin when its subclasses are instantiated.  This patch changes
it and subclasses to `MOZ_STACK_CLASS` since only `EventDispatcher::Dispatch()`
creates them in the stack with given `nsPresContext`.  Additionally, it's
already been marked as MOZ_CAN_RUN_SCRIPT_BOUNDARY`.  Therefore, the
`nsPresContext` instance has already been guaranteed its lifetime by the
caller.  For making this fact stronger, this patch marks their constructors
as `MOZ_CAN_RUN_SCRIPT`.  Therefore, nobody can create those instances without
guaranteeing the lifetime of `nsPresContext` and `dom::Event`.  Note that
it may look like that `mPresContext` of `EventChainPostVisitor` is not
guaranteed.  However, `EventChainPreVisitor` which gives `nsPresContext` to it
is also a stack only class.  So, it won't be deleted before
`EventChainPostVisitor` instance.

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

--HG--
extra : moz-landing-system : lando
2019-05-06 13:57:46 +00:00
Masayuki Nakano 8d503c6d14 Bug 1543315 - part 13: Mark PresShell::Paint() as MOZ_CAN_RUN_SCRIPT r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D30008

--HG--
extra : moz-landing-system : lando
2019-05-06 13:25:35 +00:00
Ryan VanderMeulen 893f1d229a Merge m-c to autoland. a=merge 2019-05-06 09:17:45 -04:00
Ryan VanderMeulen 4f044a29d2 Backed out 8 changesets (bug 1513937, bug 1546310, bug 1548788, bug 1547688, bug 1547452, bug 1540777, bug 1542669, bug 1547454) for causing bug 1549362.
Backed out changeset 8dca7df29492 (bug 1548788)
Backed out changeset 688f361e8bb6 (bug 1547688)
Backed out changeset b5d8d57838a3 (bug 1540777)
Backed out changeset d1bd31177b14 (bug 1513937)
Backed out changeset df97dfbb526a (bug 1546310)
Backed out changeset ade08d6dc361 (bug 1547454)
Backed out changeset b622431054b7 (bug 1547452)
Backed out changeset ad73e5604411 (bug 1542669)
2019-05-06 09:02:54 -04:00
Mihai Alexandru Michis e7d9a87493 Merge mozilla-inbound to mozilla-central a=merge 2019-05-06 12:49:43 +03:00
Honza Bambas 2555fb9646 Bug 1545420 - Allow extensions to set Proxy-Authorization and connection isolation key through proxy.onRequest, r=dragana,mixedpuppy+mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D29825

--HG--
extra : moz-landing-system : lando
2019-05-06 07:22:18 +00:00
Paul Bone d3857d4888 Bug 1532838 - Add a pref for the minimum nursery size r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D29815

--HG--
extra : moz-landing-system : lando
2019-05-06 03:14:22 +00:00
Paul Bone 6eabff94c7 Bug 1532838 - Use correct units in a preference name r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D29814

--HG--
extra : moz-landing-system : lando
2019-05-06 03:13:51 +00:00
Kartikaya Gupta a8a0dd9a5a Bug 1524232 - Add a mechanism for dispatching synthesized mousemove events to an OOP iframe. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D29731

--HG--
extra : moz-landing-system : lando
2019-05-06 08:12:21 +00:00
Mihai Alexandru Michis e9b76c6cce Merge mozilla-central to autoland on a CLOSED TREE 2019-05-06 12:55:43 +03:00
Sebastian Hengst 860aa7b49f Bug 1540551 - Disable window height tests failing on Windows 7 DevEdition r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D29948

--HG--
extra : moz-landing-system : lando
2019-05-06 05:42:51 +00:00
Frederik Braun 18a04317f0 Bug 1548773: Remove support for typemustmatch r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D29803

--HG--
extra : moz-landing-system : lando
2019-05-05 14:41:59 +00:00
Liang-Heng Chen 784cd8785e Bug 1544598 - Part 1: use hash to record origin telemetry; r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29357

--HG--
extra : moz-landing-system : lando
2019-05-03 15:37:14 +00:00
Coroiu Cristina 7bb82fa0dc Merge mozilla-central to autoland a=merge on a CLOSED TREE 2019-05-06 00:42:50 +03:00
Coroiu Cristina 6f634e87e9 Merge inbound to mozilla-central a=merge on a CLOSED TREE 2019-05-06 00:38:28 +03:00
Coroiu Cristina 79b11a1ca9 Merge autoland to mozilla-central a=merge on a CLOSED TREE
--HG--
extra : amend_source : 787c174982a4fc831ece91fc26fbb95e3b37210a
2019-05-05 23:04:20 +03:00
Cosmin Sabou 58c0da101a Backed out changeset 03166449953f (bug 1539759) on request from past for causing bug 1548990. CLOSED TREE 2019-05-04 11:02:30 +03:00
Nico Grunbaum 705743fb99 Bug 1528078 - Adding WebRTC device access and deprecated interface telemetry r=jib,smaug
Adding telemetry for gUM, enumerate devices, and mozRTCPeerConnection

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

--HG--
extra : moz-landing-system : lando
2019-05-03 23:50:22 +00:00
Mihai Alexandru Michis e329bc4d67 Merge mozilla central to mozilla inbound on a CLOSED TREE 2019-05-04 01:00:29 +03:00
John Dai 6678ca2e42 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 18:12:55 +00:00
John Dai b1a4a95f94 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 18:10:47 +00:00
Jan Varga 827b401e30 Bug 1513915 - Followup patch to increase requesttimeoutfactor for test_snapshotting.js; r=asuth 2019-05-03 18:10:11 +02:00
Olli Pettay e217c0e5c8 Bug 1548827, let CC to run sooner after GC, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D29864

--HG--
extra : moz-landing-system : lando
2019-05-03 18:44:14 +00:00
Byron Campen [:bwc] 622f5f795e 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-03 19:08:25 +00:00
Andreea Pavel e2388edd9f Backed out 7 changesets (bug 1540573) for causing bug 1548441
Backed out changeset dd882b8cd73e (bug 1540573)
Backed out changeset b10d2cae45f2 (bug 1540573)
Backed out changeset 270a8917377f (bug 1540573)
Backed out changeset 3db059b34e40 (bug 1540573)
Backed out changeset fe196b2dfc62 (bug 1540573)
Backed out changeset 1bde5042e507 (bug 1540573)
Backed out changeset 4ff116b9d729 (bug 1540573)
2019-05-03 20:35:27 +03:00
Andrea Marchesini 360fec5787 Bug 1542170 - Expose http channel Id to WebSocketEvent listeners, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D28865

--HG--
extra : moz-landing-system : lando
2019-05-03 17:25:44 +00:00
Andrea Marchesini d179c5015e Bug 1320404 - Remove appId from origin attributes - part 2 - NO_APP_ID UNKNOWN_APP_ID, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29354

--HG--
extra : moz-landing-system : lando
2019-05-03 17:13:47 +00:00
Andrea Marchesini f8565bf748 Bug 1320404 - Remove appId from origin attributes - part 1 - OriginAttributes and nsIPrincipal, r=Ehsan,flod
Differential Revision: https://phabricator.services.mozilla.com/D29353

--HG--
extra : moz-landing-system : lando
2019-05-03 17:13:17 +00:00
Geoff Brown 0f0beaf249 Bug 1546553 - Disable some xpcshell tests on Android x86_64; r=jmaher
These tests need to be disabled to get a green run on the Android x86_64
test platform. The failures in toolkit/components/extensions are
concerning and definitely require follow-up.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 16:50:15 +00:00
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