CLOSED FIXED 36690
[Qt] LayoutTests/http/tests/appcache/resource-redirect-2.html failed and skipped
https://bugs.webkit.org/show_bug.cgi?id=36690
Summary [Qt] LayoutTests/http/tests/appcache/resource-redirect-2.html failed and skipped
Chang Shu
Reported 2010-03-26 18:31:36 PDT
The above test timed out on QtLinux.
Attachments
Patch helps in detetcting http redirect loops in Qt (3.53 KB, patch)
2010-03-29 13:34 PDT, krithigassree.sambamurthy
no flags
Re-submitting patch according to style rules (3.73 KB, patch)
2010-03-30 07:19 PDT, krithigassree.sambamurthy
eric: review-
Patch file adhereing to style rules (3.53 KB, patch)
2010-04-02 13:47 PDT, krithigassree.sambamurthy
laszlo.gombos: review-
eric: commit-queue-
Patch file for appcache layout tests that can be removed from the skipped list. (1.14 KB, patch)
2010-04-06 11:43 PDT, krithigassree.sambamurthy
no flags
new patch file following tab rules for Change log (1.14 KB, patch)
2010-04-06 13:11 PDT, krithigassree.sambamurthy
no flags
krithigassree.sambamurthy
Comment 1 2010-03-29 13:34:33 PDT
Created attachment 51960 [details] Patch helps in detetcting http redirect loops in Qt
WebKit Review Bot
Comment 2 2010-03-29 13:39:37 PDT
Attachment 51960 [details] did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 WebCore/platform/network/qt/QNetworkReplyHandler.cpp:252: An else should appear on the same line as the preceding } [whitespace/newline] [4] Total errors found: 1 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
krithigassree.sambamurthy
Comment 3 2010-03-30 07:19:05 PDT
Created attachment 52035 [details] Re-submitting patch according to style rules
Eric Seidel (no email)
Comment 4 2010-04-01 16:53:18 PDT
Comment on attachment 52035 [details] Re-submitting patch according to style rules LayoutTests ChangeLog is bogus.
krithigassree.sambamurthy
Comment 5 2010-04-02 13:47:52 PDT
Created attachment 52447 [details] Patch file adhereing to style rules
Eric Seidel (no email)
Comment 6 2010-04-05 12:57:23 PDT
Comment on attachment 52447 [details] Patch file adhereing to style rules Tab in the ChangeLog will prevent this from being committed. I'm surprised the style bot didn't catch that. This looks sane, although I'm surprised the Qt network layer doesn't do this for you.
Laszlo Gombos
Comment 7 2010-04-05 13:03:13 PDT
Comment on attachment 52447 [details] Patch file adhereing to style rules r- as this now has to be reworked after fix for 37097 is landed. The same bug (missing feature) cause both xhr and app cache failures. Bug 37097 is using 10 as a redirect limit, I'm ok with that instead of 16 proposed as part of this patch. Krithiga, can you rewor your patch so that it works on top of patch for bug 37097. I think your error handling code and the Skipped list update is still needed.
Chang Shu
Comment 8 2010-04-05 13:32:03 PDT
(In reply to comment #7) > (From update of attachment 52447 [details]) > r- as this now has to be reworked after fix for 37097 is landed. The same bug > (missing feature) cause both xhr and app cache failures. > > Bug 37097 is using 10 as a redirect limit, I'm ok with that instead of 16 > proposed as part of this patch. > > Krithiga, can you rewor your patch so that it works on top of patch for bug > 37097. I think your error handling code and the Skipped list update is still > needed. Thanks for finding this out for us, Laszlo.
Robert Hogan
Comment 9 2010-04-05 14:11:33 PDT
(In reply to comment #6) > (From update of attachment 52447 [details]) > Tab in the ChangeLog will prevent this from being committed. I'm surprised the > style bot didn't catch that. > > This looks sane, although I'm surprised the Qt network layer doesn't do this > for you. QtNetwork is pretty agnostic on this score. It passes back redirects to the client by setting an attribute in the QNetworkRequest: \value RedirectionTargetAttribute Replies only, type: QVariant::Url (no default) If present, it indicates that the server is redirecting the request to a different URL. The Network Access API does not by default follow redirections: it's up to the application to determine if the requested redirection should be allowed, according to its security policies. The returned URL might be relative. Use QUrl::resolved() to create an absolute URL out of it. So if QtWebKit wants to respect redirects it needs to sanity check them as well.
Chang Shu
Comment 10 2010-04-05 14:50:01 PDT
(In reply to comment #9) > (In reply to comment #6) > > (From update of attachment 52447 [details] [details]) > So if QtWebKit wants to respect redirects it needs to sanity check them as > well. Thanks for the clarification. This confirms the correctness of webkit approach.
krithigassree.sambamurthy
Comment 11 2010-04-06 11:43:19 PDT
Created attachment 52654 [details] Patch file for appcache layout tests that can be removed from the skipped list. New patch file containing the changes to layout skipped tests and corresponding change log.
Laszlo Gombos
Comment 12 2010-04-06 12:20:25 PDT
ChangeLog has a small text alignment issue, otherwise looks good. Krithiga, can you fix it ?
krithigassree.sambamurthy
Comment 13 2010-04-06 13:11:33 PDT
Created attachment 52659 [details] new patch file following tab rules for Change log
Laszlo Gombos
Comment 14 2010-04-06 13:16:12 PDT
Comment on attachment 52659 [details] new patch file following tab rules for Change log lgtm, r+.
WebKit Commit Bot
Comment 15 2010-04-06 16:04:51 PDT
Comment on attachment 52659 [details] new patch file following tab rules for Change log Clearing flags on attachment: 52659 Committed r57175: <http://trac.webkit.org/changeset/57175>
WebKit Commit Bot
Comment 16 2010-04-06 16:04:57 PDT
All reviewed patches have been landed. Closing bug.
Simon Hausmann
Comment 17 2010-05-07 14:16:21 PDT
Revision r57175 cherry-picked into qtwebkit-2.0 with commit f8d7b7e06126519131d47d84f5d8cc9f0873b9fb
Csaba Osztrogonác
Comment 18 2010-06-09 06:54:53 PDT
(In reply to comment #17) > Revision r57175 cherry-picked into qtwebkit-2.0 with commit f8d7b7e06126519131d47d84f5d8cc9f0873b9fb This make http/tests/appcache/fallback.html crash on the qtwebkit-2.0 bot. Have you got any idea why? I tried against Qt 4.6.0, 4.6.2 and 4.7.0, but they didn't solve this crash.
Note You need to log in before you can comment on or make changes to this bug.