Bug 43222

Summary: Setting empty document schemes on the WKContext shouldn't start the WebProcess
Product: WebKit Reporter: Brady Eidson <beidson>
Component: New BugsAssignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch sam: review+

Description Brady Eidson 2010-07-29 17:32:42 PDT
Setting empty document schemes on the WKContext shouldn't start the WebProcess
Comment 1 Brady Eidson 2010-07-29 17:33:55 PDT
Created attachment 63016 [details]
Patch
Comment 2 Sam Weinig 2010-07-29 17:39:43 PDT
Comment on attachment 63016 [details]
Patch

>  
>  void WebContext::registerURLSchemeAsEmptyDocument(const String& urlScheme)
>  {
> -    ensureWebProcess();
> +    if (!hasValidProcess()) {
> +        m_schemesToRegisterAsEmptyDocument.add(urlScheme);

I think we always want to store these for the crashing case and we shouldn't clear them after sending. 

Otherwise, r=me.
Comment 3 Brady Eidson 2010-07-29 17:40:54 PDT
Committed r64324: <http://trac.webkit.org/changeset/64324>