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

89540 Коммитов

Автор SHA1 Сообщение Дата
David Parks 198fa063c2 Bug 1477756 - Initial out-of-process WebGL implementation. r=mccr8,handyman
Splits WebGLContext into ClientWebGLContext and HostWebGLContext.  The Client enables the JS-control of a WebGL context in a content procecss while the Host executes the WebGL graphics operations (via a WebGLContext that maintains much of the existing code) in the compositor process.  At this point, the cross-process behavior is disabled -- this series of patches is an incremental step toward that final goal.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 22:19:14 +00:00
Emilio Cobos Álvarez 278b36aafb Bug 1607816 - Replace mozilla::{Max, Min}Value with std::numeric_limits. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59153

--HG--
extra : moz-landing-system : lando
2020-01-08 16:30:40 +00:00
Emilio Cobos Álvarez 3f5e15cdd8 Bug 1607796 - Simplify usage of std::enable_if with std::enable_if_t. r=bzbarsky
This one is manual.

Depends on D59145

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

--HG--
extra : moz-landing-system : lando
2020-01-08 16:11:51 +00:00
Emilio Cobos Álvarez 80322da13a Bug 1607796 - Use <type_traits> in dom/bindings. r=bzbarsky
Automatic but manually checked via s/IsBaseOf</std::is_base_of</g and so on.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 16:40:12 +00:00
Brian Grinstead b96014d27c Bug 1596485 - Rename mXBLInvolved to mShadowDOMInvolved and XBLInvolved to ShadowDOMInvolved r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D59071

--HG--
extra : moz-landing-system : lando
2020-01-08 15:08:06 +00:00
Yaron Tausky 877a273a69 Bug 1603976 - Warn when getting session storage data for discarded browsing context r=dom-workers-and-storage-reviewers,sg,janv
Under some (yet) unclear conditions it's possible for a content
process to send session storage data for a browsing context that's
already been discarded. This leads to an assertion failure when
deserializing the IPC message. This commit works around this issue
by sending the browsing context's ID over IPC and issuing a warning
instead of asserting that the browsing context still exists.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 15:38:34 +00:00
Emilio Cobos Álvarez f210527c4f Bug 1607595 - Manual fixups, and remove mozilla::IsBaseOf. r=froydnj
This is manual, but hopefully trivial.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 14:52:18 +00:00
Emilio Cobos Álvarez e363a41bd4 Bug 1607595 - Remove uses of mozilla::IsBaseOf. r=froydnj
Automatically generated by:

$ rg 'IsBaseOf<' | cut -d : -f 1 | xargs sed -i 's/mozilla::IsBaseOf</std::is_base_of</g'
$ rg 'IsBaseOf<' | cut -d : -f 1 | xargs sed -i 's/IsBaseOf</std::is_base_of</g

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

--HG--
extra : moz-landing-system : lando
2020-01-08 14:52:10 +00:00
Christoph Kerschbaumer 8335b185aa Bug 1585533: Add debug statements to fix intermittent test failure on fission for test_upgrade_insecure_reporting.html. r=jkt
Differential Revision: https://phabricator.services.mozilla.com/D59099

--HG--
extra : moz-landing-system : lando
2020-01-08 13:38:56 +00:00
Daniel Varga 9991e5cc37 Bug 1581862 - Updated disable for browser_windowProxy_transplant.js on macosx when Fission is not enabled. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D59081

--HG--
extra : moz-landing-system : lando
2020-01-08 11:04:31 +00:00
Tetsuharu OHZEKI d05bf2278f Bug 1597410 - Fix uses of nsIDocShellTreeItem in mozilla::dom::Document::IsThirdPartyForFlashClassifier in dom/base/Document.cpp. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D58952

--HG--
extra : moz-landing-system : lando
2020-01-08 09:37:33 +00:00
Tetsuharu OHZEKI 955fcd53a6 Bug 1597431 - Fix uses of nsIDocShellTreeItem in nsFrameLoader::MaybeUpdatePrimaryBrowserParent in dom/base/nsFrameLoader.cpp. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D58718

--HG--
extra : moz-landing-system : lando
2020-01-08 09:41:47 +00:00
Tetsuharu OHZEKI cdd3d0d1fe Bug 1597407 - Fix uses of nsIDocShellTreeItem in mozilla::dom::Document::SetContainer in dom/base/Document.cpp. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D58907

--HG--
extra : moz-landing-system : lando
2020-01-08 09:40:28 +00:00
Valentin Gosu 16ae7bd480 Bug 1552176 - pass TRRMode into nsHTMLDNSPrefetch methods r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D49159

--HG--
extra : moz-landing-system : lando
2020-01-07 19:33:51 +00:00
Valentin Gosu c7d9b630cb Bug 1552176 - Add nsIRequest.set/getTRRMode r=dragana
* Makes it possible to selectively enable TRR for pbmode/container/window/etc

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

--HG--
extra : moz-landing-system : lando
2020-01-07 20:20:38 +00:00
Christoph Walcher 855264d3a5 Bug 1596476 - Remove nsuri_xbl static atom r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D53333

--HG--
extra : moz-landing-system : lando
2020-01-08 04:44:33 +00:00
sotaro 68439d9c26 Bug 1598998 - Fix CanvasContextType::ImageBitmap handling r=nical
Differential Revision: https://phabricator.services.mozilla.com/D56348

--HG--
extra : moz-landing-system : lando
2020-01-08 01:12:50 +00:00
Perry Jiang 044d7a6a91 Bug 1604943 - ServiceWorkerRegistration.update should capture newest worker script URL at call-time r=dom-workers-and-storage-reviewers,asuth
- Cleaned up some comments.
- Changed some const nsACString& parameter types to nsCString to accept r-value
  and l-value nsCStrings.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 03:21:27 +00:00
Brian Grinstead 52fd411ca5 Bug 1596970 - Remove reference to MOZ_XBL in test_bug375314.html r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D59031

--HG--
extra : moz-landing-system : lando
2020-01-08 03:38:06 +00:00
Matt Woodrow a59b688778 Bug 1598523 - Make DocumentChannelChild/ContentChild QI to the specific interfaces it wants, rather than assuming that only HttpChannelChild will have them. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D57890

--HG--
extra : moz-landing-system : lando
2020-01-08 01:00:39 +00:00
Matt Woodrow 87b0e83cf6 Bug 1598523 - Share code for creating a channel for a document between nsDocShell, DocumentChannelChild and ContentChild. r=kmag
Note that this also implicitly adds support for the view-source+srcdoc configuration, and setting of the BaseURI, which were both in the nsDocShell version but not the others.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 02:10:54 +00:00
alwu 04ff0260ac Bug 1554343 - always release the refptr of media cache on main thread. r=bryce
It's possible that `self` is the last pointer holding the media cache, so we have to ensure releasing `self` on main thread because media cache should always be destroyed on main thread only.

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

--HG--
extra : moz-landing-system : lando
2020-01-07 16:59:11 +00:00
Emilio Cobos Álvarez 86a70df5d7 Bug 1607006 - Remove utf-16 versions of nsCSSProps::LookupProperty* and ServoCSSParser::ComputeColor. r=bzbarsky
Now that we have UTF8String in the WebIDL, we can remove quite a few of the
conversions. Do that, and lift the remaining string conversions up as needed.

Also deindent Servo_ComputeColor while touching it.

Most of the remaining copies are because either bug 1606994, or because they're
WebIDL attributes that we still need to serialize back as UTF-16 (bug 1606995).

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

--HG--
extra : moz-landing-system : lando
2020-01-08 01:21:30 +00:00
Bogdan Tara 4e368405fa Backed out 6 changesets (bug 1598523) for geckoview failures complaining about NavigationDelegateTest.loadUnknownProtocol
Backed out changeset 2e7ea1ae7fa2 (bug 1598523)
Backed out changeset 6adc1062662b (bug 1598523)
Backed out changeset 141372c43f02 (bug 1598523)
Backed out changeset c5abcaabaf2d (bug 1598523)
Backed out changeset 5a22a20dd993 (bug 1598523)
Backed out changeset e0df103c9cf3 (bug 1598523)
2020-01-08 02:56:18 +02:00
Edwin Takahashi 954f7f115c Bug 1599937 - mark test_2_conformance__textures__misc__texture-corner-case-videos.html with fail-if annotation for ubuntu1804 r=jmaher,jgilbert
Changes:

Mark this test as expected failure on ubuntu1804 and webrender.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 00:07:23 +00:00
Jeff Gilbert dfde69a462 Bug 1585683 - Add mochitest-webgpu jobs, add subsuite = webgpu. r=jmaher,kvark
Differential Revision: https://phabricator.services.mozilla.com/D58892

--HG--
extra : moz-landing-system : lando
2020-01-07 22:42:07 +00:00
Edgar Chen 31a6064874 Bug 1607223 - Part 4: Avoid performing check of next tabbable content on the first element of shadow dom duplicatedly; r=smaug
See https://bugzilla.mozilla.org/show_bug.cgi?id=1607223#c1 for the details.

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

--HG--
extra : moz-landing-system : lando
2020-01-07 18:36:25 +00:00
Edgar Chen 043836c459 Bug 1607223 - Part 3: Simplify the logic of handling *topLevelScopeOwner; r=smaug
This patch contains three changes, but we just simpliy the logic, the result is the same,

1). s/oldTopLevelScopeOwner/currentTopLevelScopeOwner/
We can use either `oldTopLevelScopeOwner` or `currentTopLevelScopeOwner` in if-check, they point to the same element at that point.
Using `currentTopLevelScopeOwner` is clearer given that it is updated in the if-block.

2). remove else-block
We run into this else-block when `aForward && oldTopLevelScopeOwner == currentContent`,
so  `oldTopLevelScopeOwner`, `currentTopLevelScopeOwner` and `currentContent` all point to the same element.
It is not necessary to set `currentTopLevelScopeOwner` to `currentContent` again.

3). s/IsHostOrSlot(currentTopLevelScopeOwner)/currentTopLevelScopeOwner/
After above two changes, `currentTopLevelScopeOwner` is always set to result of `GetTopLevelScopeOwner(currentContent)`,
so we don't need `IsHostOrSlot()` checks. And there is an asserion in `HostOrSlotTabIndexValue()` to ensure it is either a host or slot.

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

--HG--
extra : moz-landing-system : lando
2020-01-07 15:31:08 +00:00
Edgar Chen 753aa1aefb Bug 1607223 - Part 2: Fix GetTopLevelScopeOwner; r=smaug
Currently if we call `GetTopLevelScopeOwner` with a <slot> which is in top-level-scope, e.g. `<body><slot></slot></body>`.
It returns <slot> itself, but it should returns `nullptr` per design.

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

--HG--
extra : moz-landing-system : lando
2020-01-07 12:42:58 +00:00
Edgar Chen 2b6dc0d088 Bug 1607223 - Part 1: Update the comment of `FindOwner` and rename function name to `FindScopeOwner`; r=smaug
After bug 1544826, `FindOwner` returns only shadow host or slot, update the
comment and rename it to `FindScopeOwner` to reflect the current behavior.

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

--HG--
extra : moz-landing-system : lando
2020-01-07 11:37:26 +00:00
Emma Malysz dcd4934531 Bug 1596478, remove references to kNameSpaceID_XBL except for instance in nsNameSpaceManager.cpp r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D58872

--HG--
extra : moz-landing-system : lando
2020-01-07 21:51:27 +00:00
Matt Woodrow 93ab0405ec Bug 1598523 - Make DocumentChannelChild/ContentChild QI to the specific interfaces it wants, rather than assuming that only HttpChannelChild will have them. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D57890

--HG--
extra : moz-landing-system : lando
2020-01-07 20:57:13 +00:00
Matt Woodrow 0e8ab1d433 Bug 1598523 - Share code for creating a channel for a document between nsDocShell, DocumentChannelChild and ContentChild. r=kmag
Note that this also implicitly adds support for the view-source+srcdoc configuration, and setting of the BaseURI, which were both in the nsDocShell version but not the others.

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

--HG--
extra : moz-landing-system : lando
2020-01-07 21:17:22 +00:00
Emilio Cobos Álvarez 400567dcde Bug 1606958 - Use FakeString for UTF8String. r=bzbarsky,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D58683

--HG--
extra : moz-landing-system : lando
2020-01-07 21:37:12 +00:00
Bogdan Tara c0e1f5a876 Backed out changeset 33ccfb45bb3f (bug 1585683) on jgilbert's request 2020-01-07 23:21:45 +02:00
Jeff Gilbert 4d2067b9ca Bug 1585683 - Add mochitest-webgpu jobs, add subsuite = webgpu. r=jmaher,kvark
Differential Revision: https://phabricator.services.mozilla.com/D58892

--HG--
extra : moz-landing-system : lando
2020-01-07 20:58:37 +00:00
Jeff Gilbert 3a05991f4e Bug 1606039 - Enable webgl1-core/1-ext/2-core tests on Android HW. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D58906

--HG--
extra : moz-landing-system : lando
2020-01-07 19:19:38 +00:00
Ehsan Akhgari 88ee61f449 Bug 1531397 - Remove [Unforgeable] from Service Worker APIs; r=perry
Differential Revision: https://phabricator.services.mozilla.com/D58983

--HG--
extra : moz-landing-system : lando
2020-01-07 18:46:12 +00:00
Kirk Steuber 1b30d46307 Bug 1603827 - Remove XULElement.orient from webidl and c++ r=webidl,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D57664

--HG--
extra : moz-landing-system : lando
2020-01-07 19:25:34 +00:00
Boris Zbarsky 330b219787 Bug 1607347. Back out part of revision 3c1f509939f1 to fix null-dereference crashes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D58989

--HG--
extra : moz-landing-system : lando
2020-01-07 19:00:07 +00:00
Brindusan Cristian 5d7bfb85f1 Backed out 2 changesets (bug 1603827) for build bustages at XULElementBinding.cpp. CLOSED TREE
Backed out changeset e975644f8000 (bug 1603827)
Backed out changeset f6b5e15b13af (bug 1603827)
2020-01-07 19:31:48 +02:00
Kirk Steuber 4d11185e5a Bug 1603827 - Remove XULElement.orient from webidl and c++ r=webidl,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D57664

--HG--
extra : moz-landing-system : lando
2020-01-07 17:15:11 +00:00
shindli 25c99bbe4b Backed out 2 changesets (bug 1603827) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsXULElement.h: CLOSED TREE
Backed out changeset 0acbc135a17d (bug 1603827)
Backed out changeset db69be9423ae (bug 1603827)
2020-01-07 18:55:28 +02:00
Kirk Steuber f7669186fd Bug 1603827 - Remove XULElement.orient from webidl and c++ r=webidl,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D57664

--HG--
extra : moz-landing-system : lando
2020-01-07 16:41:03 +00:00
Emilio Cobos Álvarez b55adec8d8 Bug 1605610 - Ensure to not create transition rules for elements that don't have any transition effect. r=hiro
There are multiple places where bogus non-empty transition rules can be created
before this patch when EffectSet's cascade information isn't up-to-date.  That
can happen as described in bug 1606176.

Anyhow, in this particular call site, this is only used to filter from
transition rules effects that are from running animations, to implement:

https://drafts.csswg.org/css-transitions/#application:

>  Implementations must add this value to the cascade if and only if that
>  property is not currently undergoing a CSS Animation ([CSS3-ANIMATIONS])
>  on the same element.

In the test-case, the EffectSet cascade info is empty, so we hit the "skip
everything" for animations (wrong), and "skip nothing for transitions" (also
wrong). This creates a transition rule node which then we never remove
(understandably, as the element never had a transition!).

This fixes the observables of this test-case, by checking the cascade level
(so that we don't create transition rule nodes with declarations coming from
animations). This is strictly more correct than what we were doing.

If we hit the proposed assertion after this change, this code may still create
transition rules that incorrectly override animations, but will never mint one
out of the blue which we'd then fail to remove (which is the problem the
test-case is hitting).

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

--HG--
extra : moz-landing-system : lando
2020-01-07 16:21:08 +00:00
Simon Giesecke 5eebb4d2fb Bug 1600906 - Encapsulate ThreadInfo; use std::move instead of swap, use const where then possible. r=dom-workers-and-storage-reviewers,ytausky
Differential Revision: https://phabricator.services.mozilla.com/D57988

--HG--
extra : moz-landing-system : lando
2020-01-07 15:11:39 +00:00
Tom Schuster 9cac4d2786 Bug 1605854 - Remove uneval/toSource from CORS tests. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D58374

--HG--
extra : moz-landing-system : lando
2020-01-07 15:57:28 +00:00
Emilio Cobos Álvarez 4d059556c2 Bug 1607406 - Add TypedArray::Create(Span<T>) and remove an ugly cast in TextEncoder. r=bzbarsky
The bounds check becomes needed now, though it should hopefully be optimized
away too as all the involved calls that you need to know about to determine that
it can't happen are inline.

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

--HG--
extra : moz-landing-system : lando
2020-01-07 15:42:19 +00:00
Andrea Marchesini 2616cac8b3 Bug 1030481 - Remove nsIMutable, r=smaug
nsIMutable is used only by DOM Blob/File. But Blobs are immutable by spec.
FileBlobImpl has a couple of lazy member values, but those are called when
the object is cloned in order to be sent to a different thread/process.

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

--HG--
extra : moz-landing-system : lando
2020-01-07 15:02:00 +00:00
Brindusan Cristian a4d2079b26 Backed out changeset ea16475d26ba (bug 1605854) for mochitest failures at test_fetch_cors_sw_reroute.html. CLOSED TREE 2020-01-07 16:36:45 +02:00