Changeset 110834 in webkit


Ignore:
Timestamp:
Mar 15, 2012 2:08:57 AM (12 years ago)
Author:
Carlos Garcia Campos
Message:

[WK2] WebPageProxy::activeURL should return unreachableURL() when it's not empty
https://bugs.webkit.org/show_bug.cgi?id=75465

Reviewed by Philippe Normand.

  • UIProcess/API/gtk/tests/WebViewTest.cpp:

(WebViewTest::replaceContent): Return the main frame
unreachableURL if it's not empty.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::activeURL):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r110820 r110834  
     12012-03-15  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [WK2] WebPageProxy::activeURL should return unreachableURL() when it's not empty
     4        https://bugs.webkit.org/show_bug.cgi?id=75465
     5
     6        Reviewed by Philippe Normand.
     7
     8        * UIProcess/API/gtk/tests/WebViewTest.cpp:
     9        (WebViewTest::replaceContent): Return the main frame
     10        unreachableURL if it's not empty.
     11        * UIProcess/WebPageProxy.cpp:
     12        (WebKit::WebPageProxy::activeURL):
     13
    1142012-03-14  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/API/gtk/tests/WebViewTest.cpp

    r109120 r110834  
    7575void WebViewTest::replaceContent(const char* html, const char* contentURI, const char* baseURI)
    7676{
    77     // FIXME: The active uri should be the contentURI,
    78     // but WebPageProxy doesn't return the unreachableURL
    79     // when the page has been loaded with AlternateHTML()
    80     // See https://bugs.webkit.org/show_bug.cgi?id=75465.
    81 #if 0
    8277    m_activeURI = contentURI;
    83 #else
    84     m_activeURI = "about:blank";
    85 #endif
    8678    webkit_web_view_replace_content(m_webView, html, contentURI, baseURI);
    8779}
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r110714 r110834  
    646646        return m_pendingAPIRequestURL;
    647647
    648     // FIXME: What do we do in the case of the unreachable URL?
     648    if (!m_mainFrame->unreachableURL().isEmpty())
     649        return m_mainFrame->unreachableURL();
    649650
    650651    switch (m_mainFrame->loadState()) {
Note: See TracChangeset for help on using the changeset viewer.