Title: [290913] branches/safari-613-branch/Source/WebCore
- Revision
- 290913
- Author
- [email protected]
- Date
- 2022-03-07 14:08:46 -0800 (Mon, 07 Mar 2022)
Log Message
Cherry-pick r288450. rdar://problem/74932445
Remove customElements when transitioning documents
https://bugs.webkit.org/show_bug.cgi?id=222727
Patch by Rob Buis <[email protected]> on 2022-01-24
Reviewed by Ryosuke Niwa.
Remove customElements when transitioning documents
of Window since the old document may be gone.
Test: fast/js-promise/js-promise-invalid-context-access.html
* page/DOMWindow.cpp:
(WebCore::DOMWindow::didSecureTransitionTo):
(WebCore::DOMWindow::ensureCustomElementRegistry):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288450 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (290912 => 290913)
--- branches/safari-613-branch/Source/WebCore/ChangeLog 2022-03-07 22:08:42 UTC (rev 290912)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog 2022-03-07 22:08:46 UTC (rev 290913)
@@ -1,5 +1,42 @@
2022-03-07 Russell Epstein <[email protected]>
+ Cherry-pick r288450. rdar://problem/74932445
+
+ Remove customElements when transitioning documents
+ https://bugs.webkit.org/show_bug.cgi?id=222727
+
+ Patch by Rob Buis <[email protected]> on 2022-01-24
+ Reviewed by Ryosuke Niwa.
+
+ Remove customElements when transitioning documents
+ of Window since the old document may be gone.
+
+ Test: fast/js-promise/js-promise-invalid-context-access.html
+
+ * page/DOMWindow.cpp:
+ (WebCore::DOMWindow::didSecureTransitionTo):
+ (WebCore::DOMWindow::ensureCustomElementRegistry):
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288450 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2022-01-24 Rob Buis <[email protected]>
+
+ Remove customElements when transitioning documents
+ https://bugs.webkit.org/show_bug.cgi?id=222727
+
+ Reviewed by Ryosuke Niwa.
+
+ Remove customElements when transitioning documents
+ of Window since the old document may be gone.
+
+ Test: fast/js-promise/js-promise-invalid-context-access.html
+
+ * page/DOMWindow.cpp:
+ (WebCore::DOMWindow::didSecureTransitionTo):
+ (WebCore::DOMWindow::ensureCustomElementRegistry):
+
+2022-03-07 Russell Epstein <[email protected]>
+
Cherry-pick r288413. rdar://problem/86287467
REGRESSION (Safari 15?): Blob videos slow to pause, affects CBS and CNN
Modified: branches/safari-613-branch/Source/WebCore/page/DOMWindow.cpp (290912 => 290913)
--- branches/safari-613-branch/Source/WebCore/page/DOMWindow.cpp 2022-03-07 22:08:42 UTC (rev 290912)
+++ branches/safari-613-branch/Source/WebCore/page/DOMWindow.cpp 2022-03-07 22:08:46 UTC (rev 290913)
@@ -403,6 +403,7 @@
m_crypto = nullptr;
m_navigator = nullptr;
m_performance = nullptr;
+ m_customElementRegistry = nullptr;
}
void DOMWindow::prewarmLocalStorageIfNecessary()
@@ -574,6 +575,7 @@
{
if (!m_customElementRegistry)
m_customElementRegistry = CustomElementRegistry::create(*this, scriptExecutionContext());
+ ASSERT(m_customElementRegistry->scriptExecutionContext() == document());
return *m_customElementRegistry;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes