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

6922 Коммитов

Автор SHA1 Сообщение Дата
Neil Deakin 2ae4d6a15b Bug 1644911, add access to the childID from the frame crashed event, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D98206
2021-01-21 08:44:51 +00:00
alwu 2063aa51ae Bug 1685399 - part10 : add chrome-only attributes to allow us check accumulated time during testing. r=padenot,emilio
Differential Revision: https://phabricator.services.mozilla.com/D101264
2021-01-15 19:58:13 +00:00
alwu 9edb9d310f Bug 1685399 - part2 : reorgnize functions being used for determining if element is visible. r=padenot,webidl,mccr8
There are several functions related with an element's visibie state, which are confusing. So this patch is going to make them clearer and remove unnecessary function.

- `IsVisible()` : add description to mention that the visibility state is only for layout level, which doesn't represent the actual visible state.
- rename `IsHidden()` to `IsActualInvisible()` : make it represent the actual visible state of an element.
- remove `IsActive()` : current two callers of `IsActive()` only care about if the page is inactive or not, it doesn't care about if page hidden or not. So we can call the owner doc's method directly.

Differential Revision: https://phabricator.services.mozilla.com/D101107
2021-01-19 19:48:43 +00:00
Paul Zuehlcke 547f195fc5 Bug 1679512 - Move contentBlockingAllowListPrincipal to WindowGlobalParent. r=timhuang,nika
We only use the contentBlockingAllowListPrincipal for excluding sites from content
blocking for top level documents. We don't need it in the content process and should
not compute it for every document.

Differential Revision: https://phabricator.services.mozilla.com/D100781
2021-01-14 20:37:35 +00:00
Dana Keeler 103f64a076 Bug 1685552 - move certificate subject alternative name processing for error pages from backend to frontend r=bbeurdouche,johannh,baku
This removes nsIX509Cert.subjectAltNames and reduces potential attack surface
by avoiding parsing subject alternative names in C/C++. It also reduces PSM
reliance on NSS types.

Differential Revision: https://phabricator.services.mozilla.com/D101418
2021-01-14 09:58:03 +00:00
longsonr 749233d55b Bug 1685543 - Expose auto-start-reverse enum value r=emilio
Per https://github.com/w3c/svgwg/issues/424 we should expose the new value in webidl

Differential Revision: https://phabricator.services.mozilla.com/D101089
2021-01-08 00:05:11 +00:00
longsonr f518393a92 Bug 1518099 - Add support for lighter operator in feComposite r=jrmuizel,emilio
Spec: https://www.w3.org/TR/filter-effects-1/#attr-valuedef-operator-lighter

Lighter is defined in the compositing & blending spec as equivalent to porter-duff plus, https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators_plus.

The 'lighter' composite mode already works in <canvas> (via globalCompositeOperation), and it's the same there.

Chrome implemented support in https://bugs.chromium.org/p/chromium/issues/detail?id=439037

Per https://github.com/w3c/svgwg/issues/424 we should expose the new value in webidl and Chrome uses 7 too (https://codereview.chromium.org/779963002/patch/120001/130009)

Differential Revision: https://phabricator.services.mozilla.com/D100605
2021-01-05 20:49:00 +00:00
Sean Feng cab1fa2b49 Bug 1674783 - Implement the Get method for Maplike in webidl r=edgar,smaug
Without the `Get` method, it's hard to extract the values for keys from
Maplike interface in C++.

Differential Revision: https://phabricator.services.mozilla.com/D97247
2021-01-05 23:19:26 +00:00
Emilio Cobos Álvarez 01ba28a5dd Bug 1684711 - Fix canvas ImageData signatures to match the spec. r=nical
Spec: https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-createimagedata (and friends)

See https://github.com/whatwg/html/issues/6262 about [EnforceRange],
which isn't technically on the spec but matches all browsers' behavior.

This simplifies a bit the code, moving some conversions to WebIDL, fixes
a few WPT tests, and should throw better error messages too.

Differential Revision: https://phabricator.services.mozilla.com/D100608
2021-01-04 17:48:32 +00:00
Aryan Agal 8e8a8fc213 Bug 1627014 - Implement CanvasRenderingContext2D.createConicGradient r=emilio
Added an option to use ConicGradient API as a preference and removed the
corresponding expected FAILing test, over @ntim's implementation.

Differential Revision: https://phabricator.services.mozilla.com/D100554
2021-01-01 01:50:52 +00:00
Emilio Cobos Álvarez 7d03492002 Bug 1682988 - Use UTF8String for querySelector and similar OM methods. r=heycam
This has no observable behavior change because we were converting to
UTF-8 in ParseSelectorList.

Differential Revision: https://phabricator.services.mozilla.com/D99961
2020-12-23 05:42:00 +00:00
Dzmitry Malyshau 6b5716d415 Bug 1680376 - WebGPU error handling infrastructure r=jgilbert,webidl,smaug
the goal of this PR is to provide the necessary
infrastructure to handle errors on the GPU process side and send them
back to the client side, triggering the uncaptured error events.

Differential Revision: https://phabricator.services.mozilla.com/D98542
2020-12-18 20:07:47 +00:00
Emilio Cobos Álvarez 039592f4d8 Bug 1682003 - Avoid UTF-8 -> UTF-16 conversion during CSSOM serialization. r=heycam
This lifts a bunch of string conversions higher up the stack, but allows
us to make the servo code use utf-8 unconditionally, and seemed faster
in my benchmarking (see comment 0).

It should also make a bunch of attribute setters faster too (like
setting .cssText), now that we use UTF8String for them (we couldn't
because we couldn't specify different string types for the getter and
setters).

Differential Revision: https://phabricator.services.mozilla.com/D99590
2020-12-17 14:04:35 +00:00
Chris H-C a0efcbcf74 Bug 1673660 - C++ and JS API for Glean Custom Pings r=janerik,webidl,smaug
Covers adding the new JS global `GleanPings` for JS, the new structs for C++ at
mozilla::glean_pings, ping-id and string-table-index codegen, the usual
boilerplate for JS and C++ stuff, and tests.

Unresolved:
* What happens if we call this on a non-parent process?
  (This isn't a supported mode of operation)

Differential Revision: https://phabricator.services.mozilla.com/D98671
2020-12-14 16:50:07 +00:00
Olli Pettay ff1b3ed869 Bug 1679204 - Consider to add signal to addEventListener, r=edgar
This passes the tests which are in https://github.com/web-platform-tests/wpt/pull/26472

Because of complications in #include handling, AbortFollower needs to be in a different
header file than AbortSignal, yet AbortSignalImpl needs to be available when AbortFollower is used.
Another option would have been to make DOMEventTargetHelper.h a bit different and uninline some hot methods
there or move them to another file, but that would have been equally bad and Abort* is used way less often.
AbortFollower and AbortSignalImpl are thus just moved to a new header.

Memory management is such that Listener in EventListenerManager owns the possible ListenerSignalFollower
instance which follows the relevant signal. In order to be able remove event listener,
ListenerSignalFollower has many similar fields as Listener.
ListenerSignalFollower can't easily have just a pointer to Listener* since Listener isn't stored as a pointer
in EventListenerManager.
ListenerSignalFollower is cycle collectable so that Listener->ListenerSignalFollower can be traversed/unlinked
and also strong pointers in ListenerSignalFollower itself can be traversed/unlinked.

There is an XXX in the .webidl, since nullability of signal is unclear in the spec pr.
Whether or not it ends up being nullable shouldn't change the actual C++ implementation.

Differential Revision: https://phabricator.services.mozilla.com/D97938
2020-12-14 15:45:15 +00:00
Masatoshi Kimura e158f2a82c Bug 1682164 - Update RequestDestination to the latest spec. r=asuth
Stop using `default:` in MapContentPolicyTypeToRequestDestination so that
compilers can notice when people forgot adding a new nsContentPolicyType.

Differential Revision: https://phabricator.services.mozilla.com/D99604
2020-12-14 08:32:55 +00:00
alwu ed3d22052b Bug 1681801 - move experimental methods of `SourceBuffer` to partial interface. r=bryce,webidl,smaug
It would be good to separate the standard methods and experimental methods for SourceBuffer in order to clearly see what we support in the spec.

Differential Revision: https://phabricator.services.mozilla.com/D99372
2020-12-10 20:05:18 +00:00
Kagami Sascha Rosylight 5a089f37d3 Bug 1680596 - Part 1: Hide <menuitem> behind a flag r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D98684
2020-12-08 05:36:27 +00:00
Cosmin Sabou 48ced6860f Backed out 2 changesets (bug 1680596) for xpcshell and mochitest plain failures. CLOSED TREE
Backed out changeset a5fce6a4b5b9 (bug 1680596)
Backed out changeset 8ea7d760b4a8 (bug 1680596)
2020-12-07 22:02:46 +02:00
Kagami Sascha Rosylight 5b5178d70c Bug 1680596 - Hide <menuitem> behind a flag r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D98684
2020-12-07 17:03:27 +00:00
Paul Bone f739cb65ad Bug 1677857 - Add new GC related fuzzing functions r=tsmith,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D97537
2020-11-30 02:15:38 +00:00
Dzmitry Malyshau 921110e00f Bug 1678396 - Enable WebGPU uncaptured error r=webidl,smaug
No functional changes, just WebIDL.

Differential Revision: https://phabricator.services.mozilla.com/D97642
2020-11-20 12:57:45 +00:00
Kershaw Chang a345a4fc78 Bug 1677746 - Move NetDashboard.webidl to dom/chrome-webidl/ r=necko-reviewers,valentin,webidl,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D97317
2020-11-17 16:06:39 +00:00
Dzmitry Malyshau 8f74799ba5 Bug 1676916 - Implicit bind group layouts in WebGPU r=jgilbert,webidl,smaug
This change updates and enables Naga to get the
SPIRV shaders parsed, validated, and reflected back into
implicit bind group layouts.
WebGPU examples heavily rely on the implicit layouts now,
and the PR also updates the WebIDL to make that possible.
With the change, we are able to run most of the examples again!

Differential Revision: https://phabricator.services.mozilla.com/D96850
2020-11-13 14:15:49 +00:00
Tim Huang f0c895fc31 Bug 1641270 - Part 1: Expose cookieJarSettings to UI code through Document. r=smaug,dimi
Differential Revision: https://phabricator.services.mozilla.com/D95611
2020-11-11 11:13:57 +00:00
Mihai Alexandru Michis 4038013e6f Backed out 9 changesets (bug 1641270) for causing dt failures in browser_jsonview_save_json.js
CLOSED TREE

Backed out changeset 89a6dab92f1a (bug 1641270)
Backed out changeset 5f9c5af66b77 (bug 1641270)
Backed out changeset dfeb879f4131 (bug 1641270)
Backed out changeset 143728b1b1ab (bug 1641270)
Backed out changeset 265ae2953416 (bug 1641270)
Backed out changeset 55ea7810c160 (bug 1641270)
Backed out changeset 7bef9112f296 (bug 1641270)
Backed out changeset 2663dc1e9a3e (bug 1641270)
Backed out changeset fcba6dba3649 (bug 1641270)
2020-11-11 13:10:11 +02:00
Tim Huang 5a9cd22328 Bug 1641270 - Part 1: Expose cookieJarSettings to UI code through Document. r=smaug,dimi
Differential Revision: https://phabricator.services.mozilla.com/D95611
2020-11-10 11:47:11 +00:00
Dan Minor b0bcf54c7d Bug 1673054 - Add isAppLocaleRTL to IntlUtils; r=Gijs,zbraniecki,emilio
Differential Revision: https://phabricator.services.mozilla.com/D96233
2020-11-10 21:34:04 +00:00
Emilio Cobos Álvarez 0d187533ef Bug 1392460 - Add a couple prefs to expose DOM_DELTA_PIXEL rather than DOM_DELTA_LINES to the web. r=masayuki,smaug
And use them to disable DOM_DELTA_LINES on Nightly builds, to see the
impact, since this is pretty hard to measure just with telemetry.

Differential Revision: https://phabricator.services.mozilla.com/D95388
2020-11-07 16:12:34 +00:00
Dzmitry Malyshau f9116a751d Bug 1622846 - Serialize WebGPU descriptors via Serde for IPC r=jgilbert,webidl,smaug
This PR updates wgpu to the latest and changes the way we pass object descriptors to the GPU process.
Instead of trying to convert them between DOM-CPP-IPDL-FFI-Rust, we now do DOM-FFI-Rust
and serialize them by serde into ipc::ByteBuf objects.

Differential Revision: https://phabricator.services.mozilla.com/D94908
2020-11-07 02:43:09 +00:00
Csoregi Natalia 1a3ae2644d Backed out changeset bdd3d7eb5927 (bug 1622846) for linux bustage on gfx/wgpu/wgpu-types/src/lib.rs. CLOSED TREE 2020-11-07 00:48:50 +02:00
Dzmitry Malyshau 505438ed91 Bug 1622846 - Serialize WebGPU descriptors via Serde for IPC r=jgilbert,webidl,smaug
This PR updates wgpu to the latest and changes the way we pass object descriptors to the GPU process.
Instead of trying to convert them between DOM-CPP-IPDL-FFI-Rust, we now do DOM-FFI-Rust
and serialize them by serde into ipc::ByteBuf objects.

Differential Revision: https://phabricator.services.mozilla.com/D94908
2020-11-06 18:59:27 +00:00
Tim Nguyen feb6e92ed8 Bug 1596356 - Remove XUL absolute positioning attribute code. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D95516
2020-11-04 18:35:34 +00:00
Andreas Pehrson 0ff315007b Bug 1573300 - Make BlobEvent's data attribute non-nullable. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D95693
2020-11-04 15:05:18 +00:00
Csoregi Natalia 9390a1055f Backed out changeset 99f858e7cd02 (bug 1573300) for failures on test_eventctors.html. CLOSED TREE 2020-11-04 16:18:14 +02:00
Andreas Pehrson 24defb28ee Bug 1573300 - Make BlobEvent's data attribute non-nullable. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D95693
2020-11-04 13:43:39 +00:00
Dorel Luca 292d8cc0ae Backed out changeset 291e761d6988 (bug 1573300) for Mochitest failures in dom/events/test/test_all_synthetic_events.html. CLOSED TREE 2020-11-03 19:38:01 +02:00
Andreas Pehrson bf2c944982 Bug 1573300 - Make BlobEvent's data attribute non-nullable. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D95693
2020-11-03 15:44:34 +00:00
Bogdan Tara 71272b90c8 Backed out changeset e942a748de2d (bug 1596356) for test_largemenu.html failures CLOSED TREE 2020-11-03 00:43:07 +02:00
Tim Nguyen 5f284ca7bf Bug 1596356 - Remove XUL absolute positioning attribute code. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D95516
2020-11-02 20:21:02 +00:00
Narcis Beleuzu e5efde5131 Backed out changeset 88c7b1169eab (bug 1596356) for mochitest failure on test_largemenu.html . CLOSED TREE 2020-11-02 18:36:04 +02:00
Tim Nguyen adcd1d58a5 Bug 1596356 - Remove XUL absolute positioning attribute code. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D95516
2020-11-02 15:21:15 +00:00
Emilio Cobos Álvarez 38919a1a21 Bug 1673885 - Don't expose incomplete sheets in LinkStyle.sheet / Document.styleSheets. r=nordzilla
This matches other browsers, and common sense to some extent.

The code is a bit awkward because I want this behind a pref for now, as
it's not precisely a zero-risk change.

Differential Revision: https://phabricator.services.mozilla.com/D95065
2020-11-01 15:45:40 +00:00
Narcis Beleuzu 9e31b464f7 Backed out changeset 1ee5fddc1caf (bug 1673885) for wpt failures on ttwf-cssom-doc-ext-load-tree-order.html CLOSED TREE 2020-10-31 02:43:31 +02:00
Emilio Cobos Álvarez 2c6198ff82 Bug 1673885 - Don't expose incomplete sheets in LinkStyle.sheet / Document.styleSheets. r=nordzilla
This matches other browsers, and common sense to some extent.

The code is a bit awkward because I want this behind a pref for now, as
it's not precisely a zero-risk change.

Differential Revision: https://phabricator.services.mozilla.com/D95065
2020-10-30 23:30:14 +00:00
Narcis Beleuzu dc2519c7ca Backed out changeset 702857fa260e (bug 1673885) for wpt failures on ttwf-cssom-doc-ext-load-count.html CLOSED TREE 2020-10-30 23:08:37 +02:00
Emilio Cobos Álvarez f8d2ad7b26 Bug 1673885 - Don't expose incomplete sheets in LinkStyle.sheet / Document.styleSheets. r=nordzilla
This matches other browsers, and common sense to some extent.

The code is a bit awkward because I want this behind a pref for now, as
it's not precisely a zero-risk change.

Differential Revision: https://phabricator.services.mozilla.com/D95065
2020-10-30 19:24:22 +00:00
Yaron Tausky 979046dde6 Bug 1617822 - Implement FetchEvent.handled r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D93483
2020-10-29 17:18:28 +00:00
Dorel Luca 0dbe717f53 Backed out changeset 585175b84838 (bug 1617822) for WPT failures in service-workers/idlharness.https.any.serviceworker.html. CLOSED TREE 2020-10-29 18:35:20 +02:00
Yaron Tausky 5def06e77f Bug 1617822 - Implement FetchEvent.handled r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D93483
2020-10-29 13:50:44 +00:00