LibWeb: Allow moving StyleSheets between documents without falling apart

We have to unregister link element stylesheets from the old document's
StyleSheetList when moving them into a new document.

This makes it possible to load GitHub contributor graphs. :^)
This commit is contained in:
Andreas Kling
2024-04-21 19:46:37 +02:00
parent 511e411def
commit 8e56367092
Notes: sideshowbarker 2024-07-18 00:54:03 +09:00
4 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
Sheets in old doc: 0
Sheets in new doc: 1
PASS (didn't crash)