Changeset 88812 in webkit


Ignore:
Timestamp:
Jun 14, 2011 9:46:49 AM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-06-14 Adam Barth <abarth@webkit.org>

Reviewed by Darin Fisher.

WebFrame::url() should use the one true URL
https://bugs.webkit.org/show_bug.cgi?id=62610

The Document's URL is the one true URL. Thou shalt have no URLs before
Document::url().

  • src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::url):
Location:
trunk/Source/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r88755 r88812  
     12011-06-14  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Darin Fisher.
     4
     5        WebFrame::url() should use the one true URL
     6        https://bugs.webkit.org/show_bug.cgi?id=62610
     7
     8        The Document's URL is the one true URL.  Thou shalt have no URLs before
     9        Document::url().
     10
     11        * src/WebFrameImpl.cpp:
     12        (WebKit::WebFrameImpl::url):
     13
    1142011-06-13  James Simonsen  <simonjam@chromium.org>
    215
  • trunk/Source/WebKit/chromium/public/WebFrame.h

    r87469 r88812  
    129129    virtual long long identifier() const = 0;
    130130
    131     // The url of the document loaded in this frame.  This is equivalent to
    132     // dataSource()->request().url().
     131    // The url of the document loaded in this frame.
    133132    virtual WebURL url() const = 0;
    134133
  • trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp

    r88682 r88812  
    520520WebURL WebFrameImpl::url() const
    521521{
    522     const WebDataSource* ds = dataSource();
    523     if (!ds)
    524         return WebURL();
    525     return ds->request().url();
     522    return m_frame->document()->url();
    526523}
    527524
Note: See TracChangeset for help on using the changeset viewer.