Closed
Bug 1025741
Opened 10 years ago
Closed 10 years ago
Firefox 30 crashes on console.time in HTML page generated by XSLT
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: rick.brown, Assigned: baku)
References
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
Steps to reproduce:
1. Save test.xml and test.xsl to the same directory
2. Run a webserver to serve these files
3. Visit test.xml in Firefox 30.
Note: if you comment out line 29 of test.xsl
//window.console.time("boom!");
then Firefox no longer crashes.
Actual results:
Firefox crashes (shows "Mozilla Crash Reporter").
Expected results:
Firefox should have displayed the page without error.
Updated•10 years ago
|
Component: General → XSLT
Comment 2•10 years ago
|
||
Under the hood, this is caused by bug 804069.
But more immediately, it's caused by this code in Console.cpp:
912 nsRefPtr<nsPerformance> performance = win->GetPerformance(rv);
913 if (rv.Failed()) {
914 return;
915 }
916
917 callData->mMonotonicTimer = performance->Now();
where bug 804069 causes "performance" to be null while rv.Failed() is false.
So we can fix the crash by null-checking here, but until bug 804069 is fixed console.time() simply won't work right in XSLT-generated pages...
Andrea, do you have time for this?
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → amarchesini
Flags: needinfo?(amarchesini)
Assignee | ||
Comment 3•10 years ago
|
||
Do you mean, this simple null-check?
Attachment #8440736 -
Flags: review?(bzbarsky)
Comment 4•10 years ago
|
||
Comment on attachment 8440736 [details] [diff] [review]
bug.patch
Right, this just disables time() in XSLT-generated pages...
Attachment #8440736 -
Flags: review?(bzbarsky) → review+
Comment 6•10 years ago
|
||
Sorry Andrea, but per the dev-platform post a few weeks ago, we require Try links to push checkin-needed patches now.
Keywords: checkin-needed
Assignee | ||
Comment 7•10 years ago
|
||
Assignee | ||
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Updated•10 years ago
|
QA Whiteboard: [good first verify]
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•