Closed
Bug 1017425
Opened 10 years ago
Closed 10 years ago
Consider making window.performance StoreInSlot
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review |
To make performance.now() faster.
![]() |
Assignee | |
Comment 1•10 years ago
|
||
Attachment #8430541 -
Flags: review?(peterv)
![]() |
Assignee | |
Updated•10 years ago
|
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Comment 2•10 years ago
|
||
Comment on attachment 8430541 [details] [diff] [review] Fix, for when we can actually land this Review of attachment 8430541 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/base/nsGlobalWindow.cpp @@ +2346,5 @@ > // document. > mDoc = aDocument; > if (IsInnerWindow() && IsDOMBinding()) { > WindowBinding::ClearCachedDocumentValue(cx, this); > + WindowBinding::ClearCachedPerformanceValue(cx, this); Might be worth extracting this to a nsGlobalWindow::ClearSlots(...)?
Attachment #8430541 -
Flags: review?(peterv) → review+
![]() |
Assignee | |
Comment 3•10 years ago
|
||
> Might be worth extracting this to a nsGlobalWindow::ClearSlots(...)?
How about ClearDocumentDependentSlots()?
Flags: needinfo?(peterv)
![]() |
Assignee | |
Comment 5•10 years ago
|
||
Olli, do this bug we need to make the "performance" getter non-throwing. That basically means backing out bug 1025078 and replacing it with the changes in this bug (to return null and null-check in console code). Any objections?
Flags: needinfo?(bugs)
Comment 6•10 years ago
|
||
Returning null in those very odd cases sounds ok to me.
Flags: needinfo?(bugs)
![]() |
Assignee | |
Comment 7•10 years ago
|
||
![]() |
Assignee | |
Updated•10 years ago
|
Attachment #8430541 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 8•10 years ago
|
||
I filed bug 1063879 on making this faster on Worker too.
![]() |
Assignee | |
Comment 9•10 years ago
|
||
![]() |
Assignee | |
Updated•10 years ago
|
Attachment #8448770 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 10•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/fc2a4c5ac088
Target Milestone: --- → mozilla35
Comment 11•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/fc2a4c5ac088
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•