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

6149 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez e130775894 Bug 1527691 - Disabled datetimebox inner elements shouldn't be tabbable. r=Gijs
They're not focusable with mouse already.

Differential Revision: https://phabricator.services.mozilla.com/D147084
2022-05-23 12:56:46 +00:00
Edgar Chen ee0a09597a Bug 1749663 - Get rid of dom.webcomponents.formAssociatedCustomElement.enabled pref; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D146743
2022-05-19 08:29:21 +00:00
Emilio Cobos Álvarez 87ff5a5d8d Bug 1768418 - Move various methods from nsTString to nsTSubstring/nsTStringRepr. r=xpcom-reviewers,nika
No reason these don't work on substrings.

Remove StripChars since it has an existing nsTSubstring version. Make
callers use rightly-typed characters for those.

Differential Revision: https://phabricator.services.mozilla.com/D145864
2022-05-13 15:39:19 +00:00
Kagami Sascha Rosylight b1653a09c7 Bug 1767996 - Apply readability-make-member-function-const on dom/html r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D145627
2022-05-13 05:35:25 +00:00
Kagami Sascha Rosylight d8e2b075a8 Bug 1768189 - Part 15: Apply modernize-concat-nested-namespaces to dom/html/nsHTMLDocument.h ... r=andi
Depends on D145748

Differential Revision: https://phabricator.services.mozilla.com/D145749
2022-05-09 20:41:09 +00:00
Kagami Sascha Rosylight e04e694d71 Bug 1768189 - Part 14: Apply modernize-concat-nested-namespaces to dom/html/HTMLTableCellElement.h ... r=andi
Depends on D145747

Differential Revision: https://phabricator.services.mozilla.com/D145748
2022-05-09 20:41:08 +00:00
Kagami Sascha Rosylight bd53057a00 Bug 1768189 - Part 13: Apply modernize-concat-nested-namespaces to dom/html/HTMLIFrameElement.h ... r=andi
Depends on D145746

Differential Revision: https://phabricator.services.mozilla.com/D145747
2022-05-09 20:41:08 +00:00
Kagami Sascha Rosylight b4d5c4d3b3 Bug 1768189 - Part 12: Apply modernize-concat-nested-namespaces to dom/gamepad/windows/WindowsGamepad.cpp ... r=andi
Depends on D145745

Differential Revision: https://phabricator.services.mozilla.com/D145746
2022-05-09 20:41:07 +00:00
Yoshi Cheng-Hao Huang afeda7dba0 Bug 1688879 - Part 2: Add support for import maps in ScriptElement/ScriptLoader/ScriptKind. r=jonco,yulia,smaug
Differential Revision: https://phabricator.services.mozilla.com/D142070
2022-05-05 21:19:01 +00:00
Butkovits Atila fb9f362af3 Backed out 11 changesets (bug 1688879) for causing build bustages. CLOSED TREE
Backed out changeset 350ddd17c7f5 (bug 1688879)
Backed out changeset 27984b95ed20 (bug 1688879)
Backed out changeset 6a5bb063965f (bug 1688879)
Backed out changeset d8edcfdb504b (bug 1688879)
Backed out changeset 77ab231310ec (bug 1688879)
Backed out changeset c2bce95a1aca (bug 1688879)
Backed out changeset f5862572ced8 (bug 1688879)
Backed out changeset 05e0a1bf32fc (bug 1688879)
Backed out changeset adeab05b7419 (bug 1688879)
Backed out changeset 0e60834e17e5 (bug 1688879)
Backed out changeset 877bb4c2ce66 (bug 1688879)
2022-05-05 19:52:05 +03:00
Yoshi Cheng-Hao Huang 0cb3316eb7 Bug 1688879 - Part 2: Add support for import maps in ScriptElement/ScriptLoader/ScriptKind. r=jonco,yulia,smaug
Differential Revision: https://phabricator.services.mozilla.com/D142070
2022-05-05 16:03:16 +00:00
Narcis Beleuzu a92a200e76 Backed out 9 changesets (bug 1688879) for bustages on ImportMap.cpp
Backed out changeset 44e9abe72a5e (bug 1688879)
Backed out changeset 0503d2d2ae01 (bug 1688879)
Backed out changeset 2cf08a51b184 (bug 1688879)
Backed out changeset 6f0276c3ab0e (bug 1688879)
Backed out changeset f16b14d8f677 (bug 1688879)
Backed out changeset 03b772e02d07 (bug 1688879)
Backed out changeset 39ed48a5ecc2 (bug 1688879)
Backed out changeset d7b42d8312bb (bug 1688879)
Backed out changeset 5e695bf5dd0d (bug 1688879)
2022-05-05 03:41:31 +03:00
Yoshi Cheng-Hao Huang 7b96af0e03 Bug 1688879 - Part 2: Add support for import maps in ScriptElement/ScriptLoader/ScriptKind. r=jonco,yulia,smaug
Differential Revision: https://phabricator.services.mozilla.com/D142070
2022-05-04 21:02:50 +00:00
Tooru Fujisawa 76f3cf7f70 Bug 1765156 - Part 3: Use SpecialPowers.ChromeUtils.import in dom/. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D144084
2022-05-03 06:32:25 +00:00
Kagami Sascha Rosylight 73f6c1e217 Bug 1619574 - Remove HTMLCanvasElement::MozGetAsFile r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D144815
2022-04-27 16:13:14 +00:00
Emilio Cobos Álvarez 72d2420c2b Bug 1766395 - Remove dom.forms.datetime-local prefs. r=edgar
We shipped this a while ago.

Differential Revision: https://phabricator.services.mozilla.com/D144800
2022-04-27 14:10:27 +00:00
Tom Schuster eed1aead2d Bug 1745005 - Add showPicker() to <input> elements. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D142754
2022-04-22 18:43:48 +00:00
Edgar Chen b15ceeb12c Bug 1745915 - Add test for resizing a fullscreen window; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D133742
2022-04-21 11:49:13 +00:00
az 2607db324d Bug 1652950 - Unprefix mozPreservesPitch, update corresponding tests r=emilio,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D143237
2022-04-20 18:43:47 +00:00
Daniel Holbert 017b68e077 Bug 1763667 part 1: Merge our two copies of TopLevelImageDocument.css and TopLevelVideoDocument.css. r=emilio,jaws
For both files, we've been keeping around an extra copy in
toolkit/themes/shared/media/ with 1-2 CSS rules related to presentation.

This was probably to allow XUL-style extensions and themes to override the
presentation, back when we supported that form of extension.  But there's not a
good reason to have this separation anymore, so let's simplify and combine the
files of the same name.

This patch also removes one no-longer-esepcially-useful "N.B." comment (which
refers to a file that's now alongside the styles in question).  This patch also
adds an explanatory comment to explain why we bother to set `color` for images
(which was initially not clear to me).

Differential Revision: https://phabricator.services.mozilla.com/D143395
2022-04-13 16:45:54 +00:00
criss 1ce796a4ee Backed out changeset fa6795d107b1 (bug 1745005) for causing multiple failures. CLOSED TREE 2022-04-13 13:23:03 +03:00
Tom Schuster 43b158ae1a Bug 1745005 - Add showPicker() to <input> elements. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D142754
2022-04-13 07:35:57 +00:00
Jeff Muizelaar a4c8bf3727 Bug 1762966 - Add a pref to force the number of dropped frames to 0. r=alwu
I want to use this to help debug resolution changes caused by frame
drops.

Differential Revision: https://phabricator.services.mozilla.com/D142870
2022-04-05 21:02:53 +00:00
Andrew Osmond 3fe3f7ca98 Bug 1753302 - Part 1. Integrate WebGPU with OffscreenCanvas plumbing. r=gfx-reviewers,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D141491
2022-04-04 16:42:02 +00:00
Edgar Chen c82b0711e1 Bug 1760560 - Remove directory upload API; r=smaug
HTMLInputElement.getFilesAndDirectories is used for testing Directory API, so
still keep it but mark as chrome only.

Differential Revision: https://phabricator.services.mozilla.com/D142444
2022-04-04 09:54:34 +00:00
ashley bbae966812 Bug 1744398 - Media element load algorithm must fire 'emptied' before 'timeupdate' r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D142628
2022-04-01 18:26:05 +00:00
Manuel Bucher 09b6c321e4 Bug 1761242 - Make link asset parsing accessible in nsNetUtils.h r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D142053
2022-04-01 13:45:20 +00:00
Emilio Cobos Álvarez 1ce0975b8e Bug 1761493 - Make Gecko internally consistent wrt what a link is. r=smaug
This is mostly edge-casey, but see bug 1757156 for an example where it's
causing some issues (granted, they could use `href="#"` or something
instead of an empty href).

It feels weird if a link looks like a link (because the CSS definition
of a link matches, which is "has an href") but then mostly doesn't
behave as a link.

We can't navigate anywhere if we don't have a valid URI but maybe JS
handles the relevant events as in bug 1757156.

Use the CSS definition (has href) since that's interoperable across
browsers. This should also make some stuff much faster (since checking
'is link' is now just a bit check instead of a virtual call).

(Awaiting try results, if no tests need adjustments then I need to write
some)

Differential Revision: https://phabricator.services.mozilla.com/D142107
2022-03-30 17:34:31 +00:00
Gijs Kruitbosch 8e67201171 Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D141437
2022-03-30 16:16:42 +00:00
Norisz Fay acdd6851cd Backed out 2 changesets (bug 1753696) for causing multiple dt and bc failures CLOSED TREE
Backed out changeset 67fd9edfbcea (bug 1753696)
Backed out changeset a9d957ea887b (bug 1753696)
2022-03-30 12:17:55 +03:00
Gijs Kruitbosch 27039e2946 Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D141437
2022-03-30 08:18:51 +00:00
Bryce Seager van Dyk ff03cc04a5 Bug 1724106 - Clarify threading usage when getting media debug info. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D124104
2022-03-29 22:17:58 +00:00
Henri Sivonen 8dca2aaa89 Bug 1712928 - Gather telemetry about encoding-unlabeled pages and about Repair Text Encoding usage situations. r=emk
In particular, gather telemetry to evaluate the impact of unlabeled UTF-8
and how detector-triggered reloads would change if ASCII-only at initial
guess was treated as UTF-8.

Differential Revision: https://phabricator.services.mozilla.com/D140818
2022-03-29 08:04:25 +00:00
Kershaw Chang 974130bad4 Bug 1755902 - P1: Rename nsIDNSResolverInfo to nsIDNSAdditionalInfo and add port, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D141717
2022-03-25 12:15:03 +00:00
Andrew Osmond f557ac0ff0 Bug 1760907 - Avoid mutex contention on display list updates for OffscreenCanvas. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D141811
2022-03-23 11:50:12 +00:00
Emilio Cobos Álvarez 5101af9a94 Bug 1760709 - Take directionality into account when handling left/right on radios. r=smaug
We have similar code for range inputs. This matches Blink (but not
WebKit), but I think it's a better default.

The spec seems to leave this up to UAs, so for now landing a
moz-specific WPT. Should be trivial to upstream if we want.

Depends on D141705

Differential Revision: https://phabricator.services.mozilla.com/D141706
2022-03-22 11:10:54 +00:00
Emilio Cobos Álvarez 0b00fcf9fd Bug 1760709 - Remove some useless namespacing in HTMLInputElement. r=smaug
Drive-by cleanups.

Differential Revision: https://phabricator.services.mozilla.com/D141705
2022-03-22 11:10:53 +00:00
sotaro fe0ee34bf8 Bug 1423850 - Take into account video's rotation metadata at context.drawImage() with <video> r=gfx-reviewers,bradwerth
Rotated video for reftest is re-used from bug1228601-video-rotation-90.html

Differential Revision: https://phabricator.services.mozilla.com/D140353
2022-03-18 00:01:02 +00:00
Edgar Chen 95e0e6704c Bug 1757923 - Make ElementInternals keeping the target element alive; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D140310
2022-03-11 13:29:02 +00:00
Masayuki Nakano 45ba6f356a Bug 1753508 - Add logger of selection batch r=smaug
This was required for debugging the bug.

Differential Revision: https://phabricator.services.mozilla.com/D139350
2022-03-11 02:24:24 +00:00
Paul Adenot 7506e056c3 Bug 1272636 - Reset HTMLMediaElement.played when loading a new source. r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D139925
2022-03-08 13:05:28 +00:00
alwu 5c9a387bb5 Bug 1754649 - remove the probe 'WEBVTT_TRACK_KINDS'. r=media-playback-reviewers,bryce
Differential Revision: https://phabricator.services.mozilla.com/D140115
2022-03-03 18:37:40 +00:00
Jan Varga 3127935527 Bug 1757575 - Fix non-unified-build bustage in dom/html/HTMLFormElement.cpp; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D139947
2022-03-01 17:39:18 +00:00
Andrew Osmond 8574aa2078 Bug 1756864 - Fix several WPT failures surrounding neutered/no context OffscreenCanvas. r=gfx-reviewers,lsalzman
Mostly changing whether we throw, not throw, or throw a specific
exception.

Differential Revision: https://phabricator.services.mozilla.com/D139516
2022-02-28 16:12:47 +00:00
Andrew Osmond 917fa4c58a Bug 1755698 - Ensure we destroy HTMLCanvasElement's members during cycle collection unlinking. r=gfx-reviewers,lsalzman
OffscreenCanvasDisplayHelper may call back into HTMLCanvasElement after
it has been unlinked and violate our assumption that
HTMLCanvasElement::InvalidateCanvasPlaceholder is only called when we
have an OffscreenCanvas member. This patch makes it so that we clear the
relevant references during unlinking so that we don't make this mistake.

Differential Revision: https://phabricator.services.mozilla.com/D139380
2022-02-23 00:20:01 +00:00
Andrew Osmond 5f8b07ff0f Bug 1756186 - Fix Canvas2D CreatePattern and DrawImage with no context OffscreenCanvas. r=lsalzman
This patch ensures we return an empty surface as per the spec when
the OffscreenCanvas passed into CreatePattern and DrawImage has no
context bound to it.

Differential Revision: https://phabricator.services.mozilla.com/D139127
2022-02-22 21:16:16 +00:00
Andrew Osmond c18a944c15 Bug 1754978 - Part 2. Switch WebGPU to use async image pipelines for display. r=kvark
This patch removes more main thread dependencies from the content side
of WebGPU. Instead of issuing a resource update for an external image,
we now use an async image pipeline in conjunction with
CompositableInProcessManager from part 1. This allows us to update the
HTMLCanvasElement bound to the WebGPU device without having to go
through the main thread, or even the content process after the swap
chain update / readback has been requested.

Differential Revision: https://phabricator.services.mozilla.com/D138887
2022-02-18 15:59:13 +00:00
Iulian Moraru 3dbfe82835 Backed out 2 changesets (bug 1754978) for causing valgrind bustages.
Backed out changeset 491a985fc34a (bug 1754978)
Backed out changeset 98983bf9eaed (bug 1754978)
2022-02-18 00:36:31 +02:00
Andrew Osmond a18bf8a50c Bug 1754978 - Part 2. Switch WebGPU to use async image pipelines for display. r=kvark
This patch removes more main thread dependencies from the content side
of WebGPU. Instead of issuing a resource update for an external image,
we now use an async image pipeline in conjunction with
CompositableInProcessManager from part 1. This allows us to update the
HTMLCanvasElement bound to the WebGPU device without having to go
through the main thread, or even the content process after the swap
chain update / readback has been requested.

Differential Revision: https://phabricator.services.mozilla.com/D138887
2022-02-16 22:23:20 +00:00
Emilio Cobos Álvarez ab3a92e515 Bug 1440506 - Do not destroy dropdowns on reframe. r=dholbert
We switch the open state storage to the element rather than the frame,
to be able to preserve it across reframes.

The code is loosely based on nsHideViewer in nsSubDocument.cpp, but it's
simpler because we don't need to do restoration shenanigans.

Differential Revision: https://phabricator.services.mozilla.com/D138689
2022-02-15 22:00:27 +00:00