Changeset 64324 in webkit


Ignore:
Timestamp:
Jul 29, 2010 5:40:39 PM (14 years ago)
Author:
beidson@apple.com
Message:

2010-07-29 Brady Eidson <beidson@apple.com>

Reviewed by Sam Weinig.

Setting empty document schemes on the WKContext shouldn't start the WebProcess
<rdar://problem/8253734> and https://bugs.webkit.org/show_bug.cgi?id=43222


  • UIProcess/WebContext.cpp: (WebKit::WebContext::ensureWebProcess): (WebKit::WebContext::registerURLSchemeAsEmptyDocument):
  • UIProcess/WebContext.h:
Location:
trunk/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit2/ChangeLog

    r64317 r64324  
     12010-07-29  Brady Eidson  <beidson@apple.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Setting empty document schemes on the WKContext shouldn't start the WebProcess
     6        <rdar://problem/8253734> and https://bugs.webkit.org/show_bug.cgi?id=43222
     7       
     8        * UIProcess/WebContext.cpp:
     9        (WebKit::WebContext::ensureWebProcess):
     10        (WebKit::WebContext::registerURLSchemeAsEmptyDocument):
     11        * UIProcess/WebContext.h:
     12
    1132010-07-29  Brady Eidson  <beidson@apple.com>
    214
  • trunk/WebKit2/UIProcess/WebContext.cpp

    r64317 r64324  
    107107
    108108    m_process->send(WebProcessMessage::SetShouldTrackVisitedLinks, 0, CoreIPC::In(m_historyClient.shouldTrackVisitedLinks()));
     109
     110    for (HashSet<String>::iterator it = m_schemesToRegisterAsEmptyDocument.begin(), end = m_schemesToRegisterAsEmptyDocument.end(); it != end; ++it)
     111        m_process->send(WebProcessMessage::RegisterURLSchemeAsEmptyDocument, 0, CoreIPC::In(*it));
    109112}
    110113
     
    229232void WebContext::registerURLSchemeAsEmptyDocument(const String& urlScheme)
    230233{
    231     ensureWebProcess();
     234    m_schemesToRegisterAsEmptyDocument.add(urlScheme);
     235
     236    if (!hasValidProcess())
     237        return;
    232238
    233239    m_process->send(WebProcessMessage::RegisterURLSchemeAsEmptyDocument, 0, CoreIPC::In(urlScheme));
  • trunk/WebKit2/UIProcess/WebContext.h

    r64317 r64324  
    3434#include "WebProcessProxy.h"
    3535#include <WebCore/PlatformString.h>
     36#include <WebCore/StringHash.h>
    3637#include <wtf/Forward.h>
    3738#include <wtf/HashSet.h>
     
    119120
    120121    PluginInfoStore m_pluginInfoStore;
     122   
     123    HashSet<WebCore::String> m_schemesToRegisterAsEmptyDocument;
    121124};
    122125
Note: See TracChangeset for help on using the changeset viewer.