WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 174623
Web Automation: evaluateJavaScriptFunction should always notify the web process before returning early
https://bugs.webkit.org/show_bug.cgi?id=174623
Summary
Web Automation: evaluateJavaScriptFunction should always notify the web proce...
Carlos Garcia Campos
Reported
2017-07-18 05:19:28 PDT
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.
Attachments
Patch
(3.10 KB, patch)
2017-07-18 05:20 PDT
,
Carlos Garcia Campos
bburg
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2017-07-18 05:20:44 PDT
Created
attachment 315790
[details]
Patch
Blaze Burg
Comment 2
2017-07-18 15:20:57 PDT
Comment on
attachment 315790
[details]
Patch Good catch, r = me
Carlos Garcia Campos
Comment 3
2017-07-18 23:08:38 PDT
Committed
r219650
: <
http://trac.webkit.org/changeset/219650
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug