Skip to content
  • abarth@webkit.org's avatar
    Delete DOMWindow::m_url · 1a20f27c
    abarth@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=93989
    
    Reviewed by Eric Seidel.
    
    Source/WebCore:
    
    There's no reason for DOMWindow to keep a separate copy of the
    Document's URL now that there is a predictable way to get a Document
    from a DOMWindow.
    
    * loader/DocumentWriter.cpp:
    (WebCore::DocumentWriter::begin):
    * loader/FrameLoader.cpp:
    (WebCore::FrameLoader::open):
    * page/DOMWindow.cpp:
    (WebCore::DOMWindow::crossDomainAccessErrorMessage):
    * page/DOMWindow.h:
    (DOMWindow):
    
    LayoutTests:
    
    The error messages for these tests now relect the document's updated
    URL after document.write has changed the URL. Previously, we failed to
    sync these changes to DOMWindow::m_url, which is why the error messages
    showed the wrong URL.
    
    * http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write-expected.txt:
    * http/tests/security/aboutBlank/xss-DENIED-set-opener-expected.txt:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1a20f27c