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

Unified Diff: third_party/WebKit/Source/core/frame/Window.idl

Issue 1940253002: Disallow certain blocking DOM calls during microtask execution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates 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/core/frame/Window.idl
diff --git a/third_party/WebKit/Source/core/frame/Window.idl b/third_party/WebKit/Source/core/frame/Window.idl
index e79a9b6724fdf7224df849f07c9c6292bd3f0183..76ccfa1790b01f8bbb446ec43c6d7876433aba40 100644
--- a/third_party/WebKit/Source/core/frame/Window.idl
+++ b/third_party/WebKit/Source/core/frame/Window.idl
@@ -72,11 +72,11 @@
[RuntimeEnabled=ApplicationCache, LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCache;
// user prompts
- [Measure] void alert();
- [Measure] void alert(DOMString message);
- [Measure] boolean confirm(optional DOMString message = "");
- [Measure] DOMString? prompt(optional DOMString message = "", optional DOMString defaultValue = "");
- [Measure] void print();
+ [Measure, CallWith=ScriptState] void alert();
+ [Measure, CallWith=ScriptState] void alert(DOMString message);
+ [Measure, CallWith=ScriptState] boolean confirm(optional DOMString message = "");
+ [Measure, CallWith=ScriptState] DOMString? prompt(optional DOMString message = "", optional DOMString defaultValue = "");
+ [Measure, CallWith=ScriptState] void print();
[MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(FrameRequestCallback callback);
void cancelAnimationFrame(long handle);

Powered by Google App Engine
This is Rietveld 408576698