From 725e4b5cf853352d5bb95872e520c17360c9b962 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 31 Jul 2018 16:44:52 -0700 Subject: [PATCH] Bug 1479945: Part 5 - Remove the 'allowbootstrap' directive flag. r=froydnj For all intents and purposes, this is now the same as the 'ischrome' flag. MozReview-Commit-ID: 4z4SDs5M8zU --HG-- extra : source : 2a5aa9de1fd9760a9245ecae815a6e02bb9eef42 --- xpcom/components/ManifestParser.cpp | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/xpcom/components/ManifestParser.cpp b/xpcom/components/ManifestParser.cpp index db900ea38ea5..9cafd354868f 100644 --- a/xpcom/components/ManifestParser.cpp +++ b/xpcom/components/ManifestParser.cpp @@ -48,8 +48,6 @@ struct ManifestDirective bool ischrome; - bool allowbootstrap; - // The contentaccessible flags only apply to content/resource directives. bool contentflags; @@ -64,41 +62,41 @@ struct ManifestDirective }; static const ManifestDirective kParsingTable[] = { { - "manifest", 1, true, true, false, + "manifest", 1, true, false, &nsComponentManagerImpl::ManifestManifest, nullptr, }, { - "component", 2, false, false, false, + "component", 2, false, false, &nsComponentManagerImpl::ManifestComponent, nullptr, }, { - "contract", 2, false, false, false, + "contract", 2, false, false, &nsComponentManagerImpl::ManifestContract, nullptr, }, { - "category", 3, false, false, false, + "category", 3, false, false, &nsComponentManagerImpl::ManifestCategory, nullptr, }, { - "content", 2, true, true, true, + "content", 2, true, true, nullptr, &nsChromeRegistry::ManifestContent, }, { - "locale", 3, true, true, false, + "locale", 3, true, false, nullptr, &nsChromeRegistry::ManifestLocale, }, { - "skin", 3, true, true, false, + "skin", 3, true, false, nullptr, &nsChromeRegistry::ManifestSkin, }, { // NB: note that while skin manifests can use this, they are only allowed // to use it for chrome://../skin/ URLs - "override", 2, true, true, false, + "override", 2, true, false, nullptr, &nsChromeRegistry::ManifestOverride, }, { - "resource", 2, true, false, true, + "resource", 2, false, true, nullptr, &nsChromeRegistry::ManifestResource, } }; @@ -573,7 +571,7 @@ ParseManifest(NSLocationType aType, FileLocation& aFile, char* aBuf, continue; } - if (!directive->allowbootstrap && NS_BOOTSTRAPPED_LOCATION == aType) { + if (!directive->ischrome && NS_BOOTSTRAPPED_LOCATION == aType) { LogMessageWithContext(aFile, line, "Bootstrapped manifest not allowed to use '%s' directive.", token);