Add built-in extension "URL" to _loadedExtensions

Dupe prevention works better when you actually record the necessary
info...
This commit is contained in:
Christopher Willis-Ford 2017-10-31 13:00:19 -07:00
parent ae878b2050
commit 8bb48e2a53

View file

@ -116,7 +116,9 @@ class ExtensionManager {
const extension = builtinExtensions[extensionURL];
const extensionInstance = new extension(this.runtime);
return this._registerInternalExtension(extensionInstance);
return this._registerInternalExtension(extensionInstance).then(() => {
this._loadedExtensions.add(extensionURL);
});
}
return new Promise((resolve, reject) => {