Bug 135117

Summary: DatabaseProcess doesn't relaunch after crashing
Product: WebKit Reporter: Brady Eidson <beidson>
Component: WebKit2Assignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal Keywords: InRadar
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch v1 ap: review+

Description Brady Eidson 2014-07-21 09:40:06 PDT
DatabaseProcess doesn't relaunch after crashing

It needs to tell its WebContext when it crashes.

<rdar://problem/17717343>
Comment 1 Brady Eidson 2014-07-21 09:45:19 PDT
Created attachment 235222 [details]
Patch v1
Comment 2 Alexey Proskuryakov 2014-07-21 10:10:05 PDT
Comment on attachment 235222 [details]
Patch v1

View in context: https://bugs.webkit.org/attachment.cgi?id=235222&action=review

> Source/WebKit2/UIProcess/WebContext.cpp:499
> +    WebContextSupplementMap::const_iterator it = m_supplements.begin();
> +    WebContextSupplementMap::const_iterator end = m_supplements.end();
> +    for (; it != end; ++it)

We can't have a C++11 loop here, can we?
Comment 3 Brady Eidson 2014-07-21 10:11:31 PDT
(In reply to comment #2)
> (From update of attachment 235222 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=235222&action=review
> 
> > Source/WebKit2/UIProcess/WebContext.cpp:499
> > +    WebContextSupplementMap::const_iterator it = m_supplements.begin();
> > +    WebContextSupplementMap::const_iterator end = m_supplements.end();
> > +    for (; it != end; ++it)
> 
> We can't have a C++11 loop here, can we?

Considered it, decided on replicating the pattern used twice before.  Now you've made me go back the other way.  Will change.
Comment 4 Brady Eidson 2014-07-21 10:14:46 PDT
http://trac.webkit.org/changeset/171303
Comment 5 Darin Adler 2014-07-21 17:08:16 PDT
Comment on attachment 235222 [details]
Patch v1

View in context: https://bugs.webkit.org/attachment.cgi?id=235222&action=review

>>> Source/WebKit2/UIProcess/WebContext.cpp:499
>>> +    for (; it != end; ++it)
>> 
>> We can't have a C++11 loop here, can we?
> 
> Considered it, decided on replicating the pattern used twice before.  Now you've made me go back the other way.  Will change.

It’s especially good if you use values().
Comment 6 Brady Eidson 2014-07-21 18:16:38 PDT
(In reply to comment #5)
> (From update of attachment 235222 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=235222&action=review
> 
> >>> Source/WebKit2/UIProcess/WebContext.cpp:499
> >>> +    for (; it != end; ++it)
> >> 
> >> We can't have a C++11 loop here, can we?
> > 
> > Considered it, decided on replicating the pattern used twice before.  Now you've made me go back the other way.  Will change.
> 
> It’s especially good if you use values().

That definitely would've been even better than what I landed.