From 1fed3d27c16bdcc6d8a5ea89ac67c2515bac89e1 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sat, 21 Jun 2025 15:36:55 +1200 Subject: [PATCH] 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 element. --- Libraries/LibWeb/HTML/Parser/HTMLParser.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp b/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp index ca51911c07c..325d461c176 100644 --- a/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp +++ b/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp @@ -4570,11 +4570,6 @@ Vector> 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);