mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 09:48:47 +00:00
LibWeb: Use correct scope when removing style sheet inside a shadow tree
Before this change, removing a style element from inside a shadow tree would cause it to be unregistered with the document-level list of sheets instead of the shadow-root-level list. This would eventually lead to a verification failure if someone tried to update the text contents of that style element, since it was still in the shadow-root-level list, but now with a null owner element. Fixes a crash on https://www.swedbank.se/
This commit is contained in:
parent
ebacb921da
commit
3b7534b362
Notes:
github-actions[bot]
2024-07-23 09:13:10 +00:00
Author: https://github.com/awesomekling
Commit: 3b7534b362
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/784
6 changed files with 45 additions and 5 deletions
|
@ -46,7 +46,7 @@ void HTMLStyleElement::inserted()
|
|||
|
||||
void HTMLStyleElement::removed_from(Node* old_parent)
|
||||
{
|
||||
m_style_element_utils.update_a_style_block(*this);
|
||||
m_style_element_utils.update_a_style_block(*this, old_parent);
|
||||
Base::removed_from(old_parent);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue