mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
Issue #618 - Clear the module map when changing a Document's global and add
release build assertions for mismatching compartments.
This commit is contained in:
parent
7316d91ba2
commit
ef11a4d7e8
4 changed files with 17 additions and 3 deletions
|
|
@ -477,6 +477,11 @@ ScriptLoader::GetFetchedModule(nsIURI* aURL) const
|
|||
return ms;
|
||||
}
|
||||
|
||||
void ScriptLoader::ClearModuleMap() {
|
||||
MOZ_ASSERT(mFetchingModules.IsEmpty());
|
||||
mFetchedModules.Clear();
|
||||
}
|
||||
|
||||
nsresult
|
||||
ScriptLoader::ProcessFetchedModuleSource(ModuleLoadRequest* aRequest)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -506,6 +506,12 @@ public:
|
|||
return mPendingChildLoaders.AppendElement(aChild) != nullptr;
|
||||
}
|
||||
|
||||
/*
|
||||
* Clear the map of loaded modules. Called when a Document object is reused
|
||||
* for a different global.
|
||||
*/
|
||||
void ClearModuleMap();
|
||||
|
||||
private:
|
||||
virtual ~ScriptLoader();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue