mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
Issue #1118 - Part 7: Remove no-longer-used mWillReparent debug code.
This commit is contained in:
parent
b753aec164
commit
10e59cb5a9
2 changed files with 0 additions and 17 deletions
|
|
@ -4512,18 +4512,6 @@ nsDocument::SetScriptGlobalObject(nsIScriptGlobalObject *aScriptGlobalObject)
|
|||
mLayoutHistoryState = nullptr;
|
||||
SetScopeObject(aScriptGlobalObject);
|
||||
mHasHadDefaultView = true;
|
||||
#ifdef DEBUG
|
||||
if (!mWillReparent) {
|
||||
// We really shouldn't have a wrapper here but if we do we need to make sure
|
||||
// it has the correct parent.
|
||||
JSObject *obj = GetWrapperPreserveColor();
|
||||
if (obj) {
|
||||
JSObject *newScope = aScriptGlobalObject->GetGlobalJSObject();
|
||||
NS_ASSERTION(js::GetGlobalForObjectCrossCompartment(obj) == newScope,
|
||||
"Wrong scope, this is really bad!");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (mAllowDNSPrefetch) {
|
||||
nsCOMPtr<nsIDocShell> docShell(mDocumentContainer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue