Bug 863246 - Move resources that need to be exposed to web content to locations that are marked as contentaccessible r=billm

MozReview-Commit-ID: ArhSHKPYOr8
This commit is contained in:
Chung-Sheng Fu
2017-06-08 17:52:46 +08:00
parent 2b63f690ba
commit 2dc23f9095
15 changed files with 34 additions and 17 deletions

View File

@@ -50,7 +50,7 @@ nsHtml5ViewSourceUtils::NewLinkAttributes()
nsHtml5String type = nsHtml5Portability::newStringFromLiteral("text/css");
linkAttrs->addAttribute(nsHtml5AttributeName::ATTR_TYPE, type, -1);
nsHtml5String href = nsHtml5Portability::newStringFromLiteral(
"resource://gre-resources/viewsource.css");
"resource://content-accessible/viewsource.css");
linkAttrs->addAttribute(nsHtml5AttributeName::ATTR_HREF, href, -1);
return linkAttrs;
}