mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 1489301 - Part 6: Remove references to 'System' from WebIDL.py, r=bzbarsky
'Exposed=System' is no longer used in any webidl files, so we can kill it. Differential Revision: https://phabricator.services.mozilla.com/D9401
This commit is contained in:
parent
0cf082997f
commit
4bf2b2ecb0
@ -17199,7 +17199,7 @@ class GlobalGenRoots():
|
||||
curr = CGList([], "\n")
|
||||
|
||||
descriptors = config.getDescriptors(hasInterfaceObject=True,
|
||||
isExposedInSystemGlobals=True,
|
||||
isExposedInWindow=True,
|
||||
register=True)
|
||||
properties = [desc.name for desc in descriptors]
|
||||
|
||||
@ -17244,7 +17244,7 @@ class GlobalGenRoots():
|
||||
defineIncludes = [CGHeaders.getDeclarationFilename(desc.interface)
|
||||
for desc in config.getDescriptors(hasInterfaceObject=True,
|
||||
register=True,
|
||||
isExposedInSystemGlobals=True)]
|
||||
isExposedInWindow=True)]
|
||||
defineIncludes.append("nsThreadUtils.h") # For NS_IsMainThread
|
||||
defineIncludes.append("js/Id.h") # For jsid
|
||||
defineIncludes.append("mozilla/dom/WebIDLGlobalNameHash.h")
|
||||
|
@ -250,8 +250,6 @@ class Configuration(DescriptorProvider):
|
||||
getter = lambda x: x.interface.isExposedInWorkerDebugger()
|
||||
elif key == 'isExposedInAnyWorklet':
|
||||
getter = lambda x: x.interface.isExposedInAnyWorklet()
|
||||
elif key == 'isExposedInSystemGlobals':
|
||||
getter = lambda x: x.interface.isExposedInSystemGlobals()
|
||||
elif key == 'isExposedInWindow':
|
||||
getter = lambda x: x.interface.isExposedInWindow()
|
||||
else:
|
||||
|
@ -511,10 +511,10 @@ class IDLExposureMixins():
|
||||
return 'Window' in self.exposureSet
|
||||
|
||||
def isExposedOnMainThread(self):
|
||||
return bool(self.exposureSet & {'Window', 'BackstagePass'})
|
||||
return self.isExposedInWindow()
|
||||
|
||||
def isExposedOffMainThread(self):
|
||||
return bool(self.exposureSet - {'Window', 'BackstagePass'})
|
||||
return len(self.exposureSet - {'Window', 'FakeTestPrimaryGlobal'}) > 0
|
||||
|
||||
def isExposedInAnyWorker(self):
|
||||
return len(self.getWorkerExposureSet()) > 0
|
||||
@ -525,9 +525,6 @@ class IDLExposureMixins():
|
||||
def isExposedInAnyWorklet(self):
|
||||
return len(self.getWorkletExposureSet()) > 0
|
||||
|
||||
def isExposedInSystemGlobals(self):
|
||||
return 'BackstagePass' in self.exposureSet
|
||||
|
||||
def isExposedInSomeButNotAllWorkers(self):
|
||||
"""
|
||||
Returns true if the Exposed extended attribute for this interface
|
||||
@ -6909,12 +6906,6 @@ class Parser(Tokenizer):
|
||||
self._globalScope.primaryGlobalName = "FakeTestPrimaryGlobal"
|
||||
self._globalScope.addIfaceGlobalNames("FakeTestPrimaryGlobal", ["FakeTestPrimaryGlobal"])
|
||||
|
||||
# We also add global names for "BackstagePass", which doesn't have any
|
||||
# corresponding interfaces. Expose all Window interfaces, as Chrome
|
||||
# code should be able to access them, as well as System-only
|
||||
# interfaces.
|
||||
self._globalScope.addIfaceGlobalNames("BackstagePass", ["Window", "System"])
|
||||
|
||||
self._installBuiltins(self._globalScope)
|
||||
self._productions = []
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user