Commit Graph

2004 Commits

Author SHA1 Message Date
Gregory Pappas
f927d3f798 Bug 1833189 - Remove plugin.state.flash pref r=mossop,webdriver-reviewers,perftest-reviewers,whimboo,afinder,emilio
Differential Revision: https://phabricator.services.mozilla.com/D178089
2023-05-26 19:06:18 +00:00
Valentin Gosu
19be8f8772 Bug 1835060 - Failed assertion in ChildDNSService::GetSingleton r=necko-reviewers,kershaw
Instead of instantiating a ChildDNSService, we should instantiate the correct
object for the current process, which may very well be the main process.

Differential Revision: https://phabricator.services.mozilla.com/D179093
2023-05-26 08:01:02 +00:00
Emilio Cobos Álvarez
0112dd8e60 Bug 1832528 - Make cors mode part of the image cache key. r=tnikkel
So that we can hold entries loaded with different CORS modes, such as
masks and backgrounds.

Differential Revision: https://phabricator.services.mozilla.com/D177759
2023-05-25 22:25:31 +00:00
Emilio Cobos Álvarez
f8efc66d64 Bug 1834813 - Document.allowDeprecatedTls is dead code. r=smaug,geckoview-reviewers,m_kato
This was added in bug 1641597, but nowadays neither us nor Fenix show
any UI to enable deprecated TLS anymore. That string isn't in the
firefox-android repo afaict:

  https://github.com/search?type=code&q=repo%3Amozilla-mobile%2Ffirefox-android+allowDeprecatedTls

So this is just dead code.

Differential Revision: https://phabricator.services.mozilla.com/D178958
2023-05-25 10:00:46 +00:00
Mirko Brodesser
69393d67be Bug 1834493: part 2) Remove reference to wrong spec definition from Document::HidePopover. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D178771
2023-05-24 10:48:04 +00:00
Tom Schuster
eca6f717a4 Bug 1825250 - Remove the enum value RFPTarget::IgnoreTargetAndReturnCachedValue and instead indicate changes as a return value. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D176297
2023-05-24 09:38:25 +00:00
Ziran Sun
f0059c8f06 Bug 1832837 - Remove the fullscreen element ready check on fullscreen element descendant. r=edgar
https://fullscreen.spec.whatwg.org/#fullscreen-element-ready-check

Differential Revision: https://phabricator.services.mozilla.com/D177913
2023-05-23 08:51:37 +00:00
Butkovits Atila
86f0e977a8 Backed out changeset 46fd81530a8b (bug 1832837) for causing failures at fullscreen-reordering.html. 2023-05-22 23:25:36 +03:00
Ziran Sun
8694c9bda1 Bug 1832837 - Remove the fullscreen element ready check on fullscreen element descendant. r=edgar
https://fullscreen.spec.whatwg.org/#fullscreen-element-ready-check

Differential Revision: https://phabricator.services.mozilla.com/D177913
2023-05-22 12:20:47 +00:00
Cosmin Sabou
b0b388c05c Backed out changeset 7ea2efe7df94 (bug 1832837) for causing /fullscreen/api wpt unexpected passes. 2023-05-19 17:11:15 +03:00
Ziran Sun
899e2c3c3d Bug 1832837 - Remove the fullscreen element ready check on fullscreen element descendant. r=edgar
https://fullscreen.spec.whatwg.org/#fullscreen-element-ready-check

Differential Revision: https://phabricator.services.mozilla.com/D177913
2023-05-19 10:14:37 +00:00
Ziran Sun
a716d1e6ed Bug 1831057 - Handle conflict interactions between popover, modal dialog and fullscreen. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D177003
2023-05-17 18:49:45 +00:00
Sean Feng
b8c8157d3c Bug 1816287 - Always exit fullscreen when triggering on external protocol r=edgar
It's a security risk such that the maximized external program can obscure
the fullscreen notification and the malicious site can use this trick
to load a spoofed page in the background without user notices it.

This patch minimized the risk by always exit the fullscreen mode when
an external protocol is triggered.

Differential Revision: https://phabricator.services.mozilla.com/D177771
2023-05-17 18:00:18 +00:00
Norisz Fay
e476e08413 Backed out changeset 6fa00ccfe7e0 (bug 1816287) for causing bustages on LocationBase.cpp CLOSED TREE 2023-05-17 20:11:39 +03:00
Sean Feng
79b4c118c0 Bug 1816287 - Always exit fullscreen when triggering on external protocol r=edgar
It's a security risk such that the maximized external program can obscure
the fullscreen notification and the malicious site can use this trick
to load a spoofed page in the background without user notices it.

This patch minimized the risk by always exit the fullscreen mode when
an external protocol is triggered.

Differential Revision: https://phabricator.services.mozilla.com/D177771
2023-05-17 16:34:57 +00:00
Tim Huang
6226f2ee14 Bug 1831265 - Inherit fingerprinting random key from the parent document when creating cookieJarSettings in a document. r=pbz
There are some cases that we need to create cookieJarSettings from the
parent document, such as Javascript URL document. We need to inherit the
random key from the parent document to properly propagate the key to the
javascript URL document.

This patch implements the inheritance of the random key and add a test
for it.

Differential Revision: https://phabricator.services.mozilla.com/D177194
2023-05-16 07:23:18 +00:00
Masayuki Nakano
68d5732829 Bug 1829570 - part 2: Add an overload of AsyncEventDispatcher::RunDOMEventWhenSafe r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D176488
2023-05-15 01:07:29 +00:00
Masayuki Nakano
d8b4f4d3a2 Bug 1829570 - part 1: Create a static method version of AsyncEventDispatcher::RunDOMEventWhenSafe r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D176486
2023-05-15 01:07:29 +00:00
Gregory Pappas
03fb9a63ef Bug 1833001 - Remove MozApplicationManifest event r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D177972
2023-05-14 09:18:33 +00:00
Stanca Serban
95ee09b30b Backed out changeset e1a398764f9e (bug 1831057) for causing wpt failures in popover-top-layer-combinations.html. 2023-05-12 15:39:38 +03:00
Ziran Sun
5bff97d750 Bug 1831057 - Handle conflict interactions between popover, modal dialog and fullscreen. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D177003
2023-05-12 08:00:26 +00:00
Tom Ritter
8a5309d00e Bug 1805101: If there _is_ a parent document, refer to it to determine if RFP should be exempted r=smaug,emilio
Not all parent documents should be referred to. We only want to
defer to the parent document if we are a blob, an about:blank
document, or an about:srcdoc document.

In Fission, cross-origin parent documents have a nullptr here.
So it kind of works without the additional check just by accident.
But without Fission (e.g. on Android) there is a cross-origin
document pointer here, so we need to explicitly say what types
of documents we can defer to the parent.

Differential Revision: https://phabricator.services.mozilla.com/D175544
2023-05-11 13:44:09 +00:00
Cathie Chen
c0e5ac9b63 Bug 1830920 - Popover: Prevent hidePopover from causing a recursive loop through event handler, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D177011
2023-05-10 13:24:47 +00:00
Emilio Cobos Álvarez
79e2754796 Bug 1831539 - Remove HasBoxFFI. r=boris
HasBoxFFI and HasArcFFI aren't great, see bug 1831242 as for examples of
why.

HasArcFFI requires a bit more care, but HasBoxFFI doesn't give us much
benefit. Instead use the same type in the FFI boundary.

Differential Revision: https://phabricator.services.mozilla.com/D177252
2023-05-09 11:07:26 +00:00
Emilio Cobos Álvarez
8935ddff74 Bug 1831508 - Cleanup DOMSubtreeModified event dispatch. r=smaug
I was looking at this code recently and it seemed worth cleaning up a
little bit.

No behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D177235
2023-05-05 10:08:07 +00:00
Cathie Chen
34946d7857 Bug 1829385 - Popover: The element calling hidePopover is not always on the top of auto popover list, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D176150
2023-05-03 13:43:16 +00:00
Kagami Sascha Rosylight
1ec355a45c Bug 1831065 - Part 2: Remove unused ErrorResult parameters in highlight and selection r=webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D177008
2023-05-03 13:24:53 +00:00
Kagami Sascha Rosylight
7c39b031e7 Bug 1831065 - Part 1: Remove unused ErrorResult in dom/{abort,base} r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D177007
2023-05-03 13:24:53 +00:00
Cathie Chen
d1a28011c6 Bug 1825808 - Popover: Complete ShowPopover and HidePopover, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D175395
2023-05-02 11:29:20 +00:00
Kershaw Chang
f446ba9e37 Bug 1808323 - Add telemetry for the page load time and the time to first paint for sites that supports Early Hints response, r=manuel,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D165966
2023-05-02 08:08:44 +00:00
Butkovits Atila
8618eaf1cd Backed out changeset 4fd18988ada9 (bug 1825808) for causing failures at popover-open-overflow-display.html. CLOSED TREE 2023-04-27 23:36:17 +03:00
Cathie Chen
cdb42d1bb6 Bug 1825808 - Popover: Complete ShowPopover and HidePopover, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D175395
2023-04-27 17:49:06 +00:00
Mirko Brodesser
440749064c Bug 1830031: split nsGenericHTMLElement::HandleFocusAfterHidingPopover. r=emilio
To achieve `MOZ_CAN_RUN_SCRIPT`-correctness.

Bonus: avoids a call of `do_QueryReferent`.

Differential Revision: https://phabricator.services.mozilla.com/D176521
2023-04-26 12:12:26 +00:00
Cathie Chen
2ac097f4c0 Bug 1828969 - Popover: Check the popover's document in showPopover, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D175935
2023-04-26 10:25:21 +00:00
Tom Schuster
c0e2d75ae6 Bug 1828423 - Cut CSS prefers-color-scheme over to RFPTarget. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D175633
2023-04-21 09:45:22 +00:00
Brad Werth
7ee093d55c Bug 1826645 Part 2: Make Document hold fullscreen requests while an exit is being processed. r=edgar
This change makes the parent process delay a fullscreen request if there
is a pending fullscreen exit. It also changes the DOMFullscreenParent
actor listener lifecycle. Once it has started handling a fullscreen
request, it will remain a listener to the Document until it receives an
exit event when the manager is out of fullscreen.

Differential Revision: https://phabricator.services.mozilla.com/D175186
2023-04-18 16:10:03 +00:00
Brad Werth
7da0c57aba Bug 1826645 Part 1: Make FullscreenElementReadyCheck check for focused tabs, not active tabs. r=edgar
This change relaxes the check slightly. Spec requires that the tab is
focused. Our existing check for "active" is additionally requiring the tab
to be non-occluded. Since occlusion updates are asynchronous when the
transition itself is asynchronous, this change allows rapid requests to be
permitted as long as the underlying window and tab state is as expected.

Differential Revision: https://phabricator.services.mozilla.com/D174983
2023-04-18 16:10:03 +00:00
Emilio Cobos Álvarez
c5c8aee75c Bug 1827856 - Remove nativeAnonymousChildList observers. r=smaug,credential-management-reviewers,devtools-reviewers,sgalich,nchevobbe
You let me know if this seems appealing to you :)

Differential Revision: https://phabricator.services.mozilla.com/D175382
2023-04-18 14:58:34 +00:00
Ziran Sun
e298c0c1bf Bug 1824350 - Implement queue a popover toggle event task for Popover. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D173820
2023-04-18 13:51:23 +00:00
Emilio Cobos Álvarez
78db2ee9f0 Bug 1827516 - Fix retargeting of UAWidget.elementFromPoint(). r=smaug
The continue in GetContentInThisDocument meant that if we call that in a
UA widget we'd return null...

This breaks the following check:

  https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/toolkit/content/widgets/videocontrols.js#1373-1381

Which was introduced in bug 1513600 to fix precisely this bug...

Depends on D175714

Differential Revision: https://phabricator.services.mozilla.com/D175715
2023-04-18 09:23:06 +00:00
Alexander Surkov
3ce742bba0 Bug 1826793 - implement popover invoker, r=emilio
See https://html.spec.whatwg.org/multipage/popover.html#popover-invoker

Differential Revision: https://phabricator.services.mozilla.com/D175265
2023-04-17 14:17:06 +00:00
Emilio Cobos Álvarez
d833b1bea6 Bug 1827854 - Allow DevTools to observe DOM mutations of NAC / UA widgets. r=smaug,devtools-reviewers,jdescottes
This doesn't change behavior yet (see bug 1827850 comment 0), but it's a
prerequisite for that so may as well land it.

Differential Revision: https://phabricator.services.mozilla.com/D175341
2023-04-17 11:14:00 +00:00
Randell Jesup
9cbd993a97 Bug 1824847: Maintain number of active WebTransports per document for controlling BFCache entry r=smaug,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D173769
2023-04-15 03:32:38 +00:00
Natalia Csoregi
0dd28d1fc6 Backed out changeset 1021dafccac0 (bug 1824847) for failures on webtransport. CLOSED TREE 2023-04-14 04:07:44 +03:00
Randell Jesup
eec5de4985 Bug 1824847: Maintain number of active WebTransports per document for controlling BFCache entry r=smaug,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D173769
2023-04-13 19:35:16 +00:00
Masayuki Nakano
2805570b3c Bug 1807495 - part 1: Make Document notify HTMLEditor and IMEStateManager of pseudo focus change when editing state of focused editing host or document is changed r=smaug,m_kato
`IMEStateManager` basically runs at focus change.  However, when `designMode`
is set to `"off"` or focused editing host becomes non-editable (removing
`contenteditable` attribute or `contenteditable` attribute is set to `false`),
IME may be disabled without a focus change.  Therefore, `Document` needs to
notify `IMEStateManager` of the timing.

Additionally, `nsFocusManager` does not change focus when focused element
becomes not focusable (bug 1807597).  Therefore, `Document` needs to kick
`focus` or `blur` event handler of `HTMLEditor` when active editing host
becomes not editable.

However, if an ancestor of focused element becomes editable, I think that
`HTMLEditor` does not work well without focus move because it computes
editing host with current editing state in a lot of places, but `Selection`
and `nsFocusManager::GetFocusedElement` keeps working with previous focused
element which is now a editable child of editing host.  Therefore, this patch
marks them as `todo` in the new tests.

Differential Revision: https://phabricator.services.mozilla.com/D171196
2023-04-11 23:26:03 +00:00
Cathie Chen
e2659521ea Bug 1824823 - Popover: manage focus and previously focused element, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D173758
2023-04-06 16:10:53 +00:00
CanadaHonk
5e81dcccbc Bug 1823525 - Replace noscript.css stylesheet with scripting media query in html.css r=emilio
Replaced the noscript.css stylesheet with a scripting media query
inside of html.css, now that we support it.

Depends on D172995

Differential Revision: https://phabricator.services.mozilla.com/D173086
2023-03-28 08:01:50 +00:00
CanadaHonk
8f1c9f6df9 Bug 1166581 - Implement scripting media feature r=emilio
Implemented the scripting media feature.

Not locked behind a pref as it does not do anything new or particularly
give new data which could be used for fingerprinting (see <noscript>,
etc).

Also added new WPT tests (none previously). Not supported in any other
browsers yet.

Test page: https://goose.icu/media-scripting

Differential Revision: https://phabricator.services.mozilla.com/D172995
2023-03-28 08:01:49 +00:00
Ziran Sun
9c19f8c0f9 Bug 1823359 - Implement beforetoggle event for popover. r=emilio,smaug
Differential Revision: https://phabricator.services.mozilla.com/D172993
2023-03-24 21:09:11 +00:00