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)

30 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33

People

(Reporter: rick.brown, Assigned: baku)

References

Details

Attachments

(3 files)

Attached file test.xml
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.
Attached file xsl file
Component: General → XSLT
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?
Blocks: 965860
Status: UNCONFIRMED → NEW
Component: XSLT → DOM
Depends on: 804069
Ever confirmed: true
Flags: needinfo?(amarchesini)
Assignee: nobody → amarchesini
Flags: needinfo?(amarchesini)
Attached patch bug.patchSplinter Review
Do you mean, this simple null-check?
Attachment #8440736 - Flags: review?(bzbarsky)
Comment on attachment 8440736 [details] [diff] [review] bug.patch Right, this just disables time() in XSLT-generated pages...
Attachment #8440736 - Flags: review?(bzbarsky) → review+
m-i is closed.
Keywords: checkin-needed
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
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
QA Whiteboard: [good first verify]
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: