зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1489301 - Part 5: Expose all System-only objects on Window, r=bzbarsky
There is a limited number of these, and this allows me to completely remove mention of the 'System' global. In the future System-only exposure could be achieved using a [Func] enabler. Differential Revision: https://phabricator.services.mozilla.com/D9400
This commit is contained in:
Родитель
2b21840f81
Коммит
0cf082997f
|
@ -41,7 +41,7 @@ enum MozContentPolicyType {
|
|||
* A thin wrapper around nsIChannel and nsIHttpChannel that allows JS
|
||||
* callers to access them without XPConnect overhead.
|
||||
*/
|
||||
[ChromeOnly, Exposed=System]
|
||||
[ChromeOnly, Exposed=Window]
|
||||
interface ChannelWrapper : EventTarget {
|
||||
/**
|
||||
* Returns the wrapper instance for the given channel. The same wrapper is
|
||||
|
|
|
@ -9,7 +9,7 @@ callback interface MozDocumentCallback {
|
|||
void onPreloadDocument(MozDocumentMatcher matcher, LoadInfo loadInfo);
|
||||
};
|
||||
|
||||
[ChromeOnly, Constructor(MozDocumentCallback callbacks), Exposed=System]
|
||||
[ChromeOnly, Constructor(MozDocumentCallback callbacks), Exposed=Window]
|
||||
interface MozDocumentObserver {
|
||||
[Throws]
|
||||
void observe(sequence<MozDocumentMatcher> matchers);
|
||||
|
|
|
@ -9,7 +9,7 @@ interface WindowProxy;
|
|||
typedef (MatchPatternSet or sequence<DOMString>) MatchPatternSetOrStringSequence;
|
||||
typedef (MatchGlob or DOMString) MatchGlobOrString;
|
||||
|
||||
[Constructor(MozDocumentMatcherInit options), ChromeOnly, Exposed=System]
|
||||
[Constructor(MozDocumentMatcherInit options), ChromeOnly, Exposed=Window]
|
||||
interface MozDocumentMatcher {
|
||||
/**
|
||||
* Returns true if the script's match and exclude patterns match the given
|
||||
|
@ -132,7 +132,7 @@ enum ContentScriptRunAt {
|
|||
"document_idle",
|
||||
};
|
||||
|
||||
[Constructor(WebExtensionPolicy extension, WebExtensionContentScriptInit options), ChromeOnly, Exposed=System]
|
||||
[Constructor(WebExtensionPolicy extension, WebExtensionContentScriptInit options), ChromeOnly, Exposed=Window]
|
||||
interface WebExtensionContentScript : MozDocumentMatcher {
|
||||
/**
|
||||
* The earliest point in the load cycle at which this script should run. For
|
||||
|
|
|
@ -11,7 +11,7 @@ callback WebExtensionLocalizeCallback = DOMString (DOMString unlocalizedText);
|
|||
* Defines the platform-level policies for a WebExtension, including its
|
||||
* permissions and the characteristics of its moz-extension: URLs.
|
||||
*/
|
||||
[Constructor(WebExtensionInit options), ChromeOnly, Exposed=System]
|
||||
[Constructor(WebExtensionInit options), ChromeOnly, Exposed=Window]
|
||||
interface WebExtensionPolicy {
|
||||
/**
|
||||
* The add-on's internal ID, as specified in its manifest.json file or its
|
||||
|
|
|
@ -82,7 +82,7 @@ interface AddonManager : EventTarget {
|
|||
readonly attribute boolean permissionPromptsEnabled;
|
||||
};
|
||||
|
||||
[ChromeOnly,Exposed=System,HeaderFile="mozilla/AddonManagerWebAPI.h"]
|
||||
[ChromeOnly,Exposed=Window,HeaderFile="mozilla/AddonManagerWebAPI.h"]
|
||||
interface AddonManagerPermissions {
|
||||
static boolean isHostPermitted(DOMString host);
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче