Closed Bug 2016071 Opened 5 months ago Closed 3 months ago

Make location.ancestorOrigins cache lists

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: sfarre, Assigned: sfarre)

References

Details

Attachments

(1 file)

Spec is reworked to try to return the same object as much as possible: https://github.com/whatwg/html/pull/12071

Implementation should be something like:

  • Stash an empty list on a Location/LocationBase
  • Stash the relevant doc's DOMStringList on the Document

Webcompat story:
Chrome returns a new object every time
Webkit caches the object.

Severity: -- → S3

Caches an empty list on Location for when relevant doc is null, and
caches the DOMStringList on Document when the user has called it. Which
moves us closer to spec.

Attachment #9570166 - Attachment description: Bug 2016071 - Return cached same-object anscestorOrigins list when possible r=#dom-core! → Bug 2016071 - Return cached same-object ancestorOrigins list when possible r=#dom-core!
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
QA Whiteboard: [qa-triage-done-c152/b151]
Regressions: 2034329
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: