Closed
Bug 1017425
Opened 11 years ago
Closed 11 years ago
Consider making window.performance StoreInSlot
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file, 2 obsolete files)
|
7.34 KB,
patch
|
Details | Diff | Splinter Review |
To make performance.now() faster.
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8430541 -
Flags: review?(peterv)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Comment 2•11 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•11 years ago
|
||
> Might be worth extracting this to a nsGlobalWindow::ClearSlots(...)?
How about ClearDocumentDependentSlots()?
Flags: needinfo?(peterv)
| Assignee | ||
Comment 5•11 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•11 years ago
|
||
Returning null in those very odd cases sounds ok to me.
Flags: needinfo?(bugs)
| Assignee | ||
Comment 7•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Attachment #8430541 -
Attachment is obsolete: true
| Assignee | ||
Comment 8•11 years ago
|
||
I filed bug 1063879 on making this faster on Worker too.
| Assignee | ||
Comment 9•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Attachment #8448770 -
Attachment is obsolete: true
| Assignee | ||
Comment 10•11 years ago
|
||
Target Milestone: --- → mozilla35
Comment 11•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•