From eb55eaf09131e2329b6666cccc88c63eca230eb0 Mon Sep 17 00:00:00 2001 From: Jonas Sicking Date: Tue, 10 Mar 2009 03:59:54 -0700 Subject: [PATCH] Fix more orangeness by always allowing linking to chrome XBL --- content/xbl/src/nsXBLService.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/xbl/src/nsXBLService.cpp b/content/xbl/src/nsXBLService.cpp index 11493a5fa22b..c87f27d01a2b 100644 --- a/content/xbl/src/nsXBLService.cpp +++ b/content/xbl/src/nsXBLService.cpp @@ -1121,7 +1121,8 @@ nsXBLService::LoadBindingDocumentInfo(nsIContent* aBoundElement, NS_ENSURE_SUCCESS(rv, rv); if (principalURI && - !(gAllowDataURIs && SchemeIs(aBindingURI, "data"))) { + !(gAllowDataURIs && SchemeIs(aBindingURI, "data")) && + !SchemeIs(aBindingURI, "chrome")) { nsresult uaCheckRes = nsContentUtils::GetSecurityManager()-> CheckLoadURIWithPrincipal(aBoundDocument->NodePrincipal(),