Bug 1419297 - Don't clear mCustomElements in FreeInnerObjects. r=smaug
The cycle collecter should make sure the cycle here gets collected and
clearing it causes us to fail a wpt test.
MozReview-Commit-ID: 4kL69h0AR9q
--- a/dom/base/nsGlobalWindowInner.cpp
+++ b/dom/base/nsGlobalWindowInner.cpp
@@ -1177,17 +1177,16 @@ nsGlobalWindowInner::FreeInnerObjects()
mChromeEventHandler = nullptr;
if (mListenerManager) {
mListenerManager->Disconnect();
mListenerManager = nullptr;
}
mHistory = nullptr;
- mCustomElements = nullptr;
if (mNavigator) {
mNavigator->OnNavigation();
mNavigator->Invalidate();
mNavigator = nullptr;
}
mScreen = nullptr;
deleted file mode 100644
--- a/testing/web-platform/meta/custom-elements/custom-element-registry/per-global.html.ini
+++ /dev/null
@@ -1,4 +0,0 @@
-[per-global.html]
- [Discarding the browsing context must not change window.customElements]
- expected: FAIL
-