RESOLVED FIXED 141478
performance.now can crash if accessed from a window that has navigated
https://bugs.webkit.org/show_bug.cgi?id=141478
Summary performance.now can crash if accessed from a window that has navigated
Sam Weinig
Reported 2015-02-11 10:03:20 PST
performance.now can crash if accessed from a window that has navigated
Attachments
Patch (4.85 KB, patch)
2015-02-11 10:10 PST, Sam Weinig
ap: review+
Sam Weinig
Comment 1 2015-02-11 10:10:01 PST
Sam Weinig
Comment 2 2015-02-11 10:20:25 PST
Alexey Proskuryakov
Comment 3 2015-02-11 10:26:47 PST
Comment on attachment 246395 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=246395&action=review > LayoutTests/fast/performance/performance-now-crash-on-navigated-window.html:26 > + // Should not crash. > + value = perfFromInitialFrame.now(); > + shouldBe('value', '0'); Please test Firefox, and possibly update the comment for other reasonable outcomes. This way, if someone changes our behavior to match Firefox and accidentally breaks this test, they will have an easier time figuring out if that's OK.
Sam Weinig
Comment 4 2015-02-11 10:33:12 PST
Sam Weinig
Comment 5 2015-02-11 10:36:36 PST
Alexey Proskuryakov
Comment 6 2015-02-11 14:29:25 PST
The new regression test just crashed on a GuardMalloc bot: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.WebCore 0x000000010824024a WebCore::Performance::now() const + 10 1 com.apple.WebCore 0x000000010802b58e WebCore::jsPerformancePrototypeFunctionNow(JSC::ExecState*) + 126 2 ??? 0x0000000112f73028 0 + 4613156904 3 com.apple.JavaScriptCore 0x0000000106e8e248 llint_entry + 22290 4 com.apple.JavaScriptCore 0x0000000106e8e248 llint_entry + 22290
Alexey Proskuryakov
Comment 7 2015-02-11 14:30:32 PST
False alarm, that's because the test was landed before the fix :)
Note You need to log in before you can comment on or make changes to this bug.