diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2019-03-02 11:43:56 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2019-03-02 11:43:56 +0530 |
commit | 5fa80a8be0a2cdbb5e84856da6a041958aacc238 (patch) | |
tree | 14925257a56b3652ade168511412a51e58afd7fc /components/script/dom/bindings/codegen/parser | |
parent | 4d8d54fc00644204768886569959429dd67998a0 (diff) | |
download | servo-5fa80a8be0a2cdbb5e84856da6a041958aacc238.tar.gz servo-5fa80a8be0a2cdbb5e84856da6a041958aacc238.zip |
Move pref-main-thread.patch back
Diffstat (limited to 'components/script/dom/bindings/codegen/parser')
-rw-r--r-- | components/script/dom/bindings/codegen/parser/pref-main-thread.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/components/script/dom/bindings/codegen/parser/pref-main-thread.patch b/components/script/dom/bindings/codegen/parser/pref-main-thread.patch new file mode 100644 index 00000000000..a90d0593693 --- /dev/null +++ b/components/script/dom/bindings/codegen/parser/pref-main-thread.patch @@ -0,0 +1,27 @@ +--- WebIDL.py ++++ WebIDL.py +@@ -1362,12 +1362,6 @@ class IDLInterfaceOrNamespace(IDLObjectWithScope, IDLExposureMixins): + for bindingAlias in member.bindingAliases: + checkDuplicateNames(member, bindingAlias, "BindingAlias") + +- +- if self.getExtendedAttribute("Pref") and self.isExposedOffMainThread(): +- raise WebIDLError("[Pref] used on an interface that is not " +- "main-thread-only", +- [self.location]) +- + # Conditional exposure makes no sense for interfaces with no + # interface object, unless they're navigator properties. + # And SecureContext makes sense for interfaces with no interface object, +@@ -3619,11 +3613,6 @@ class IDLInterfaceMember(IDLObjectWithIdentifier, IDLExposureMixins): + IDLExposureMixins.finish(self, scope) + + def validate(self): +- if self.getExtendedAttribute("Pref") and self.isExposedOffMainThread(): +- raise WebIDLError("[Pref] used on an interface member that is not " +- "main-thread-only", +- [self.location]) +- + if self.isAttr() or self.isMethod(): + if self.affects == "Everything" and self.dependsOn != "Everything": + raise WebIDLError("Interface member is flagged as affecting " |