Bug 97542 - [WK2][WKTR] TestRunner needs support for setWillSendRequestReturnsNullOnRedirect
Summary: [WK2][WKTR] TestRunner needs support for setWillSendRequestReturnsNullOnRedirect
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-25 02:52 PDT by Chris Dumez
Modified: 2012-09-25 04:23 PDT (History)
4 users (show)

See Also:


Attachments
Patch (6.61 KB, patch)
2012-09-25 02:55 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (6.50 KB, patch)
2012-09-25 03:43 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2012-09-25 02:52:03 PDT
setWillSendRequestReturnsNullOnRedirect() is currently not supported by WebKitTestRunner causing the following test to fail on WK2:
http/tests/misc/will-send-request-returns-null-on-redirect.html
Comment 1 Chris Dumez 2012-09-25 02:55:00 PDT
Created attachment 165566 [details]
Patch
Comment 2 Mikhail Pozdnyakov 2012-09-25 03:06:59 PDT
Comment on attachment 165566 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=165566&action=review

> Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:1163
> +    WKRetainPtr<WKURLRef> redirectURL = response ? adoptWK(WKURLResponseCopyURL(response)) : 0;

is it possible that response==0 ?

dumpResponseDescriptionSuitableForTestResult(response); was already invoked before, and there is no such check in it.

> Tools/WebKitTestRunner/InjectedBundle/TestRunner.h:203
> +    bool willSendRequestReturnsNullOnRedirect() { return m_willSendRequestReturnsNullOnRedirect; }

const ?
Comment 3 Chris Dumez 2012-09-25 03:39:55 PDT
Comment on attachment 165566 [details]
Patch

Going to take Mikhail's feedback into consideration. Thanks.
Comment 4 Chris Dumez 2012-09-25 03:43:16 PDT
Created attachment 165572 [details]
Patch

Take Mikhail's feedback into consideration.
Comment 5 Mikhail Pozdnyakov 2012-09-25 03:46:02 PDT
Comment on attachment 165572 [details]
Patch

LGTM, thanks
Comment 6 WebKit Review Bot 2012-09-25 04:23:37 PDT
Comment on attachment 165572 [details]
Patch

Clearing flags on attachment: 165572

Committed r129487: <http://trac.webkit.org/changeset/129487>
Comment 7 WebKit Review Bot 2012-09-25 04:23:41 PDT
All reviewed patches have been landed.  Closing bug.