Closed Bug 1843239 Opened 1 year ago Closed 1 year ago

Consider to use [Pure, StoreInSlot] for Location.hash, or cache the value in C++

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(2 files)

Angular is accessing .hash a lot, yet the value of the hash value seems to stay the same.
I think [Pure, StoreInSlot] annotation should work in this case (even though we have a proxy around), similarly to window.performance.
Need to clear the slot when url changes.

Or if not StoreInSlot, then Cached

Whiteboard: [sp3]

I'm investigating this.

Assignee: nobody → smaug
Attachment #9344278 - Attachment description: WIP: Bug 1843239, [Cached] Location.hash, r=peterv → Bug 1843239, [Cached] Location.hash, r=peterv
Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/afbaf4c16b44 add a test for the current location.hash handling in Gecko, r=peterv,dom-core
Backout by sstanca@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0a238650aa09 Backed out changeset ce4f02a4ad1e for causing multiple failures. CLOSED TREE

Backed out for causing multiple failures.


  • Push with failures - reftests 1
  • Failure Log
  • Failure line: REFTEST PROCESS-CRASH | application crashed [@ libsystem_kernel.dylib + 0x0000000000000dfa] | file:///opt/worker/tasks/task_169081719997154/build/tests/reftest/tests/layout/reftests/margin-collapsing/reftest.list

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: Consider to use [Pure, StoreInSlot] for Location.hash → Consider to use [Pure, StoreInSlot] for Location.hash, or cache the value in C++
Attachment #9344278 - Attachment description: Bug 1843239, [Cached] Location.hash, r=peterv → Bug 1843239, optimize Location.hash, r=peterv
Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2a69f2deff29 optimize Location.hash, r=peterv,dom-core
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: