Commit 5367c419 authored by weinig@apple.com's avatar weinig@apple.com
Browse files

2008-06-26 Sam Weinig <sam@webkit.org>

        Reviewed by John Sullivan.

        <rdar://problem/6031969> Crash in SecurityOrigin code going Forward to a page in the back/forward cache

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::open): Make sure to update the SecurityOrigin and URL of the 
        DOMWindow when opening a CachedPage.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34817 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d602b686
2008-06-26 Sam Weinig <sam@webkit.org>
Reviewed by John Sullivan.
<rdar://problem/6031969> Crash in SecurityOrigin code going Forward to a page in the back/forward cache
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::open): Make sure to update the SecurityOrigin and URL of the
DOMWindow when opening a CachedPage.
2008-06-26 Eric Seidel <eric@webkit.org>
 
Reviewed by Beth Dakin.
......@@ -2875,6 +2875,9 @@ void FrameLoader::open(CachedPage& cachedPage)
m_frame->setView(view);
m_frame->setDocument(document);
m_frame->domWindow()->setURL(document->url());
m_frame->domWindow()->setSecurityOrigin(document->securityOrigin());
m_decoder = document->decoder();
updatePolicyBaseURL();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment