Search completed in 1.31 seconds.
6 results for "nsiscriptsecuritymanager":
Safely loading URIs - Archive of obsolete content
Archive › Mozilla › Safely loading URIs
o communicate with each other. Finally, some URIs (e.g. chrome: give the loaded page expanded privileges. If a web page gets access to a window with such expanded privileges, it may be able to abuse it to gain access to those privileges itself. To solve this problem, Gecko provides methods that allow the caller to check whether it's safe to load a particular URI. These methods are exposed on the nsIScriptSecurityManager interface and are called checkLoadURI, checkLoadURIWithPrincipal, and checkLoadURIStr. All three methods take three arguments: the first argument identifies the source of the URI, the second argument is the URI that one plans to load, and the third argument is a set of flags that can be used to impose additional restrictions on the URIs that may be loaded. It's important to make sure that the fir...
Services.jsm
Mozilla › JavaScript code modules › Services.jsm
rmission manager service ppmm nsIMessageBroadcaster nsIProcessScriptLoader Global parent process message manager3 prefs nsIPrefBranch nsIPrefBranch2 nsIPrefService Preferences service prompt nsIPromptService Prompt service scriptloader mozIJSSubScriptLoader JavaScript subscript loader service scriptSecurityManager nsIScriptSecurityManager Script security manager search nsIBrowserSearchService Browser search service startup nsIAppStartup Application startup service storage mozIStorageService Storage API service strings nsIStringBundleService String bundle service sysinfo nsIPropertyBag2 System info service telemetry nsITelemetry Telemetry s...
Mozilla DOM Hacking Guide
Mozilla › Mozilla DOM Hacking
IsWritableReplaceable(jsval id) { ... }: help me! nsresult doCheckPropertyAccess(...): help me! (bug 90757) static JSClass sDOMConstructorProtoClass: XPConnect fu to expose the DOM objects constructors to JavaScript. static JSFunctionSpec sDOMJSClass_methods[];: help me! (bug 91557) static nsIXPConnect *sXPConnect: Used to call nsIXPConnect methods that we need. Initialized in Init(). static nsIScriptSecurityManager *sSecMan: Used by the DOM security engine. Initialized in Init(). static nsresult DefineStaticJSVals(JSContext *cx);: Used to define all the static JSString data members of nsDOMClassInfo. static PRBool sIsInitialized: Keeps track of wether Class Info was already initialized, because Init() shouldn't be called twice. static jsval *sX_id: strings used in the global resolve methods for compari...
nsIProtocolHandler
Mozilla › Tech › XPCOM › Reference › Interface › nsIProtocolHandler
the document that loads them. URI_FORBIDS_AUTOMATIC_DOCUMENT_REPLACEMENT 1<<5 "Automatic" loads that would replace the document (such as a meta refresh, certain types of XLinks, and other non-user-triggered loads) are not allowed if the originating URI has this protocol flag. Keep in mind that the decision of what constitutes an automatic load is made externally, by the caller of nsIScriptSecurityManager.CheckLoadURI(). Typically, this flag is used by protocols that show highly untrusted content in a viewing area that the user expects to have a lot of control over, such as an email reader. URI_LOADABLE_BY_ANYONE 1<<6 Anyone can load the URIs for this protocol; for example, any web site can load a URI for this protocol. Web-safe protocols such as HTTP should use this flag. ...
nsIPushService
Mozilla › Tech › XPCOM › Reference › Interface › nsIPushService
hen the nsIPushSubscription is created. Passing the system principal exempts the subscription from permission checks and background messages quotas, which are enforced for service worker subscriptions. ...
nsIPushSubscription
Mozilla › Tech › XPCOM › Reference › Interface › nsIPushSubscription
eeds the quota, or if the desktop-notification permission for its origin is revoked. bool isExpired(); nsIPushSubscription.isExpired() always returns false for system subscriptions. Parameters None. ...