Bug 1293126 - Remove Schemas.load from content's ExtensionContext r=kmag

MozReview-Commit-ID: JOToEC2Aokp

--HG--
extra : rebase_source : 23c867bf9f5bc4de4261e7d2ab3717557ba79bee
This commit is contained in:
Rob Wu 2016-08-07 17:59:58 -07:00
Родитель bb96ed46e5
Коммит 38597ef1d7
1 изменённых файлов: 1 добавлений и 9 удалений

Просмотреть файл

@ -415,21 +415,13 @@ class ExtensionContext extends BaseContext {
// reason. However, we waive here anyway in case that changes.
Cu.waiveXrays(this.sandbox).chrome = this.chromeObj;
let apis = {
"storage": "chrome://extensions/content/schemas/storage.json",
"test": "chrome://extensions/content/schemas/test.json",
};
let incognito = PrivateBrowsingUtils.isContentWindowPrivate(this.contentWindow);
this.childManager = new ChildAPIManager(this, mm, Object.keys(apis), {
this.childManager = new ChildAPIManager(this, mm, ["storage", "test"], {
type: "content_script",
url,
incognito,
});
for (let api in apis) {
Schemas.load(apis[api]);
}
Schemas.inject(this.chromeObj, this.childManager);
injectAPI(api(this), this.chromeObj);