зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1017988 part 3. Allow the Global extended attribute to take a value. r=khuey
This commit is contained in:
Родитель
deaa309f90
Коммит
8692e4a923
|
@ -1049,9 +1049,12 @@ class IDLInterface(IDLObjectWithScope):
|
||||||
"an interface with inherited interfaces",
|
"an interface with inherited interfaces",
|
||||||
[attr.location, self.location])
|
[attr.location, self.location])
|
||||||
elif identifier == "Global":
|
elif identifier == "Global":
|
||||||
if not attr.noArguments():
|
if attr.hasValue():
|
||||||
raise WebIDLError("[Global] must take no arguments",
|
self.globalNames = [ attr.value() ]
|
||||||
[attr.location])
|
elif attr.hasArgs():
|
||||||
|
self.globalNames = attr.args()
|
||||||
|
else:
|
||||||
|
self.globalNames = [ self.identifier.name ]
|
||||||
self._isOnGlobalProtoChain = True
|
self._isOnGlobalProtoChain = True
|
||||||
elif (identifier == "NeedNewResolve" or
|
elif (identifier == "NeedNewResolve" or
|
||||||
identifier == "OverrideBuiltins" or
|
identifier == "OverrideBuiltins" or
|
||||||
|
|
|
@ -12,7 +12,8 @@
|
||||||
* this document.
|
* this document.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Global, Func="mozilla::dom::workers::DedicatedWorkerGlobalScope::Visible"]
|
[Global=(Worker,DedicatedWorker),
|
||||||
|
Func="mozilla::dom::workers::DedicatedWorkerGlobalScope::Visible"]
|
||||||
interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
|
interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
|
||||||
[Throws]
|
[Throws]
|
||||||
void postMessage(any message, optional sequence<any> transfer);
|
void postMessage(any message, optional sequence<any> transfer);
|
||||||
|
|
|
@ -12,7 +12,8 @@
|
||||||
|
|
||||||
// The Pref controls exposure in general, the Func restricts it to inside the
|
// The Pref controls exposure in general, the Func restricts it to inside the
|
||||||
// ServiceWorkerGlobalScope (itself).
|
// ServiceWorkerGlobalScope (itself).
|
||||||
[Global, Func="mozilla::dom::workers::ServiceWorkerGlobalScope::Visible",
|
[Global=(Worker,ServiceWorker),
|
||||||
|
Func="mozilla::dom::workers::ServiceWorkerGlobalScope::Visible",
|
||||||
Pref="dom.serviceWorkers.enabled"]
|
Pref="dom.serviceWorkers.enabled"]
|
||||||
interface ServiceWorkerGlobalScope : WorkerGlobalScope {
|
interface ServiceWorkerGlobalScope : WorkerGlobalScope {
|
||||||
// FIXME(nsm): Bug 982725
|
// FIXME(nsm): Bug 982725
|
||||||
|
|
|
@ -12,7 +12,8 @@
|
||||||
* this document.
|
* this document.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Global, Func="mozilla::dom::workers::SharedWorkerGlobalScope::Visible"]
|
[Global=(Worker,SharedWorker),
|
||||||
|
Func="mozilla::dom::workers::SharedWorkerGlobalScope::Visible"]
|
||||||
interface SharedWorkerGlobalScope : WorkerGlobalScope {
|
interface SharedWorkerGlobalScope : WorkerGlobalScope {
|
||||||
readonly attribute DOMString name;
|
readonly attribute DOMString name;
|
||||||
attribute EventHandler onconnect;
|
attribute EventHandler onconnect;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче