Closed Bug 1884219 Opened 11 months ago Closed 11 months ago

Prevent the extraction and parsing of hrefs containing Javascript

Categories

(Firefox :: Search, task, P2)

task

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: jteow, Assigned: jteow)

References

Details

(Whiteboard: [sng])

Attachments

(1 file)

Typically our href extraction process shouldn't encounter inline Javascript as it's doubtful our regular expressions would overlap with it.

However, topDown selection of elements could encounter this.

The extractHrefs method is used to retrieve hrefs from components before passing it
SearchSERPTelemetry to store for future use when observer activity in the network process.
Javascript URLs are uncommon but can accidentally be extracted, especially if a topDown
search for elements is used. No test is added because the presence of the element in an
categorized component will break existing tests.

Pushed by jteow@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/94321c63dcf4 Don't extract hrefs from elements if it contains Javascript - r=scunnane
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: