RESOLVED FIXED 43677
document->documentElement can always be null
https://bugs.webkit.org/show_bug.cgi?id=43677
Summary document->documentElement can always be null
Adam Barth
Reported 2010-08-07 13:28:01 PDT
document->documentElement can always be null
Attachments
Patch (1.25 KB, patch)
2010-08-07 13:28 PDT, Adam Barth
sam: review+
Adam Barth
Comment 1 2010-08-07 13:28:45 PDT
Sam Weinig
Comment 2 2010-08-07 13:32:04 PDT
Comment on attachment 63824 [details] Patch Looks good. Is there a test we can add?
Adam Barth
Comment 3 2010-08-07 13:39:37 PDT
Probably. You just need to grab an object that has this method and then remove the <html> element from the document, and then call the method.
Adam Barth
Comment 4 2010-08-07 14:50:31 PDT
Here's the repro: <body onload="document.open();window.styleMedia.matchMedium();">
Adam Barth
Comment 5 2010-08-07 14:50:46 PDT
*** Bug 43139 has been marked as a duplicate of this bug. ***
Adam Barth
Comment 6 2010-08-07 15:40:41 PDT
Note You need to log in before you can comment on or make changes to this bug.