Closed Bug 958957 Opened 12 years ago Closed 3 months ago

MathML href links do not appear in Firefox context menu

Categories

(Firefox :: Menus, defect)

defect

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: fwang, Assigned: fwang)

References

(Blocks 1 open bug)

Details

(Keywords: helpwanted)

Attachments

(4 files)

Attached file math.xhtml
See the testcase. MathML XLink links appear in the context menu but not MathML href links.
Attached patch reftestsSplinter Review
Attached patch PatchSplinter Review
See Also: → 339725
Severity: normal → S3

MathML XLink have been removed in bug 1575870 but we should still make normal link work. Perhaps we should only focus on <a> now though

See Also: → 2026848

Fix ContextMenuChild.sys.mjs's _setContextForNodesWithChildren so that
it treats MathML elements with a href attributes as links. Contrary to
what is claimed in the code comments, it's currently not consistent with
hrefAndLinkNodeForClickEvent from browser.js or BrowserUtils.sys.mjs,
but that change makes the behavior slightly closer.

Note that these other code paths consider XLink href attributes on MathML
elements but support has been removed since bug 1575870, so we don't
copy that part, it will be removed in a follow-up patch.

Additionally, there is a plan to deprecate usage of href attributes on
most MathML elements but <a>, so the new tests consider this element
as well as the deprecated case.

Assignee: nobody → fwang
Status: NEW → ASSIGNED
Blocks: 2027969
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Blocks: 2028363
QA Whiteboard: [qa-triage-done-c152/b151]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: