We need to block these endpoints on waiting until the page loads.
<rdar://problem/25464373>
Created attachment 275282 [details] Patch
Comment on attachment 275282 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=275282&action=review > Source/WebKit2/UIProcess/Automation/WebAutomationSession.cpp:418 > +} I believe that this should cancel any pending async script evaluations first so that they error out. We can add this later. > Source/WebKit2/UIProcess/Automation/WebAutomationSession.h:85 > + void navigationOccuredForPage(const WebPageProxy&); Please fix spelling: navigationOccurredForPage > Source/WebKit2/UIProcess/WebPageProxy.cpp:3126 > + if (auto automationSession = process().processPool().automationSession()) Nit: auto should be auto& or auto* so the type is less mysterious (and so we don't accidentally make a copy in some cases).
Comment on attachment 275282 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=275282&action=review >> Source/WebKit2/UIProcess/Automation/WebAutomationSession.cpp:418 >> +} > > I believe that this should cancel any pending async script evaluations first so that they error out. We can add this later. That is already done on the WebProcess side.
https://trac.webkit.org/r198914