Bug 180693
Summary: | [GLIB] ASSERTION FAILED: response.httpStatusCode() < 300 || response.httpStatusCode() >= 400 || response.httpStatusCode() == 304 || !response.httpHeaderField(HTTPHeaderName::Location) running imported/w3c/web-platform-tests/cors/preflight-failure.htm | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ms2ger (he/him; ⌚ UTC+1/+2) <Ms2ger> |
Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | beidson, lmoura |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Ms2ger (he/him; ⌚ UTC+1/+2)
// We want redirect responses to be processed through willSendRequestInternal.
// The only exception is redirection with no Location headers. Or in rare circumstances,
// cases of too many redirects from CFNetwork (<rdar://problem/30610988>).
#if !PLATFORM(COCOA)
ASSERT(response.httpStatusCode() < 300 || response.httpStatusCode() >= 400 || response.httpStatusCode() == 304 || !response.httpHeaderField(HTTPHeaderName::Location));
#endif
Backtrace:
STDERR: 1 0x7fcae077083d WTFCrash
STDERR: 2 0x7fcade847ba9 WebCore::SubresourceLoader::didReceiveResponse(WebCore::ResourceResponse const&)
STDERR: 3 0x7fcadce56f64 WebKit::WebResourceLoader::didReceiveResponse(WebCore::ResourceResponse const&, bool)
STDERR: 4 0x7fcadd17f551 void IPC::callMemberFunctionImpl<WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::ResourceResponse const&, bool), std::tuple<WebCore::ResourceResponse, bool>, 0ul, 1ul>(WebKit::WebResourceLoader*, void (WebKit::WebResourceLoader::*)(WebCore::ResourceResponse const&, bool), std::tuple<WebCore::ResourceResponse, bool>&&, std::integer_sequence<unsigned long, 0ul, 1ul>)
STDERR: 5 0x7fcadd17eeb7 void IPC::callMemberFunction<WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::ResourceResponse const&, bool), std::tuple<WebCore::ResourceResponse, bool>, std::integer_sequence<unsigned long, 0ul, 1ul> >(std::tuple<WebCore::ResourceResponse, bool>&&, WebKit::WebResourceLoader*, void (WebKit::WebResourceLoader::*)(WebCore::ResourceResponse const&, bool))
STDERR: 6 0x7fcadd17e4e6 void IPC::handleMessage<Messages::WebResourceLoader::DidReceiveResponse, WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::ResourceResponse const&, bool)>(IPC::Decoder&, WebKit::WebResourceLoader*, void (WebKit::WebResourceLoader::*)(WebCore::ResourceResponse const&, bool))
STDERR: 7 0x7fcadd17df06 WebKit::WebResourceLoader::didReceiveWebResourceLoaderMessage(IPC::Connection&, IPC::Decoder&)
STDERR: 8 0x7fcadce3d707 WebKit::NetworkProcessConnection::didReceiveMessage(IPC::Connection&, IPC::Decoder&)
STDERR: 9 0x7fcadcabf206 IPC::Connection::dispatchMessage(IPC::Decoder&)
STDERR: 10 0x7fcadcabf370 IPC::Connection::dispatchMessage(std::unique_ptr<IPC::Decoder, std::default_delete<IPC::Decoder> >)
STDERR: 11 0x7fcadcabf571 IPC::Connection::dispatchOneMessage()
STDERR: 12 0x7fcadcabf0b7
STDERR: 13 0x7fcadcac60e4
STDERR: 14 0x7fcadc9bc4f4 WTF::Function<void ()>::operator()() const
STDERR: 15 0x7fcae07a5d76 WTF::RunLoop::performWork()
STDERR: 16 0x7fcae07f7342
STDERR: 17 0x7fcae07f7367
STDERR: 18 0x7fcae07f72e2
STDERR: 19 0x7fcae07f7311
STDERR: 20 0x7fcad30cea2a g_main_context_dispatch
STDERR: 21 0x7fcad30cedd0
STDERR: 22 0x7fcad30cf0f2 g_main_loop_run
STDERR: 23 0x7fcae07f7868 WTF::RunLoop::run()
STDERR: 24 0x7fcadd0b9da0 int WebKit::ChildProcessMain<WebKit::WebProcess, WebKit::WebProcessMain>(int, char**)
STDERR: 25 0x7fcadd0b99f8 WebProcessMainUnix
STDERR: 26 0x4009b1 main
STDERR: 27 0x7fcad3b9b830 __libc_start_main
STDERR: 28 0x400869 _start
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Lauro Moura
No crash in WPE debug as of r272186. Removed the skip in that revision. Closing.
EWS
Committed 270836@main (131ac6d0af06): <https://commits.webkit.org/270836@main>
Reviewed commits have been landed. Closing PR #20542 and removing active labels.