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

83136 Коммитов

Автор SHA1 Сообщение Дата
Razvan Maries a85880b516 Merge mozilla-inbound to mozilla-central a=merge 2019-04-28 00:39:52 +03:00
Brindusan Cristian 1cd3709f4c Backed out changeset f7c391670061 (bug 1440537) for mochitest failures at test_swapFrameLoaders.xul. 2019-04-27 15:23:16 +03:00
Emilio Cobos Álvarez 7f4d653ea8 Bug 1440537 - Don't propagate flushes across docgroup boundaries. r=bzbarsky
We don't need to flush layout in the parent document if the parent and child
documents can't observe each other.

This will also match our behavior in a Fission world.

I'm not attached to the name of the function, better ideas welcome.

Differential Revision: https://phabricator.services.mozilla.com/D28217
2019-04-27 12:42:12 +02:00
Emilio Cobos Álvarez bcd4ae91c9 Bug 1440537 - Fix a cross-origin navigation test to navigate reliably. r=bzbarsky
This subtest (of test_iframe_sandbox_navigation.html) starts intermittently
failing with my first patch of this bug. It relied on the pres-context being
created when sendMouseEvent is called in order to navigate away (we only
navigate away by clicking a link if there's a link handler).

sendMouseEvent calls getBoundingClientRect() which used to do this. It no longer
does though.

I could make sendMouseEvent do that automatically using SpecialPowers or such,
or from the DOMWindowUtils code, but I think I'd prefer not to do that. This is
the only test that wasn't trivially fixable, and this awkwardness can be removed
when bug 1218456 is fixed.

Differential Revision: https://phabricator.services.mozilla.com/D28910
2019-04-27 12:40:32 +02:00
Narcis Beleuzu 3438c82878 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-27 12:51:05 +03:00
Narcis Beleuzu 1583fed185 Merge inbound to mozilla-central. a=merge 2019-04-27 12:48:24 +03:00
Alastor Wu 31a6a91d20 Bug 1540748 - part2 : add warning for negative adjusted time. r=jolin
As the purpose of adjusting time is to make the start of the playback to align to zero, so the result should not be negative.

However, we can't always ensure the demuxed start time is correct, the decoded first frame sample time might be different with the time demuxer provides.

Even if we try to update the start time when we get the first decoded sample, there is still a problem because a decoder might return samples with different order, which means the first frame the decoder returns is probably not a real first frame.

Therefore, using warning to help us knows how many this situaion would be.

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

--HG--
extra : moz-landing-system : lando
2019-04-26 22:30:06 +00:00
violet 17083b6e11 Bug 1547209 - Compute transform matrix directly in nsSVGUtils::GetTransformMatrixInUserSpace r=longsonr
Since now most CSS transform related bugs are fixed, it's clear that the
purpose of nsSVGUtils::GetTransformMatrixInUserSpace() should solely be to
replace SVGElement::PrependLocalTransformsTo(eUserSpaceToParent).

After fixing Bug 972041, the only other usecase (Bug 1247218) no longer exists.

OTOH, there is a problem when the parent has a viewbox transform, in that case,
SVGElement::PrependLocalTransformsTo() doesn't include it, but
nsLayoutUtils::GetTransformToAncestor() does.

In fact, it's much easier to compute the transform matrix directly based on
the implementation of nsDisplayTransform::GetResultingTransformMatrixInternal(),
which is also the function internally called by nsLayoutUtils::GetTransformToAncestor().

In particular, we don't need to look at 3D stuff since our matrix is inherently 2D.

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

--HG--
extra : moz-landing-system : lando
2019-04-27 07:22:53 +00:00
violet 92d63fc969 Bug 972041 - getCTM should account for CSS transform r=longsonr
We use nsSVGUtils::GetTransformMatrixInUserSpace to support
CSS transform in getCTM.

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

--HG--
extra : moz-landing-system : lando
2019-04-27 08:42:51 +00:00
Alastor Wu 285ab3ee11 Bug 1540748 - part1 : Android decoder should throw an error when the decoded sample's time is smaller than the time of first demuxed sample. r=jolin
Considering that the audio sample's time is always increased, the decoded sample's time decoder returns should always be equal or larger than its demuxed time.

When the decoded sample's time is smaller than the time of first demuxed sample, that time would probably cause a problem so we should  throw an error for that.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 21:47:53 +00:00
Cosmin Sabou 283e5f665f Bug 1429049 - Disable test_webaudioNotificationStopOnNavigation.html on android 18 debug due to frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D29088

--HG--
extra : moz-landing-system : lando
2019-04-27 00:36:06 +00:00
Ehsan Akhgari 1bc926802f Bug 1547073 - Handle the case where the offscreen canvas has been disconnected from its owner global properly; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29075

--HG--
extra : moz-landing-system : lando
2019-04-27 00:11:55 +00:00
Dana Keeler c90cfeaf74 bug 1441989 - remove ContentVerifier r=baku,mayhemer
ContentVerifier has been dead code since bug 1355166 (which, incidentally, means
it has no tests). Its presence is preventing improvements to
ContentSignatureVerifier (see e.g. bug 1534600), so this patch removes it.
As a result, the nsILoadInfo attributes verifySignedContent and enforceSRI are
also unused, so this patch removes those as well.

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

--HG--
extra : moz-landing-system : lando
2019-04-26 22:21:36 +00:00
Fariskhi Vidyan 6e5ad8de80 Bug 1272409 - Part 4: Integrate ResizeObserver with Document and reflow. r=dholbert,smaug
Depends on D27617

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

--HG--
extra : moz-landing-system : lando
2019-04-26 20:29:18 +00:00
Fariskhi Vidyan b2dd73fd98 Bug 1272409 - Part 3: Add ResizeObserverController. r=dholbert,smaug
Use ResizeObserverController to schedule the observers and manage them.
Document will hold this controller in the later patch.

Depends on D27616

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

--HG--
extra : moz-landing-system : lando
2019-04-26 20:29:16 +00:00
Fariskhi Vidyan b2514b847b Bug 1272409 - Part 2: Add ResizeObserver webidl and implementation. r=dholbert,smaug
This implements the first version of spec, so the webidl file doesn't
match the current spec and we will fix them in the follow-up bugs.

i.e.
1. The default observer box is content-box.
2. `ResizeObserverBoxOptions`, `ResizeObserverOptions`, and `ResizeObserverSize`
   are not included in `ResizeObserver.webidl`.
3. `ResizeObserverEntry` doesn't have `borderBoxSize` and `contentBoxSize`
   attributes.

Depends on D27615

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

--HG--
extra : moz-landing-system : lando
2019-04-26 20:29:14 +00:00
Fariskhi Vidyan 595e58baba Bug 1272409 - Part 1: Add GetNodeDepth() to nsContentUtils. r=smaug
`GetNodeDepth()` will be used in the next patch.

Depends on D27614

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

--HG--
extra : moz-landing-system : lando
2019-04-26 20:29:11 +00:00
Boris Chiou d332d1218d Bug 1272409 - Fix fuzzy unified build failed after adding new files into dom/base. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D28934

--HG--
extra : moz-landing-system : lando
2019-04-26 20:29:30 +00:00
Ryan Hunt 91e78df6e7 Bug 1532299 - Invalidate subdocument frame when we acquire layers ID for OOP-iframe. r=kats
There's a race condition after initializing an OOP-iframe between the first
paint and when we receive a layers ID for the child browser. If we paint
before getting a layers ID, then the nsDisplayRemote for the subdocument
will not reference the child browser. Then when the child browser paints,
it will never be linked in the final layer tree/display list.

This patch triggers an invalidation of the subdocument frame when we
get the layers ID for the OOP-iframe to prevent this.

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

--HG--
extra : moz-landing-system : lando
2019-04-26 18:21:01 +00:00
Cosmin Sabou 6041076346 Backed out changeset daeba572395d (bug 1541339) for xpcshell failures on test_dns_proxy_bypass. 2019-04-26 21:26:21 +03:00
Andrea Marchesini 1739e25925 Bug 1545758 - Move dom/file IPC components into mozilla::dom namespace - IPCBlobInputStream actors, r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28191

--HG--
extra : moz-landing-system : lando
2019-04-26 18:04:02 +00:00
Andrea Marchesini 7d30a9996e Bug 1545758 - Move dom/file IPC components into mozilla::dom namespace - TemporaryIPCBlob actors, r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28190

--HG--
extra : moz-landing-system : lando
2019-04-26 18:01:53 +00:00
Andrea Marchesini 69fd7c57d7 Bug 1545758 - Move dom/file IPC components into mozilla::dom namespace - PendingIPCBlob actors, r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28189

--HG--
extra : moz-landing-system : lando
2019-04-26 18:01:08 +00:00
Andrea Marchesini de9252905e Bug 1545758 - Move dom/file IPC components into mozilla::dom namespace - FileCreator actors, r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28188

--HG--
extra : moz-landing-system : lando
2019-04-26 18:00:33 +00:00
Andrea Marchesini 2f3e6d3c75 Bug 1534712 - Expose mozIIPCBlobInputStream for WebRequestUpload, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D28984

--HG--
extra : moz-landing-system : lando
2019-04-26 17:53:27 +00:00
Andrea Marchesini 35bde55efd Bug 1534712 - Port FileCreatorHelper to PBackground, r=smaug
FileCreatorHelper creates a FileBlobImpl on the main-thread and, because of
this, we end up executing I/O operations on that thread, slowing down other
components.  With this patch, FileCreatorHelper logic is moved to PBackground.

That the 'type' getter is still called on the main-thread because FileBlobImpl
uses nsIMIMEService which is a non thread-safe component.

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

--HG--
extra : moz-landing-system : lando
2019-04-26 17:53:07 +00:00
Ehsan Akhgari 72d6086fa4 Bug 1547191 - Make sure ThirdPartyUtil::GetBaseDomainFromWindow() correctly deals with nullptr arguments; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29030

--HG--
extra : moz-landing-system : lando
2019-04-26 17:47:02 +00:00
Ehsan Akhgari 31a8a7053e Bug 1547114 - Part 6: Convert network.cookie.lifetimePolicy into a static pref; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D28997

--HG--
extra : moz-landing-system : lando
2019-04-26 15:42:01 +00:00
Andrea Marchesini 1e2d43b310 Bug 1541339 - WebSocket channel should use the correct CookieSettings in workers, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D28949

--HG--
extra : moz-landing-system : lando
2019-04-26 17:44:59 +00:00
Yaron Tausky 6e39f30075 Bug 1544750 - Part 1: Refactor some IndexedDB code to use ErrorResult r=asuth
This is mostly laying the groundwork for further refactoring.

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

--HG--
extra : moz-landing-system : lando
2019-04-26 16:53:59 +00:00
Boris Zbarsky 99bd4f897d Bug 1317658 part 2. Pass enough information to bindings' GetDesiredProto to allow it to return the prototype the spec says it should. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D28518

--HG--
extra : moz-landing-system : lando
2019-04-26 15:55:59 +00:00
Boris Zbarsky 5b875fd884 Bug 1317658 part 1. Remove unnecessary isConstructing check from GetDesiredProto, now that all callers ensure that we are in fact constructing. r=edgar
Binding constructors started doing that in bug 979591.

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

--HG--
extra : moz-landing-system : lando
2019-04-24 11:28:46 +00:00
Byron Campen [:bwc] 67bd1aa6e8 Bug 1531894: Throw TypeError if both maxRetransmits and maxPacketLifeTime are set, and re-enable test case. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D28252

--HG--
extra : moz-landing-system : lando
2019-04-26 15:56:15 +00:00
Ehsan Akhgari ee308fca8a Bug 1547114 - Part 2: Read the cookie lifetime policy from nsContentUtils; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D28915

--HG--
extra : moz-landing-system : lando
2019-04-26 15:49:19 +00:00
Andreea Pavel 81b8902215 Backed out 4 changesets (bug 1547114) for multiple failures e.g. xpcshell at test_SitePermissions.js on a CLOSED TREE
Backed out changeset 4167117f548f (bug 1547114)
Backed out changeset 0a4180b074ea (bug 1547114)
Backed out changeset c92df939a4d6 (bug 1547114)
Backed out changeset fc4e5936eeae (bug 1547114)
2019-04-26 18:35:28 +03:00
Byron Campen [:bwc] fd880e95f8 Bug 1545827: Use TabId instead of PBrowserOrId, use LoadInfoArgs to avoid using the system principal on the socket process, and use PSocketProcess for the WebrtcProxyChannel when on the socket process. r=kershaw,mjf
Differential Revision: https://phabricator.services.mozilla.com/D28239

--HG--
extra : moz-landing-system : lando
2019-04-26 14:46:26 +00:00
Ehsan Akhgari 29825d4324 Bug 1547114 - Part 2: Read the cookie lifetime policy from nsContentUtils; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D28915

--HG--
extra : moz-landing-system : lando
2019-04-26 14:30:27 +00:00
Honza Bambas 5f945421d4 Bug 1493599 - Expose reason of security blocking on nsILoadInfo and add new http observer notification for failed asyncOpens, r=Honza,dragana
Differential Revision: https://phabricator.services.mozilla.com/D23150

--HG--
extra : moz-landing-system : lando
2019-04-26 10:59:41 +00:00
Razvan Maries 11e9f0fe22 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-04-26 12:54:36 +03:00
Razvan Maries 444ee13e14 Merge mozilla-inbound to mozilla-central a=merge 2019-04-26 12:46:15 +03:00
Botond Ballo d33987f123 Bug 1529892 - Extend APZTestData with free-form additional data not grouped by paint or scroll frame. r=kats,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D28773

--HG--
extra : moz-landing-system : lando
2019-04-26 05:10:44 +00:00
Jan Varga 4d4622f55f Bug 1546305 - LSNG: Add temporary support for downgrading; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D28800
2019-04-25 11:25:52 +02:00
Hsin-Yi Tsai 7356311115 Bug 1544352 - update BUG_COMPONENT for some dom/* and testing/web-platform/* files. r=overholt,jmaher
This patch updates BUG_COMPONENT for some dom/* and testing/web-platform/* files

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

--HG--
extra : moz-landing-system : lando
2019-04-25 09:14:08 +00:00
Andreas Farre 1ef5c2e851 Bug 1546454 - Don't create frameloader for partially destroyed docshell. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28818

--HG--
extra : moz-landing-system : lando
2019-04-25 16:07:39 +00:00
Sebastian Streich 8ac88db494 Bug 1444503 - Remove the IPC::Principal r=ckerschb,nika
***
Removed IPC References in PCContent
***
Removed IPC References on nsContentPermissionHelper
***
 Remove IPC Principal from PBrowser
***
Remove IPCPrincipal from the PaymentRequest
***
Remove IPCPrincipal from the PPresentation
***
Remove IPC Principal from PNecko

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

--HG--
extra : moz-landing-system : lando
2019-04-25 14:18:11 +00:00
Andreea Pavel adba763845 Bug 1538425 - disabled browser_tabswitchbetweenplugins.js on all platforms r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D28591

--HG--
extra : moz-landing-system : lando
2019-04-24 09:04:21 +00:00
Dorel Luca b82106b756 Backed out changeset 8c4a85bb16bc (bug 1531894) for WPT failures in /webrtc/RTCPeerConnection-createDataChannel.html 2019-04-26 05:24:22 +03:00
Tooru Fujisawa 56585dc81e Bug 1543843 - Add constructors to JSPropertySpec and inner structs/unions. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D27277

--HG--
extra : moz-landing-system : lando
2019-04-26 01:01:15 +00:00
Sebastian Streich a2d3e618af Bug 1546913 - Remove GetLoadInfo callsites r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D27647

--HG--
extra : moz-landing-system : lando
2019-04-25 12:16:35 +00:00
Brian Birtles 46c5c2141a Bug 1536688 - Allow animating the 'all' property from Web Animations; r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D28763

--HG--
extra : moz-landing-system : lando
2019-04-26 00:47:40 +00:00