Changeset 179937 in webkit
- Timestamp:
- Feb 11, 2015, 10:36:38 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
page/Performance.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r179933 r179937 1 2015-02-11 Sam Weinig <sam@webkit.org> 2 3 performance.now can crash if accessed from a window that has navigated 4 <rdar://problem/16892506> 5 https://bugs.webkit.org/show_bug.cgi?id=141478 6 7 Reviewed by Alexey Proskuryakov. 8 9 Test: fast/performance/performance-now-crash-on-navigated-window.html 10 11 * page/Performance.cpp: 12 (WebCore::Performance::now): 13 Check for a null frame, which can happen when the window has been navigated. 14 1 15 2015-02-10 Alexey Proskuryakov <ap@apple.com> 2 16 -
trunk/Source/WebCore/page/Performance.cpp
r178859 r179937 229 229 double Performance::now() const 230 230 { 231 if (!frame()) 232 return 0; 233 231 234 return 1000.0 * m_frame->document()->loader()->timing().monotonicTimeToZeroBasedDocumentTime(monotonicallyIncreasingTime()); 232 235 }
Note:
See TracChangeset
for help on using the changeset viewer.