WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
108334
[chromium] move remaining resource load related methods to TestRunner library
https://bugs.webkit.org/show_bug.cgi?id=108334
Summary
[chromium] move remaining resource load related methods to TestRunner library
jochen
Reported
2013-01-30 05:47:27 PST
[chromium] move remaining resource load related methods to TestRunner library
Attachments
Patch
(13.86 KB, patch)
2013-01-30 05:47 PST
,
jochen
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
jochen
Comment 1
2013-01-30 05:47:51 PST
Created
attachment 185477
[details]
Patch
WebKit Review Bot
Comment 2
2013-01-30 05:53:17 PST
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
Adam Barth
Comment 3
2013-01-30 11:59:45 PST
Comment on
attachment 185477
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=185477&action=review
> Tools/DumpRenderTree/chromium/TestRunner/public/WebTestProxy.h:410 > + return WebTestProxyBase::cannotHandleRequestError(frame, request);
There's no call to Base here?
> Tools/DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp:772 > + return !url.SchemeIs("spaceballs");
I probably would have combined this line with 769.
jochen
Comment 4
2013-01-30 12:04:23 PST
Comment on
attachment 185477
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=185477&action=review
>> Tools/DumpRenderTree/chromium/TestRunner/public/WebTestProxy.h:410 >> + return WebTestProxyBase::cannotHandleRequestError(frame, request); > > There's no call to Base here?
RenderViewImpl has NOTREACHED() in cannotHandleRequestError because it claims to be able to handle all requests.
>> Tools/DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp:772 >> + return !url.SchemeIs("spaceballs"); > > I probably would have combined this line with 769.
done
jochen
Comment 5
2013-01-30 12:13:29 PST
Comment on
attachment 185477
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=185477&action=review
>>> Tools/DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp:772 >>> + return !url.SchemeIs("spaceballs"); >> >> I probably would have combined this line with 769. > > done
Actually, we need to cast the WebURL to GURL to get access to SchemeIs
Adam Barth
Comment 6
2013-01-30 12:57:31 PST
(In reply to
comment #4
)
> (From update of
attachment 185477
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=185477&action=review
> > >> Tools/DumpRenderTree/chromium/TestRunner/public/WebTestProxy.h:410 > >> + return WebTestProxyBase::cannotHandleRequestError(frame, request); > > > > There's no call to Base here? > > RenderViewImpl has NOTREACHED() in cannotHandleRequestError because it claims to be able to handle all requests.
It seems odd for this code to know that detail about RenderViewImpl. Perhaps we should ASSERT that we're in some sort of testing mode?
> >>> Tools/DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp:772 > >>> + return !url.SchemeIs("spaceballs"); > >> > >> I probably would have combined this line with 769. > > > > done > > Actually, we need to cast the WebURL to GURL to get access to SchemeIs
Ok.
jochen
Comment 7
2013-01-30 14:14:43 PST
Comment on
attachment 185477
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=185477&action=review
>>>> Tools/DumpRenderTree/chromium/TestRunner/public/WebTestProxy.h:410 >>>> + return WebTestProxyBase::cannotHandleRequestError(frame, request); >>> >>> There's no call to Base here? >> >> RenderViewImpl has NOTREACHED() in cannotHandleRequestError because it claims to be able to handle all requests. > > It seems odd for this code to know that detail about RenderViewImpl. Perhaps we should ASSERT that we're in some sort of testing mode?
there are already a bunch of places that don't call Base, e.g. createView doesn't call base if the proxy decides not to create a view. Other places don't call Base because the API guarantees certain conditions which we violate during tests, e.g. combinations smart insert/delete and selecting trailing whitespace. I think this falls into both categories: the API guarantees that cannotHandleRequestError is not invoked unless canHandleRequest returns false. And since it's the Proxy that returned false, it would violate the API if we forwarded this call to the embedder. Also, I can only return one header, so even if I called out to Base, I had to discard the result.
Build Bot
Comment 8
2013-01-30 19:24:51 PST
Comment on
attachment 185477
[details]
Patch
Attachment 185477
[details]
did not pass win-ews (win): Output:
http://queues.webkit.org/results/16252080
Adam Barth
Comment 9
2013-01-30 20:17:57 PST
ok
WebKit Review Bot
Comment 10
2013-01-31 00:02:27 PST
Comment on
attachment 185477
[details]
Patch Clearing flags on attachment: 185477 Committed
r141381
: <
http://trac.webkit.org/changeset/141381
>
WebKit Review Bot
Comment 11
2013-01-31 00:02:32 PST
All reviewed patches have been landed. Closing bug.
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