Last Comment Bug 741218 - Loading a page with content-type application/json causes crash [@ nsHTMLDocument::StartDocumentLoad ]
: Loading a page with content-type application/json causes crash [@ nsHTMLDocum...
: crash, testcase
Product: Core
Classification: Components
Component: HTML: Parser (show other bugs)
: Trunk
: x86 Mac OS X
: -- critical (vote)
: mozilla14
Assigned To: :Ms2ger (⌚ UTC+1/+2)
: Andrew Overholt [:overholt]
: 741265 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2012-04-01 10:27 PDT by Simon Kornblith
Modified: 2012-04-05 09:05 PDT (History)
6 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Test case (2 bytes, application/json)
2012-04-01 10:27 PDT, Simon Kornblith
no flags Details
Patch v1 (1.41 KB, patch)
2012-04-01 10:36 PDT, :Ms2ger (⌚ UTC+1/+2)
hsivonen: review+
Details | Diff | Splinter Review

Description Simon Kornblith 2012-04-01 10:27:01 PDT
Created attachment 611288 [details]
Test case

When trying to load a resource with content-type application/json directly in the browser (but not via XHR), Nightly crashes. One such crash is

I've attempted to attach a file that will reproduce this to the ticket, but if it doesn't reproduce the issue, I'll post a URL.
Comment 1 Simon Kornblith 2012-04-01 10:29:09 PDT
That attachment didn't get served as application/json, so try
Comment 2 :Ms2ger (⌚ UTC+1/+2) 2012-04-01 10:36:17 PDT
Created attachment 611291 [details] [diff] [review]
Patch v1
Comment 3 Henri Sivonen (:hsivonen) 2012-04-01 23:00:28 PDT
Comment on attachment 611291 [details] [diff] [review]
Patch v1

Thanks. (My earlier patch for nsHTMLDocument.cpp was probably in flight while JSON landed in nsContentDLF...)
Comment 4 Henri Sivonen (:hsivonen) 2012-04-01 23:58:17 PDT
*** Bug 741265 has been marked as a duplicate of this bug. ***
Comment 5 :Ms2ger (⌚ UTC+1/+2) 2012-04-03 02:04:16 PDT
Comment 6 Brandon Savage [:brandon] 2012-04-03 07:42:43 PDT
Is this in the most recently released nightly? I want to check to make sure that this crash is occurring because I don't yet have the patch, and not because there's a different bug floating around.
Comment 7 Scoobidiver (away) 2012-04-03 07:47:53 PDT
(In reply to Brandon Savage [:brandon] from comment #6)
> Is this in the most recently released nightly?
The fix will be in Nightly from April 4th.

Note You need to log in before you can comment on or make changes to this bug.