Bug 93454 - [WK2] [WTR] Provide Resource Response dumping.
Summary: [WK2] [WTR] Provide Resource Response dumping.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mikhail Pozdnyakov
URL:
Keywords:
: 42543 (view as bug list)
Depends on:
Blocks: 61838 93353
  Show dependency treegraph
 
Reported: 2012-08-08 02:07 PDT by Mikhail Pozdnyakov
Modified: 2012-08-09 12:20 PDT (History)
7 users (show)

See Also:


Attachments
patch (9.81 KB, patch)
2012-08-08 02:16 PDT, Mikhail Pozdnyakov
kenneth: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
to be landed (9.95 KB, patch)
2012-08-08 05:26 PDT, Mikhail Pozdnyakov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Pozdnyakov 2012-08-08 02:07:57 PDT
Several layout tests (fast/dom/HTMLLinkElement) are failing on WK2 with :
CONSOLE MESSAGE: line 15: TypeError: 'undefined' is not a function (evaluating 'testRunner.dumpResourceResponseMIMETypes()')

So Resource Response dumping is to be provided. 
To provide Resource Response dumping several new functions should be added to 
WKURL and WKURLResponse WK2 shared API.
Comment 1 Mikhail Pozdnyakov 2012-08-08 02:16:59 PDT
Created attachment 157159 [details]
patch
Comment 2 Chris Dumez 2012-08-08 02:31:49 PDT
Comment on attachment 157159 [details]
patch

LGTM, thanks.
Comment 3 Kenneth Rohde Christiansen 2012-08-08 05:10:13 PDT
Comment on attachment 157159 [details]
patch

nice
Comment 4 WebKit Review Bot 2012-08-08 05:12:37 PDT
Comment on attachment 157159 [details]
patch

Rejecting attachment 157159 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2

Last 500 characters of output:
unner/InjectedBundle/InjectedBundlePage.cpp
patching file Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp
patching file Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h
Hunk #2 FAILED at 163.
1 out of 3 hunks FAILED -- saving rejects to file Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h.rej

Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force', u'--reviewer', u'Kenneth Ro..." exit_code: 1 cwd: /mnt/git/webkit-commit-queue/

Full output: http://queues.webkit.org/results/13458230
Comment 5 Mikhail Pozdnyakov 2012-08-08 05:26:05 PDT
Created attachment 157192 [details]
to be landed
Comment 6 WebKit Review Bot 2012-08-08 06:18:33 PDT
Comment on attachment 157192 [details]
to be landed

Clearing flags on attachment: 157192

Committed r125031: <http://trac.webkit.org/changeset/125031>
Comment 7 WebKit Review Bot 2012-08-08 06:18:38 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Alexey Proskuryakov 2012-08-08 10:09:12 PDT
We already had a bug for this, bug 42543.

There is a bunch of tests skipped on WK2 due to this, which should be unskipped now. That would have validated correctness of output, too.

Kenneth, since you reviewed this patch, can you please work with Mikhail to make this happen?
Comment 9 Alexey Proskuryakov 2012-08-08 10:09:55 PDT
*** Bug 42543 has been marked as a duplicate of this bug. ***
Comment 10 Alexey Proskuryakov 2012-08-08 10:14:16 PDT
Comment on attachment 157192 [details]
to be landed

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

> Source/WebKit2/Shared/API/c/WKURLResponse.cpp:45
> +WKStringRef WKURLResponseCopyMimeType(WKURLResponseRef responseRef)

Coding style violation - MIME should be all caps. Since this part of API, it's super important to have this right, please make a follow-up fix ASAP.

> Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h:81
> +    void dumpProgressFinishedCallback() { setShouldDumpProgressFinishedCallback(true); }    

Trailing whitespace accidentally added here.
Comment 11 Mikhail Pozdnyakov 2012-08-08 12:15:31 PDT
(In reply to comment #10)
> (From update of attachment 157192 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=157192&action=review
> 
> > Source/WebKit2/Shared/API/c/WKURLResponse.cpp:45
> > +WKStringRef WKURLResponseCopyMimeType(WKURLResponseRef responseRef)
> 
> Coding style violation - MIME should be all caps. Since this part of API, it's super important to have this right, please make a follow-up fix ASAP.
> 
> > Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h:81
> > +    void dumpProgressFinishedCallback() { setShouldDumpProgressFinishedCallback(true); }    
> 
> Trailing whitespace accidentally added here.

Sorry for hassle. Here is follow-up fix:
https://bugs.webkit.org/show_bug.cgi?id=93503
Comment 12 Alexey Proskuryakov 2012-08-08 12:37:45 PDT
Thank you!

Please take care of Skipped list, too (per comment 8).
Comment 13 Mikhail Pozdnyakov 2012-08-09 12:20:36 PDT
(In reply to comment #12)
> Thank you!
> 
> Please take care of Skipped list, too (per comment 8).

Addressed here: https://bugs.webkit.org/show_bug.cgi?id=93638.