[Webkit-unassigned] [Bug 174623] New: Web Automation: evaluateJavaScriptFunction should always notify the web process before returning early

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 18 05:19:28 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=174623

            Bug ID: 174623
           Summary: Web Automation: evaluateJavaScriptFunction should
                    always notify the web process before returning early
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: cgarcia at igalia.com
                CC: bburg at apple.com, joepeck at webkit.org

It currently returns early if page, frame or scriptObject are nullptr, in which cases the UI process is not notified. This causes test testShouldNotBeAbleToDoAnythingTheFrameIsDeletedFromUnderUs to hang, because message DidEvaluateJavaScriptFunction is never sent when the given frame no longer exists. We should send DidEvaluateJavaScriptFunction with WindowNotFound in case of page is nullptr and FrameNotFound if the frame is nullptr. The scriptObject early return is actually wrong, because scriptObjectForFrame creates a new script if there's isn't one for the given frame.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170718/da8d9783/attachment.html>


More information about the webkit-unassigned mailing list