https://bugs.webkit.org/show_bug.cgi?id=110482
Reviewed by Adam Barth.
Test: http/tests/security/XFrameOptions/x-frame-options-deny-multiple-clients.html
* loader/cache/CachedRawResource.cpp:
(WebCore::CachedRawResource::responseReceived):
LayoutTests: Test for https://bugs.webkit.org/show_bug.cgi?id=110482
Reviewed by Adam Barth.
* http/tests/security/XFrameOptions/x-frame-options-deny-multiple-clients-expected.txt: Added.
* http/tests/security/XFrameOptions/x-frame-options-deny-multiple-clients.html: Added.
* platform/chromium/http/tests/security/XFrameOptions/x-frame-options-deny-multiple-clients-expected.txt: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@144338
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2013-02-28 Nate Chapin <japhet@chromium.org>
+
+ Test for https://bugs.webkit.org/show_bug.cgi?id=110482
+
+ Reviewed by Adam Barth.
+
+ * http/tests/security/XFrameOptions/x-frame-options-deny-multiple-clients-expected.txt: Added.
+ * http/tests/security/XFrameOptions/x-frame-options-deny-multiple-clients.html: Added.
+ * platform/chromium/http/tests/security/XFrameOptions/x-frame-options-deny-multiple-clients-expected.txt: Added.
+
2013-02-28 Chris Fleizach <cfleizach@apple.com>
WebSpeech: support the boundary event
--- /dev/null
+CONSOLE MESSAGE: Refused to display 'http://127.0.0.1:8000/security/XFrameOptions/resources/x-frame-options-deny.cgi' in a frame because it set 'X-Frame-Options' to 'deny'.
+Test that two main resources pointing to the same url that are canceled within didReceiveResponse() don't cause us to crash.
--- /dev/null
+<html>
+<head>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+</head>
+<body>
+Test that two main resources pointing to the same url that are canceled within didReceiveResponse() don't cause us to crash.
+
+<iframe src="http://127.0.0.1:8000/security/XFrameOptions/resources/x-frame-options-deny.cgi"></iframe>
+<iframe src="http://127.0.0.1:8000/security/XFrameOptions/resources/x-frame-options-deny.cgi"></iframe>
+</body>
+</html>
--- /dev/null
+CONSOLE MESSAGE: Refused to display 'http://127.0.0.1:8000/security/XFrameOptions/resources/x-frame-options-deny.cgi' in a frame because it set 'X-Frame-Options' to 'deny'.
+CONSOLE MESSAGE: Refused to display 'http://127.0.0.1:8000/security/XFrameOptions/resources/x-frame-options-deny.cgi' in a frame because it set 'X-Frame-Options' to 'deny'.
+Test that two main resources pointing to the same url that are canceled within didReceiveResponse() don't cause us to crash.
+2013-02-28 Nate Chapin <japhet@chromium.org>
+
+ Crash in CachedRawResource::responseReceived().
+ https://bugs.webkit.org/show_bug.cgi?id=110482
+
+ Reviewed by Adam Barth.
+
+ Test: http/tests/security/XFrameOptions/x-frame-options-deny-multiple-clients.html
+
+ * loader/cache/CachedRawResource.cpp:
+ (WebCore::CachedRawResource::responseReceived):
+
2013-02-28 Eric Carlson <eric.carlson@apple.com>
[Mac] use HAVE() macro instead of version check
void CachedRawResource::responseReceived(const ResourceResponse& response)
{
+ CachedResourceHandle<CachedRawResource> protect(this);
if (!m_identifier)
m_identifier = m_loader->identifier();
CachedResource::responseReceived(response);