Changeset 139096 in webkit


Ignore:
Timestamp:
Jan 8, 2013 12:31:37 PM (11 years ago)
Author:
bweinstein@apple.com
Message:

Plug-ins shouldn’t be added to list to autostart if you start a plugin in private browsing.
https://bugs.webkit.org/show_bug.cgi?id=106348
<rdar://problem/12968442>

Reviewed by Anders Carlsson.

  • html/HTMLPlugInImageElement.cpp:

(WebCore::HTMLPlugInImageElement::userDidClickSnapshot): Don't call addAutoStartOrigin if we are

in private browsing mode.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139091 r139096  
     12013-01-08  Brian Weinstein  <bweinstein@apple.com>
     2
     3        Plug-ins shouldn’t be added to list to autostart if you start a plugin in private browsing.
     4        https://bugs.webkit.org/show_bug.cgi?id=106348
     5        <rdar://problem/12968442>
     6
     7        Reviewed by Anders Carlsson.
     8
     9        * html/HTMLPlugInImageElement.cpp:
     10        (WebCore::HTMLPlugInImageElement::userDidClickSnapshot): Don't call addAutoStartOrigin if we are
     11            in private browsing mode.
     12
    1132013-01-08  Chris Fleizach  <cfleizach@apple.com>
    214
  • trunk/Source/WebCore/html/HTMLPlugInImageElement.cpp

    r138927 r139096  
    268268{
    269269    m_pendingClickEventFromSnapshot = event;
    270     if (document()->page())
    271         document()->page()->plugInClient()->addAutoStartOrigin(document()->page()->mainFrame()->document()->baseURL().host(), m_plugInOriginHash);
     270   
     271    if (Page* page = document()->page()) {
     272        if (!page->settings()->privateBrowsingEnabled())
     273            page->plugInClient()->addAutoStartOrigin(document()->page()->mainFrame()->document()->baseURL().host(), m_plugInOriginHash);
     274    }
    272275}
    273276
Note: See TracChangeset for help on using the changeset viewer.