LibWeb/HTML: Don't set opaque origin on innerHTML document

This appears to no longer be necessary now that we are properly
handling the loading of image data for the <img> element.
This commit is contained in:
Shannon Booth 2025-06-21 15:36:55 +12:00 committed by Jelle Raaijmakers
parent 0bdcaf02d3
commit 1fed3d27c1
Notes: github-actions[bot] 2025-06-24 07:57:26 +00:00

View file

@ -4570,11 +4570,6 @@ Vector<GC::Root<DOM::Node>> HTMLParser::parse_html_fragment(DOM::Element& contex
// This is required for Document::parse_url() to work inside iframe srcdoc documents.
temp_document->set_about_base_url(context_element.document().about_base_url());
// AD-HOC: The origin is not otherwise set for the document, but it may be accessed during parsing
// script. For now, let's just use an opaque origin, but it is likely that the spec is
// missing setting this origin.
temp_document->set_origin(URL::Origin::create_opaque());
// 2. If context's node document is in quirks mode, then set document's mode to "quirks".
if (context_element.document().in_quirks_mode())
temp_document->set_quirks_mode(DOM::QuirksMode::Yes);