Changeset 64140 in webkit


Ignore:
Timestamp:
Jul 27, 2010 10:17:09 AM (14 years ago)
Author:
Adam Roben
Message:

Make preferences APIs robust against web process crashes

Fixes <http://webkit.org/b/43049> Crash in
WebPageNamespace::preferencesDidChange if preferences are changed
after the web process crashes

Reviewed by Anders Carlsson.

  • UIProcess/WebContext.cpp:

(WebKit::WebContext::preferencesDidChange): Bail out if we don't have
a web process. The new preference values will get propogated to the
web process if and when it launches.

Location:
trunk/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit2/ChangeLog

    r64132 r64140  
     12010-07-27  Adam Roben  <aroben@apple.com>
     2
     3        Make preferences APIs robust against web process crashes
     4
     5        Fixes <http://webkit.org/b/43049> Crash in
     6        WebPageNamespace::preferencesDidChange if preferences are changed
     7        after the web process crashes
     8
     9        Reviewed by Anders Carlsson.
     10
     11        * UIProcess/WebContext.cpp:
     12        (WebKit::WebContext::preferencesDidChange): Bail out if we don't have
     13        a web process. The new preference values will get propogated to the
     14        web process if and when it launches.
     15
    1162010-07-27  Adam Roben  <aroben@apple.com>
    217
  • trunk/WebKit2/UIProcess/WebContext.cpp

    r64070 r64140  
    142142void WebContext::preferencesDidChange()
    143143{
     144    if (!m_process)
     145        return;
     146
    144147    for (HashSet<WebPageNamespace*>::iterator it = m_pageNamespaces.begin(), end = m_pageNamespaces.end(); it != end; ++it) {
    145148        WebPageNamespace* pageNamespace = *it;
Note: See TracChangeset for help on using the changeset viewer.