mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 07:22:21 +00:00
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:
parent
0bdcaf02d3
commit
1fed3d27c1
Notes:
github-actions[bot]
2025-06-24 07:57:26 +00:00
Author: https://github.com/shannonbooth
Commit: 1fed3d27c1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5153
Reviewed-by: https://github.com/gmta ✅
1 changed files with 0 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue