Closed Bug 2059312 Opened 3 months ago Closed 3 months ago

Implement new MathMLAnchorElement interface

Categories

(Core :: MathML, enhancement)

Firefox 155
enhancement

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: mtan, Assigned: mtan)

References

Details

(Keywords: dev-doc-complete)

Attachments

(3 external files, 3 obsolete files)

Steps to reproduce:

Implement MathMLAnchorElement interface and link behavior for MathML <a>.

Currently, MathML <a> elements do not have a dedicated DOM interface and rely on generic MathMLElement handling.

To align with the MathML Core specification and standards, we need to implement MathMLAnchorElement with HyperlinkElementUtils integration.

Standard positions: https://github.com/mozilla/standards-positions/issues/1429
Standard link: https://w3c.github.io/mathml-core/#the-a-element
Explainer: https://people.igalia.com/fwang/mathml-a-href/

Chromium already merged this feature:
https://chromium-review.googlesource.com/c/chromium/src/+/7940188

I'll working on this and will send a part 1 implementation with basic href and target navigation.

Part 1 of this bug will fix bug 2056273.

Then add other attributes: download, ping, rel/relList and referrerpolicy.

The Bugbug bot thinks this bug should belong to the 'Core::MathML' component, but is not confident enough to move the bug to that component.

Component: Untriaged → General

Add the MathMLAnchorElement C++ class, WebIDL binding, and feature pref (mathml.a.element.enabled).

Add basic href navigation, target attribute handling and HyperlinkElementUtils mixin implementation.

Assignee: nobody → mtan
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Component: General → MathML
Product: Firefox → Core
Attachment #9619779 - Attachment description: Bug 2059312 - Part 1: Add MathMLAnchorElement class and WebIDL bindings r=emilio,fredw → Bug 2059312 - Part 2: Add MathMLAnchorElement class and WebIDL bindings r=emilio,fredw
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/196a701b28e5 https://hg.mozilla.org/integration/autoland/rev/57c19ef2497d Part 2: Add MathMLAnchorElement class and WebIDL bindings r=emilio,webidl,firefox-svg-reviewers
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ff286ea0608c https://hg.mozilla.org/integration/autoland/rev/94012f6dc60a Revert "Bug 2059312 - Part 2: Add MathMLAnchorElement class and WebIDL bindings r=emilio,webidl,firefox-svg-reviewers" for causing build bustages @ nsINode.h

Once this prototype lands, it should be added to https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features. And I guess it's also worth mentioning in the dev and Nightly release notes.

[Why is this notable]: Allows to add links in MathML expressions.
[Affects Firefox for Android]: yes
[Suggested wording]: Starting with Firefox 155, Nightly supports the <a> element within the MathML namespace exposed via the new MathMLAnchorElement WebIDL interface, allowing to link mathematical expressions
[Links (documentation, blog post, etc)]:
Intent to prototype

relnote-firefox: --- → ?
Keywords: dev-doc-needed

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/61817 for changes under testing/web-platform/tests

Upstream PR was closed without merging

Move referrerpolicy attribute parsing to Element::ParseAttribute.

Update WPT tests and expectations.

Depends on D315266

Move referrerpolicy attribute parsing to Element::ParseAttribute.

Update WPT tests and expectations.

Depends on D315266

Attachment #9625115 - Attachment is obsolete: true
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/15734edd64bf https://hg.mozilla.org/integration/autoland/rev/f16775d2098f Part 2: Add MathMLAnchorElement class and WebIDL bindings r=emilio,webidl,firefox-svg-reviewers
Duplicate of this bug: 2056273
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch

Upstream PR merged by moz-wptsync-bot

Regressions: 2062929

Added to the Nightly relnotes.

Flags: needinfo?(mtan)

This enable the mathml.a.element.enabled flag for all WPT in the mathml/ directory.

Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/fa8645317484 https://hg.mozilla.org/integration/autoland/rev/e5a1ce9fd7bf Part 3: Enable the mathml.a flag to fix the ci failures for Firefox beta r=emilio

It would have been much better for tracking if Part 3 had been attached to bug 2062929 instead of being added onto an already-closed bug. Please make sure it gets a Beta uplift request.

Flags: needinfo?(mtan)

Hi Ryan, I had some issue when logging in lando, which account should I use to login?
I tried the phabricator one it doesn't work.

Flags: needinfo?(mtan) → needinfo?(ryanvm)

A patch has been attached on this bug, which was already closed. Filing a separate bug will ensure better tracking. If this was not by mistake and further action is needed, please alert the appropriate party. (Or: if the patch doesn't change behavior -- e.g. landing a test case, or fixing a typo -- then feel free to disregard this message)

This enable the mathml.a.element.enabled flag for all WPT in the mathml/ directory.

Original Revision: https://phabricator.services.mozilla.com/D318942

Attachment #9627324 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

Comment on attachment 9627324 [details]
Bug 2059312 - Part 3: Enable the mathml.a flag to fix the ci failures for Firefox beta

Revision D319112 was moved to bug 2062929. Setting attachment 9627324 [details] to obsolete.

Attachment #9627324 - Attachment is obsolete: true
Attachment #9627324 - Flags: approval-mozilla-beta?

@mtan: I created the uplift and moved it to bug 2062929 . Hopefully, that's not too confusing...

Thanks, Frédéric. I'll get it from there!

Flags: needinfo?(ryanvm)

Comment on attachment 9625119 [details]
Bug 2059312 - Part 3: Add download, ping, rel, relList and referrerPolicy attributes to MathMLAnchorElement r=emilio,fredw

Revision D317723 was moved to bug 2064612. Setting attachment 9625119 [details] to obsolete.

Attachment #9625119 - Attachment is obsolete: true

Removing the nightly-only note since the release note has been carried over for 4 cycles.
A final release note can be added and tracked under the bug that eventually enables this.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: