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

84673 Коммитов

Автор SHA1 Сообщение Дата
Jed Davis 67a30a842d Bug 1479960 - Convert MemMapSnapshot to use frozen shared memory. r=kmag
Depends on D26745

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:38 +00:00
Jed Davis 406448ffe1 Bug 1479960 - Give SharedStringMap a magic number so that all zeroes isn't a valid instance. r=kmag
There was a strange bug when converting SharedStringMap to use shared
memory: on Android, some tests would fail because a pref wasn't set or
there was something wrong with an expected error message.  The root
cause was that mapping ashmem with MAP_PRIVATE results in all zeroes
(see bug 1525803), but that was read as a valid SharedStringMap with
length 0.

To prevent any possible future issues like that, this patch adds a
nonzero magic number to the header.  It fits into padding on 64-bit and
the cost of setting and checking it should be essentially free.

Depends on D26744

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:36 +00:00
Boris Zbarsky 50150d0231 Bug 1559468 part 2. Move JS_DefineProfilingFunctions into dom::CreateGlobal. r=mccr8
Various callers either already call it or should but are forgetting to.  The exception is WorkerDebuggerGlobalScope_Binding::Wrap, but it should be OK to set up the profiling functions there too.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 23:07:40 +00:00
Cosmin Sabou 55afe30077 Merge mozilla-central to autoland. CLOSED TREE 2019-06-21 01:44:45 +03:00
arthur.iakab 7aa0acd291 Merge mozilla-central to autoland 2019-06-21 01:18:32 +03:00
Cosmin Sabou 49014f945b Merge mozilla-inbound to mozilla-central. a=merge 2019-06-21 01:03:07 +03:00
arthur.iakab 360ae4d7f5 Merge autoland to mozilla-central. a=merge 2019-06-21 00:50:23 +03:00
longsonr 160c161d5f Bug 1551030 - Merge all SVGRect classes r=dholbert 2019-06-20 07:03:54 -07:00
Jan-Ivar Bruaroey 79e118fb86 Bug 1552571: Optimize GetUserMediaWindowListener's source listener iteration and ownership. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D31687

--HG--
extra : moz-landing-system : lando
2019-06-20 16:43:21 +00:00
Ciure Andrei 72f3f971fb Backed out 15 changesets (bug 1479960, bug 1426526, bug 1534780, bug 1536697) for causing build bustages CLOSED TREE
Backed out changeset 5645e0cc3915 (bug 1479960)
Backed out changeset a7c09894c6a0 (bug 1536697)
Backed out changeset 510f03381af9 (bug 1426526)
Backed out changeset 7cf4735a088f (bug 1426526)
Backed out changeset 41080844e645 (bug 1479960)
Backed out changeset fdba3c5f8fd0 (bug 1479960)
Backed out changeset 26a8ebcb2db4 (bug 1479960)
Backed out changeset d0d383e5bae1 (bug 1479960)
Backed out changeset c418095bb7b7 (bug 1479960)
Backed out changeset 7b78b1945532 (bug 1479960)
Backed out changeset c47d47d4073d (bug 1479960)
Backed out changeset 71253b62a633 (bug 1479960)
Backed out changeset ae525f20bdbb (bug 1479960)
Backed out changeset 7fba719355d7 (bug 1534780)
Backed out changeset 771db331860a (bug 1534780)
2019-06-20 19:54:57 +03:00
Razvan Maries da14c413ef Merge autoland to mozilla-central a=merge 2019-06-20 12:45:34 +03:00
Oana Pop Rus 288befd88a Backed out changeset f79736d79ee1 (bug 1529022) for build bustages in GeckoChildProcessHost.cpp a=backout 2019-06-20 01:57:00 +03:00
Oana Pop Rus fd2aad147f Merge inbound to mozilla-central. a=merge 2019-06-20 00:40:02 +03:00
Kagami Sascha Rosylight 795d0eebcc Bug 1559874: Always create 3D DOMMatrix from 16 elements r=bzbarsky
Currently Firefox creates a 2D DOMMatrix when certain values of 16 elements are zero, so this change fixes it to align with the spec.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 03:59:59 +00:00
Tarek Ziadé 2b03934b7d Bug 1529022 - Add a GeckoChildProcessHosts iterator r=jld
Adds GeckoChildProcessHost::GetAll() and use it in ChromeUtils::GetProcInfo()

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

--HG--
extra : moz-landing-system : lando
2019-06-19 06:13:50 +00:00
Byron Campen [:bwc] d8c9380ddf Bug 1550177 - Part 4: Simplify ICE gathering state change callback stuff. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D30994

--HG--
extra : moz-landing-system : lando
2019-06-19 16:55:10 +00:00
Byron Campen [:bwc] aa3e2db076 Bug 1550177 - Part 2: Remove a stack-unwind, and simplify signal handling considerably. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D30992

--HG--
extra : moz-landing-system : lando
2019-06-19 16:54:45 +00:00
Byron Campen [:bwc] 8ab44cf270 Bug 1550177 - Part 1: Remove some duplicate webidl enums. r=mjf,smaug
Differential Revision: https://phabricator.services.mozilla.com/D30991

--HG--
extra : moz-landing-system : lando
2019-06-19 16:54:38 +00:00
Kagami Sascha Rosylight 3a1f6f85f5 Bug 1558001: Use double for DOMMatrix r=bzbarsky
DOMMatrix now internally uses double instead of float. This only fixes DOMMatrix internals so we still have to work on Servo CSS Parser to pass doubles instead of floats.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 15:59:54 +00:00
Gurzau Raul ea4843bd84 Merge autoland to mozilla-central. a=merge 2019-06-19 18:49:12 +03:00
Bob Owen 2cb0d2cc85 Bug 1559437: Don't explicitly return DataSourceSurface from CanvasRenderingContext2D::GetSurfaceSnapshot. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D35152

--HG--
extra : moz-landing-system : lando
2019-06-19 12:37:40 +00:00
Gurzau Raul 376affada3 Backed out changeset 11c118fa5f2b (bug 1529022) for build bustages at GeckoChildProcessHost.cpp a=backout 2019-06-19 09:07:19 +03:00
Emilio Cobos Álvarez 6ed8680108 Bug 1559546 - Use atoms for grid line names. r=mats
The style system already atomizes all CustomIdent values, which means that we're
just wasting memory and CPU by doing string copies all over the place.

This patch fixes it. This also simplifies further changes to use as much of the
rust data structures as possible.

I had to switch from nsTHashtable to mozilla::HashTable because the former
doesn't handle well non-default-constructible structs (like NamedLine, which
now has a StyleAtom, which is not default-constructible).

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

--HG--
extra : moz-landing-system : lando
2019-06-19 05:58:11 +00:00
Bob Owen 8b9cfd092a Bug 1558009: Always return false from CanvasRenderingContext2D::EnsureTarget when mTarget == sErrorTarget. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D34922

--HG--
extra : moz-landing-system : lando
2019-06-18 22:10:47 +00:00
Jonathan Watt c327ad117f Bug 1559840. Add a pref to expose the transform getters on the Element interface. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D35208

--HG--
extra : rebase_source : 2910236db53d098fe725a3f8911668432cf02610
2019-06-17 15:51:33 -07:00
Jed Davis 68ad386a77 Bug 1479960 - Convert MemMapSnapshot to use frozen shared memory. r=kmag
Depends on D26745

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

--HG--
extra : moz-landing-system : lando
2019-06-17 02:20:05 +00:00
Jed Davis 09bf9e8d07 Bug 1479960 - Give SharedStringMap a magic number so that all zeroes isn't a valid instance. r=kmag
There was a strange bug when converting SharedStringMap to use shared
memory: on Android, some tests would fail because a pref wasn't set or
there was something wrong with an expected error message.  The root
cause was that mapping ashmem with MAP_PRIVATE results in all zeroes
(see bug 1525803), but that was read as a valid SharedStringMap with
length 0.

To prevent any possible future issues like that, this patch adds a
nonzero magic number to the header.  It fits into padding on 64-bit and
the cost of setting and checking it should be essentially free.

Depends on D26744

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

--HG--
extra : moz-landing-system : lando
2019-06-17 02:19:57 +00:00
violet cc9e80f1ff Bug 1560179 - Image should not accept eSHAPE r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D35396

--HG--
extra : moz-landing-system : lando
2019-06-20 13:14:08 +00:00
Andreas Pehrson 755d2fbfa4 Bug 1556696 - Only fail the VideoFrameConverter out-of-buffers assert if we dropped 100 frames in a row. r=dminor
Five buffers is evidently not enough to ensure we don't run out.
What we really want the assert for is that we are not leaking buffers so that
they never recycle, while also keeping memory usage down. This achieves that
by allowing for 100 frames to drop before failing the out-of-buffers assert.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 15:19:01 +00:00
Edwin Gao 8361aefc97 Bug 1555454 - migrate mochitest-media to macosx1014 and turn off permafail tests r=gbrown,jmaher
Changes:
- rebalance chunk
- turn off three tests that are nearly permafail

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

--HG--
extra : moz-landing-system : lando
2019-06-20 04:10:29 +00:00
violet 00989decc6 Bug 1325319 - Implement isPointInFill() and isPointInStroke() for SVGGeometryElement r=longsonr,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D33592

--HG--
extra : moz-landing-system : lando
2019-06-19 21:14:55 +00:00
Chris Pearce 348ddf9d3b Bug 1555946 - Remove HTMLMediaElement::mUnboundFromTree and use nsINode::IsInComposedDoc() instead. r=emilio
HTMLMediaElement::mUnboundFromTree was added in bug 1239899, and I'm pretty
sure its behaviour is intended to be the same as what IsInComposedDocument()
gives us, so we can just use that instead.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 22:37:56 +00:00
Paul Adenot 7bcb7bb6a6 Bug 1553215 - Implement the correct behaviour for MediaStreamAudioSource. r=karlt,pehrsons
It should pick and lock to the right track, regardless of if it's still in the
MediaStream.

The test fix is because we don't expose tracks until the HTMLMediaElement has
loaded loading I think.

This alignes with a couple spec changes:
- https://github.com/WebAudio/web-audio-api/issues/264
- https://github.com/WebAudio/web-audio-api/pull/1829/files

and also throws when no valid track are found in the MediaStream, either because
it's all video tracks or because it has no tracks.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 23:06:33 +00:00
Paul Adenot 266b9570eb Bug 1056706 - Reenable a couple tests on Android. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D35289

--HG--
extra : moz-landing-system : lando
2019-06-19 22:15:25 +00:00
Dorel Luca f6d5ec388c Backed out changeset 865186d0ab94 (bug 1555322) for creating leaks. CLOSED TREE 2019-06-20 02:27:36 +03:00
Oana Pop Rus 76412fd383 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-06-20 00:49:32 +03:00
Ryan Hunt 116f9c9f98 Bug 1559518 - Use LayoutDevicePixel for BrowserChild visible rect and composition size. r=kats
App units of a remote browser element in the parent process are
different from app units inside the remote content in the child
process. We should apply the appropriate conversions by exposing
the relevant data as LayoutDevicePixel.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 18:20:52 +00:00
Kershaw Chang 3e07310481 Bug 1555322 - Make sure WebSocketImpl is deleted on the right thread r=smaug
I think the root cause of the crash is that WebSocketImpl is not deleted on the target thread. When this happens, there is a race between setting WebSocket::mImpl to nullptr and accessubg mImpl.
If WebSocketImpl is always deleted on the target thread, WebSocketImpl::Disconnect should be called in ~WebSocketImpl when mDisconnectingOrDisconnected is false.
So, this patch checks the ref counter in WebSocketImpl::Release and make sure to delete WebSocketImpl on the right thread.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 17:24:23 +00:00
Tooru Fujisawa 5e4375de8d Bug 1557056 - Use extended function only for self-hosted function that needs to store canonical name in extended slot. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D34983

--HG--
extra : moz-landing-system : lando
2019-06-19 20:00:24 +00:00
Daosheng Mu 3d724ce105 Bug 1555484 - Clean DS4 GamepadTouchState when stopping touching. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D33209

--HG--
extra : moz-landing-system : lando
2019-06-19 17:30:33 +00:00
alwu c7b361e5b5 Bug 1556079 - part1 : hide cue if we can't find a good place to put it fully inside the rendering area. r=heycam
According to the spec 7.2.10.17 [1], if we have tried both direction and there is no place to put the cue inside the rendering area without overlapping with other cues or the boundary of rendering area, then we have to discard all CSS boxes, which means that we should not display this cue.

[1] https://www.w3.org/TR/webvtt1/#processing-cue-settings

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

--HG--
extra : moz-landing-system : lando
2019-06-14 00:26:54 +00:00
Emilio Cobos Álvarez 841d3eea32 Bug 1559545 - Use servo for the representation of grid template areas. r=mats
Right now we do a lot of useless string copying. In order to avoid transcoding
to utf-16 during layout, make sure to use nsCString at a few related places.

I may revisit this since we're storing other line names as atoms in some places.
So it may be better to just use atoms everywhere.

But that'd be a different patch either way.

Depends on D35116

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

--HG--
extra : moz-landing-system : lando
2019-06-18 22:29:58 +00:00
Tarek Ziadé 9f31044be3 Bug 1529022 - Add a GeckoChildProcessHosts iterator r=jld
Adds GeckoChildProcessHost::GetAll() and use it in ChromeUtils::GetProcInfo()

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

--HG--
extra : moz-landing-system : lando
2019-06-18 16:36:52 +00:00
Tom Tung b8c27feb30 Bug 1529016 - P1 - Collect unexpected file's name in the origin directories; r=asuth,chutten
Differential Revision: https://phabricator.services.mozilla.com/D34721

--HG--
extra : moz-landing-system : lando
2019-06-18 21:06:32 +00:00
Brendan Dahl ccb8b2f945 Bug 1558674 - Allow chrome privileged documents to enable/disable copy/paste. r=Ehsan,bgrins
For content HTML/XHTML copy/paste should always be enabled, but for chrome
docs we can support enabling/disabling copy/paste.

Also, restores tests to how they were before copy/paste was always enabled.

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

--HG--
extra : moz-landing-system : lando
2019-06-18 20:40:19 +00:00
Andrea Marchesini 7d8c86a22d Bug 1559370 - Use DebugOnly<> in BodyStream to make m-c happy, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D35148

--HG--
extra : moz-landing-system : lando
2019-06-16 15:11:52 +00:00
prathiksha beb8201a97 Bug 1552333 - Expose failedCertChain info from nsITransportSecurityInfo in content for about:certerror use. r=baku
Depends on D30852

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

--HG--
extra : moz-landing-system : lando
2019-06-12 00:09:39 +00:00
Jeff Gilbert 7ac9159761 Bug 1442825 - Remove ScopedGLWrapper base class. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D35138

--HG--
extra : moz-landing-system : lando
2019-06-17 06:40:27 +00:00
Emilio Cobos Álvarez db77aa9495 Bug 1555949 - Make <svg:script> run correctly in a shadow tree. r=violet
Differential Revision: https://phabricator.services.mozilla.com/D35191

--HG--
extra : moz-landing-system : lando
2019-06-17 16:02:59 +00:00
Kagami Sascha Rosylight a235dfa68b Bug 1558387: Remove DOMError constructor r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D35184

--HG--
extra : moz-landing-system : lando
2019-06-17 15:43:38 +00:00