Changeset 162028 in webkit


Ignore:
Timestamp:
Jan 14, 2014 5:35:27 PM (10 years ago)
Author:
benjamin@webkit.org
Message:

[WK2] Make WebPageProxy's setUserAgent private
https://bugs.webkit.org/show_bug.cgi?id=127013

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-01-14
Reviewed by Anders Carlsson.

  • UIProcess/WebPageProxy.h:

The API to modify the user agent already has 3 "setters":
-standardUserAgent
-setApplicationNameForUserAgent
-setCustomUserAgent

The method WebPageProxy::setUserAgent() is supposed to be internal, not used directly.
Using it directly would cause unexpected behaviors, for example:
-Set the user agent with setUserAgent.
-Set CustomUserAgent.
-Reset CustomUserAgent.
->The user agent is now standardUserAgent instead of the user agent defined initially.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r162007 r162028  
     12014-01-14  Benjamin Poulain  <bpoulain@apple.com>
     2
     3        [WK2] Make WebPageProxy's setUserAgent private
     4        https://bugs.webkit.org/show_bug.cgi?id=127013
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * UIProcess/WebPageProxy.h:
     9        The API to modify the user agent already has 3 "setters":
     10        -standardUserAgent
     11        -setApplicationNameForUserAgent
     12        -setCustomUserAgent
     13
     14        The method WebPageProxy::setUserAgent() is supposed to be internal, not used directly.
     15        Using it directly would cause unexpected behaviors, for example:
     16        -Set the user agent with setUserAgent.
     17        -Set CustomUserAgent.
     18        -Reset CustomUserAgent.
     19        ->The user agent is now standardUserAgent instead of the user agent defined initially.
     20
    1212014-01-14  Commit Queue  <commit-queue@webkit.org>
    222
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.h

    r162007 r162028  
    523523    const String& toolTip() const { return m_toolTip; }
    524524
    525     void setUserAgent(const String&);
    526525    const String& userAgent() const { return m_userAgent; }
    527526    void setApplicationNameForUserAgent(const String&);
     
    864863    void resetState();
    865864    void resetStateAfterProcessExited();
     865
     866    void setUserAgent(const String&);
    866867
    867868    // IPC::MessageReceiver
Note: See TracChangeset for help on using the changeset viewer.