Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: third_party/WebKit/Source/bindings/IDLExtendedAttributes.md

Issue 1940253002: Disallow certain blocking DOM calls during microtask execution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
diff --git a/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md b/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
index 28d0e014aa7c2de5df2fe60f776eebde00878828..ba8d34e13088e0e96f40d72e8ed97f72c55f0e42 100644
--- a/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
+++ b/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md
@@ -993,6 +993,17 @@ Usage: `[MeasureAs]` can be specified on methods, attributes, and constants. The
[MeasureAs=EvenSomeConstantsAreInteresting] const INTERESTING_CONSTANT = 1;
```
+### [NotDuringMicrotasks] _(m)_
+
+Summary: A method marked as `[NotDuringMicrotasks]` will do nothing and return
+undefined if invoked during microtask execution.
+
+Usage: `[NotDuringMicrotasks]` can be specified on methods.
+
+```webidl
+[NotDuringMicrotasks] void alert();
+```
+
### [NotEnumerable] _(m, a, s)_
*** note

Powered by Google App Engine
This is Rietveld 408576698