Commit Graph

2004 Commits

Author SHA1 Message Date
Iulian Moraru
efdd46c8e3 Backed out changeset 241d9f6e2457 (bug 1823359) for causing wpt failures on popover-light-dismiss.html. CLOSED TREE 2023-03-24 21:11:32 +02:00
Ziran Sun
1e1c6abd7f Bug 1823359 - Implement beforetoggle event for popover. r=emilio,smaug
Differential Revision: https://phabricator.services.mozilla.com/D172993
2023-03-24 16:29:48 +00:00
Norisz Fay
f676bc8290 Backed out changeset adc083051939 (bug 1823359) for causing wpt failures on popover-light-dismiss.html 2023-03-24 01:50:20 +02:00
Ziran Sun
3ec778d668 Bug 1823359 - Implement beforetoggle event for popover. r=emilio,smaug
Differential Revision: https://phabricator.services.mozilla.com/D172993
2023-03-23 19:04:20 +00:00
Csoregi Natalia
5d087970e3 Backed out changeset d567ffebf337 (bug 1823359) for causing failures on popover-light-dismiss.html. CLOSED TREE 2023-03-22 18:19:46 +02:00
Emilio Cobos Álvarez
8dabbf6590 Bug 1823686 - Share URLExtraData between SVG attribute mapping and style attribute. r=smaug
I don't think there's ever a way these should differ.

Got some include hell from removing ReferrerInfo.h from Document.h but
hopefully should be straight-forward to review.

Depends on D173154

Differential Revision: https://phabricator.services.mozilla.com/D173155
2023-03-22 14:54:43 +00:00
Ziran Sun
d850704d67 Bug 1823359 - Implement beforetoggle event for popover. r=emilio,smaug
Differential Revision: https://phabricator.services.mozilla.com/D172993
2023-03-22 13:18:32 +00:00
Emilio Cobos Álvarez
6739a7c89e Bug 1823686 - Unify ReferrerInfo::CreateFor{InternalCSS,SVG}Resources, since they're the same. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D173154
2023-03-22 11:50:56 +00:00
Masayuki Nakano
5f577cebc9 Bug 1810663 - Add Gecko specific command to enable new join/split node direction r=smaug,m_kato
This API is temporarily available and useful for web app developers who want to
stop supporting Gecko specific join/split direction handling as soon as possible
and who do not want Mozilla block their release schedule by rescheduling of
shipping the new behavior.  Additionally, adding this command allows web apps
detects whether Gecko supports the new behavior and whether it's enabled.

On the other hand, We don't want to ship opt-out API because it's hard to keep
maintaining the legacy behavior specific paths.  Therefore, the command does
nothing if web app calls
`Document.execCommand("enableCompatibleJoinSplitDirection", false "false")` if
the new behavior is enabled by default.

Differential Revision: https://phabricator.services.mozilla.com/D172351
2023-03-21 23:58:04 +00:00
Tom Ritter
8126391f4d Bug 1815307: Make all ShouldRFP functions take a RTPTarget r=timhuang
The default value for the target is Unknown, so all callsites
keep working.

We also add a Target value used for Document precomputation. This
value is enabled in RFP Lite mode, and allows us to precompute
ShouldRFP and cache it for faster computations later.  (The later
computations will still check the Target, but won't need to do the
other expensive checks.)

Differential Revision: https://phabricator.services.mozilla.com/D170891
2023-03-21 14:14:48 +00:00
Emilio Cobos Álvarez
f69a397491 Bug 1449669 - Remove IsNodeOfType. r=longsonr
Depends on D172893

Differential Revision: https://phabricator.services.mozilla.com/D172894
2023-03-17 19:22:14 +00:00
Saira Abdulla
849cb28aef Bug 1822222 - Convert browser/actors/PageStyle* JSMs to ESMs. r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D172674
2023-03-17 01:55:59 +00:00
Alexander Surkov
d00e971fa8 Bug 1821732 - implement "hide all popovers unitl" algorithm, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172701
2023-03-16 16:52:30 +00:00
Cristina Horotan
1b7f31569f Backed out 7 changesets (bug 1815307) for causing mochitest failures at test_bug1729861.html CLOSED TREE
Backed out changeset 18c8ae091952 (bug 1815307)
Backed out changeset df49c162e4ad (bug 1815307)
Backed out changeset a22d49909ffa (bug 1815307)
Backed out changeset 371d1d626984 (bug 1815307)
Backed out changeset 7f4b594cf468 (bug 1815307)
Backed out changeset 83d79fcbded5 (bug 1815307)
Backed out changeset 337dfbf6a1f9 (bug 1815307)
2023-03-16 17:51:56 +02:00
Tom Ritter
c3c3d10155 Bug 1815307: Make all ShouldRFP functions take a RTPTarget r=timhuang
The default value for the target is Unknown, so all callsites
keep working.

We also add a Target value used for Document precomputation. This
value is enabled in RFP Lite mode, and allows us to precompute
ShouldRFP and cache it for faster computations later.  (The later
computations will still check the Target, but won't need to do the
other expensive checks.)

Differential Revision: https://phabricator.services.mozilla.com/D170891
2023-03-16 13:53:13 +00:00
Alexander Surkov
802a7fe55e Bug 1821732 - implement auto popover list, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D172296
2023-03-13 20:18:46 +00:00
Gijs Kruitbosch
4bce72eba0 Bug 1804504 - fix docgroup assertion failing due to unlinked/CC'd groups, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D171753
2023-03-08 14:10:59 +00:00
Emilio Cobos Álvarez
daefa22bbe Bug 1820280 - Be consistent for which URIs we expose chrome rules. r=dshin
Differential Revision: https://phabricator.services.mozilla.com/D171640
2023-03-07 20:22:23 +00:00
Emilio Cobos Álvarez
6d1a8e1fe7 Bug 1819664 - Notify chrome docs when async translation work is done. r=smaug,Gijs
This prototypes the proposal in bug 1738056 comment 22.

Depends on D171359

Differential Revision: https://phabricator.services.mozilla.com/D171360
2023-03-04 00:04:21 +00:00
Emilio Cobos Álvarez
63c3f2461d Bug 1818927 - Remove minimal-xul.css. r=dholbert
No longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D171012
2023-02-27 10:03:51 +00:00
Norisz Fay
86eecedbf2 Backed out 6 changesets (bug 1818927) for causing bc failurs on browser_parsable_css.js CLOSED TREE
Backed out changeset 02c5f8c116b5 (bug 1818927)
Backed out changeset 6cf817fdd398 (bug 1818927)
Backed out changeset 0f0342ee4149 (bug 1818927)
Backed out changeset 4f944842cde4 (bug 1818927)
Backed out changeset 08ad4bea30d6 (bug 1818927)
Backed out changeset f50bb20ae41d (bug 1818927)
2023-02-27 02:49:46 +02:00
Emilio Cobos Álvarez
71ed8e59e3 Bug 1818927 - Remove minimal-xul.css. r=dholbert
No longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D171012
2023-02-26 23:09:20 +00:00
Olli Pettay
f465a04662 Bug 1816312, try to avoid creating Range objects in some common cases when spellchecker is disabled for contentEditable, r=masayuki
This is not very optimimal, but tracking spellchecking state in DOM tree is tricky because of multiple contentEditables and possibility to set spellcheck true/false anywhere etc.
At least this helps with the testcase quite a bit.

Differential Revision: https://phabricator.services.mozilla.com/D169870
2023-02-16 11:48:13 +00:00
Sean Feng
a9879a223f Bug 1444491 - Check the number of script blocking style sheets in autofocus algorithm r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D165224
2023-02-15 20:08:38 +00:00
Sean Feng
e34e4f4a5a Bug 1444491 - Update the autofocus steps to align with the spec r=emilio,smaug
Spec: https://html.spec.whatwg.org/#the-autofocus-attribute

Differential Revision: https://phabricator.services.mozilla.com/D160127
2023-02-15 20:08:36 +00:00
Csoregi Natalia
35e053d28d Backed out 7 changesets (bug 1444491, bug 1801761) for causing failures on autofocus-attribute.svg. CLOSED TREE
Backed out changeset 1cee414009cb (bug 1444491)
Backed out changeset 30f786b79191 (bug 1444491)
Backed out changeset ce06375518a7 (bug 1801761)
Backed out changeset 64c8bb293e5c (bug 1444491)
Backed out changeset 94aa0ce630f2 (bug 1444491)
Backed out changeset 80010eabc0c1 (bug 1444491)
Backed out changeset 7d8da1f44177 (bug 1444491)
2023-02-15 19:03:59 +02:00
Sean Feng
4515a7c4af Bug 1444491 - Check the number of script blocking style sheets in autofocus algorithm r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D165224
2023-02-15 14:13:42 +00:00
Sean Feng
6be4df850b Bug 1444491 - Update the autofocus steps to align with the spec r=emilio,smaug
Spec: https://html.spec.whatwg.org/#the-autofocus-attribute

Differential Revision: https://phabricator.services.mozilla.com/D160127
2023-02-15 14:13:40 +00:00
Olli Pettay
3cb350329e Bug 1816147 - Remove Document::Release, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D169548
2023-02-13 13:42:00 +00:00
alwu
b85605bf2d Bug 1814985 - part1 : remove experimental API 'document.autoplayPolicy'. r=media-playback-reviewers,emilio,padenot
Differential Revision: https://phabricator.services.mozilla.com/D168856
2023-02-06 18:09:59 +00:00
Emilio Cobos Álvarez
89c5a582ca Bug 1813593 - Dump use counters with dom.use_counters.dump.{document,worker,page}. r=smaug,zcorpan
The idea is that dumping the counter with the url all the time prevents
(or at least mitigates) races between different process.

This should allow to get the counters from local builds in a
semi-structured / easy to filter-and-parse way.

Differential Revision: https://phabricator.services.mozilla.com/D168469
2023-02-02 12:51:23 +00:00
Denis Palmeiro
b747ea3c49 Bug 1813320: Remove Telemetry::SetEventRecordingEnabled for page_load event r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D168215
2023-01-30 14:48:03 +00:00
Jan-Niklas Jaeschke
aef95a5286 Bug 1803355: Basic implementation of Custom Highlight API. r=edgar,emilio
Added WebIDL interfaces as per spec, added some necessary changes to support maplike and setlike structures to be accessed from C++.

Added `::highlight(foo)` pseudo element to CSS engine.

Implemented Highlight as new kind of `Selection` using `HighlightType::eHighlight`. This implies Selections being added/removed during runtime (one `Selection` object per highlight identifier), therefore a dynamic container for highlight `Selection` objects was added to `nsFrameSelection`. Also, the painting code queries the highlight style for highlight Selections.

Implementation is currently hidden behind a pref `dom.customHighlightAPI.enabled`.

Differential Revision: https://phabricator.services.mozilla.com/D164203
2023-01-27 11:42:18 +00:00
Sandor Molnar
cd459846bb Backed out changeset d7f27aa40260 (bug 1803355) for causing win build bustage. 2023-01-24 18:07:50 +02:00
Jan-Niklas Jaeschke
393f250021 Bug 1803355: Basic implementation of Custom Highlight API. r=edgar,emilio
Added WebIDL interfaces as per spec, added some necessary changes to support maplike and setlike structures to be accessed from C++.

Added `::highlight(foo)` pseudo element to CSS engine.

Implemented Highlight as new kind of `Selection` using `HighlightType::eHighlight`. This implies Selections being added/removed during runtime (one `Selection` object per highlight identifier), therefore a dynamic container for highlight `Selection` objects was added to `nsFrameSelection`. Also, the painting code queries the highlight style for highlight Selections.

Implementation is currently hidden behind a pref `dom.customHighlightAPI.enabled`.

Differential Revision: https://phabricator.services.mozilla.com/D164203
2023-01-24 11:46:28 +00:00
Sandor Molnar
618c0b7888 Backed out changeset 54771a1963b6 (bug 1803355) for causing win build bustage. CLOSED TREE 2023-01-24 12:17:49 +02:00
Jan-Niklas Jaeschke
a076df46fe Bug 1803355: Basic implementation of Custom Highlight API. r=edgar,emilio
Added WebIDL interfaces as per spec, added some necessary changes to support maplike and setlike structures to be accessed from C++.

Added `::highlight(foo)` pseudo element to CSS engine.

Implemented Highlight as new kind of `Selection` using `HighlightType::eHighlight`. This implies Selections being added/removed during runtime (one `Selection` object per highlight identifier), therefore a dynamic container for highlight `Selection` objects was added to `nsFrameSelection`. Also, the painting code queries the highlight style for highlight Selections.

Implementation is currently hidden behind a pref `dom.customHighlightAPI.enabled`.

Differential Revision: https://phabricator.services.mozilla.com/D164203
2023-01-24 07:36:13 +00:00
Noemi Erli
535b2b40f5 Backed out changeset 759d4948ed8b (bug 1803355) for causing build bustages CLOSED TREE 2023-01-22 05:03:04 +02:00
Jan-Niklas Jaeschke
35b860db49 Bug 1803355: Basic implementation of Custom Highlight API. r=edgar,emilio
Added WebIDL interfaces as per spec, added some necessary changes to support maplike and setlike structures to be accessed from C++.

Added `::highlight(foo)` pseudo element to CSS engine.

Implemented Highlight as new kind of `Selection` using `HighlightType::eHighlight`. This implies Selections being added/removed during runtime (one `Selection` object per highlight identifier), therefore a dynamic container for highlight `Selection` objects was added to `nsFrameSelection`. Also, the painting code queries the highlight style for highlight Selections.

Implementation is currently hidden behind a pref `dom.customHighlightAPI.enabled`.

Differential Revision: https://phabricator.services.mozilla.com/D164203
2023-01-22 02:04:43 +00:00
Timothy Nikkel
866b7af0b7 Bug 1810563. Ignore CSP on SVG images in srcset in addition to src. r=smaug
This is the same fix as bug 1262842 but extended to imageset.

Differential Revision: https://phabricator.services.mozilla.com/D167319
2023-01-20 11:55:14 +00:00
Martin Robinson
8f25440f6e Bug 1807251 - Small cleanup of fix for nested content-visibility: auto elements r=emilio
This change removes an unused member that was accidentally preserved
from an earlier version of the fix and also makes the argument to
`DOMIntersectionObserver::Update` a reference since it can never be null
and the method was not asserting that it wasn't.

Differential Revision: https://phabricator.services.mozilla.com/D167356
2023-01-20 11:04:45 +00:00
Makoto Kato
6e50e74627 Bug 1744288 - Allow screen.orientation.lock even if fullscreen request is pending. r=smaug
This issue isn't spec issue. This is a kind of web compatibility issue.

UA can require per-lock conditions to use screen orientation lock [*1]. Gecko
and Blink require full screen to allow screen orientation lock.

But, actually, both is different.
- Gecko requires fullscreen request is completed.
- Blink requires fullscreen request is pending or fullscreen is completed.

It means that the following script is worked on Blink, but Gecko doesn't

```javascript
element.requestFullscreen(); // <- Don't wait for completion
window.screen.orientation.lock("portrait");
```

YouTube etc don't wait for completion of fullscreen request to call
`screen.orientation.lock()` like this script. So I would like to change the
behavior like Blink for web compatibility.

Also, `screen.orientation.lock()` will return rejected promise if pending
fullscreen request is canceled.

To allow pending full screen request for per-lock condition, we should check
whether we have pending full screen request. If having it, we should wait for
the completion of full screen request.

*1 https://w3c.github.io/screen-orientation/#locking-the-screen-orientation

Differential Revision: https://phabricator.services.mozilla.com/D149036
2023-01-19 02:15:30 +00:00
Makoto Kato
bd77026b85 Bug 1744288 - Store pending full screen request when calling element.requestFullscreen immediately. r=edgar
When `element.requestFullscreen` is called, we dispatch small task via
`Document::AsyncRequestFullscreen`. But it doesn't append `FullscreenRequests`
to `PendingFullscreenChangeList` immediately. So if we want to check
whether we have pending full screen request, we have to run an event loop.

Although I would like to check whether we have pending full screen request for
`screen.orientation.lock` compatibility, since we don't append it to pending
list immediately, we don't have the easy way to detect it.

`RequestFullscreen` doesn't wait for the completion if it runs on content
process since `RequestFullscreenInContentProcess` doesn't wait for the result
of chrome event. If runs on chrome process, `RequestFullscreenInParentProcess`
is synchronous. So this change removes `AsyncRequestFullscreen` and simply
calls `RequestFullscreen`.

By not using AsyncRequestFullscreen, we will append `FullscreenRequests` to
pending list immediately, so we can check it without event loop.

Differential Revision: https://phabricator.services.mozilla.com/D163583
2023-01-19 02:15:30 +00:00
Makoto Kato
9ccfa65901 Bug 1744288 - Remove unused mPendingFullscreenRequests variable. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D149035
2023-01-19 02:15:29 +00:00
Edgar Chen
deec507198 Bug 1794622; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D161133
2023-01-17 20:22:16 +00:00
Sean Feng
8cc9d8d4c9 Bug 1807847 - Ensure the document is active when ObserveForLastRememberedSize is called r=emilio
For this particular crash, I was not able to reproduce it locally.
However, based on the testcase, it looks like what happened was the
window is transitioning into a new document, and the synchronous XHR
causes the event loop to execute ObserveForLastRememberedSize. I think
it's safe to not creating the observer since we are inactivating
the document.

Differential Revision: https://phabricator.services.mozilla.com/D166192
2023-01-13 15:25:21 +00:00
Valentin Gosu
5cf2ce02c5 Bug 1596845 - Pass full trr domain into content process r=acreskey,necko-reviewers,kershaw
Previosuly we'd only pass the `TRRService::ProviderKey()` into the content
process. But now we need the full domain for the error page in the content
process, so we now pass the full domain. The ChildDNSService now holds on
to the full domain, but calls into `TRRService` to update the key for
telemetry and returns that when necessary.

Depends on D164348

Differential Revision: https://phabricator.services.mozilla.com/D164642
2022-12-23 09:26:16 +00:00
Marian-Vasile Laza
6fb0160a69 Backed out 9 changesets (bug 1596845) for causing xpcshell failures on test_trr_enterprise_policy.js. CLOSED TREE
Backed out changeset 231acfc052bb (bug 1596845)
Backed out changeset 7d02dad4d720 (bug 1596845)
Backed out changeset b0449eec2671 (bug 1596845)
Backed out changeset 5cd033c9ef7c (bug 1596845)
Backed out changeset 98d583f1d19e (bug 1596845)
Backed out changeset b78bc0049605 (bug 1596845)
Backed out changeset 88919aaff89b (bug 1596845)
Backed out changeset f4adb3e7b8e1 (bug 1596845)
Backed out changeset b171f7ac0b40 (bug 1596845)
2022-12-23 09:21:39 +02:00
Valentin Gosu
8e8e32a483 Bug 1596845 - Pass full trr domain into content process r=acreskey,necko-reviewers,kershaw
Previosuly we'd only pass the `TRRService::ProviderKey()` into the content
process. But now we need the full domain for the error page in the content
process, so we now pass the full domain. The ChildDNSService now holds on
to the full domain, but calls into `TRRService` to update the key for
telemetry and returns that when necessary.

Depends on D164348

Differential Revision: https://phabricator.services.mozilla.com/D164642
2022-12-23 01:20:02 +00:00
Sandor Molnar
a10fcf6c07 Backed out 9 changesets (bug 1596845) for causing mochitest failures in browser/base/content/test/about/browser_aboutCertError_telemetry.js
Backed out changeset eb1e34c3041f (bug 1596845)
Backed out changeset af6d41439c60 (bug 1596845)
Backed out changeset f1447dd8df04 (bug 1596845)
Backed out changeset a383f2bbcaae (bug 1596845)
Backed out changeset 950c66dd6133 (bug 1596845)
Backed out changeset ab300239fd69 (bug 1596845)
Backed out changeset 8e1fe024b680 (bug 1596845)
Backed out changeset 80e5048d1f35 (bug 1596845)
Backed out changeset b14a4910d73b (bug 1596845)
2022-12-23 00:56:35 +02:00