/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththisfile,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
class DOMSecurityMonitor final {
public: /* The fragment parser is triggered anytime JS calls innerHTML or similar *JSfunctionswhichcangenerateHTMLfragments.Thisgenerationof *HTMLmightbedangerous,henceweshouldensurethatnonewinstances *ofinnerHTMLandsimilarfunctionsareintroducedinsystemprivileged *contexts,oralsoabout:pages,inourcodebase. * *IftheauditordetectsanewinstanceofinnerHTMLorsimilar *functionitwillCRASHusingastrongassertion.
*/ staticvoid AuditParsingOfHTMLXMLFragments(nsIPrincipal* aPrincipal, const nsAString& aFragment);
/* The use of javascript: URIs in system privileged contexts or *alsoabout:pagesisconsideredunsafeanddiscouraged. * *Iftheauditordetectsajavascript:URIinaprivileged *contextitwillCRASHusingastrongassertion. *
*/ staticvoid AuditUseOfJavaScriptURI(nsIChannel* aChannel);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.