15.2 Executing Script
If at any point during the algorithm a user prompt appears, the user prompt handler must be invoked. If its return value is an error, it must immediately return with that error and abort all subsequent substeps of this algorithm.
Created attachment 327505 [details]
I wrote tests for this, I'll upgrade wpt tests as soon as the patch lands. See https://github.com/w3c/web-platform-tests/pull/8413
Attachment 327505 [details] did not pass style-queue:
ERROR: Source/WebDriver/Session.h:130: Extra space before ( in function call [whitespace/parens] 
ERROR: Source/WebDriver/Session.cpp:194: Extra space before ( in function call [whitespace/parens] 
Total errors found: 2 in 7 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 327505 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=327505&action=review
Committed r225448: <https://trac.webkit.org/changeset/225448>