Bug 1803984 - Add assertion that we only remove unlinked modules from the map r=allstarschh
It would not be correct to remove modules that were already linked or evaluated. Depends on D178298 Differential Revision: https://phabricator.services.mozilla.com/D178787
This commit is contained in:
@@ -314,6 +314,8 @@ class ModuleLoaderBase : public nsISupports {
|
||||
|
||||
nsresult GetFetchedModuleURLs(nsTArray<nsCString>& aURLs);
|
||||
|
||||
// Removed a fetched module from the module map. Asserts that the module is
|
||||
// unlinked. Extreme care should be taken when calling this method.
|
||||
bool RemoveFetchedModule(nsIURI* aURL);
|
||||
|
||||
// Internal methods.
|
||||
|
||||
Reference in New Issue
Block a user