dom/html/crashtests/1550524.html
0 → 100644
+7
−0
+21
−29
Loading
Bug 1550524 part 2. Add an explicit StartExecutor method on nsHtml5Parser, for use from document.open(). r=hsivonen The code has mostly moved, but there are a few simplifications: 1) If !GetStreamParser(), then GetChannel() always returns null and hence we never set isSrcdoc to true. Which is good, because we don't want to apply the special srcdoc-parsing rules to document.open() stuff. So we just pass false to setIsSrcdocDocument(): It's the same behavior as before, but a lot clearer. I've confirmed that code coverage says the "isSrcdoc = NS_IsSrcdocChannel(channel)" line is unreached in our tests. 2) In the document.write-after-document.open case, aContentType is now always "text/html" (because that's what document.open sets mContentTypeForWriteCalls to. So the block checking for it not being "text/html" was dead code (also confirmed via code coverage results) and I'm just removing it. Differential Revision: https://phabricator.services.mozilla.com/D30751 --HG-- extra : moz-landing-system : lando