Changeset 140445 in webkit


Ignore:
Timestamp:
Jan 22, 2013 11:24:58 AM (11 years ago)
Author:
sergio@webkit.org
Message:

[Soup] Random thread crashes
https://bugs.webkit.org/show_bug.cgi?id=107439

Reviewed by Martin Robinson.

Process all pending requests in the inner GMainContext created to
perform synchronous requests before restoring the thread default. No
new tests required, already covered by network tests.

  • platform/network/soup/ResourceHandleSoup.cpp:

(WebCore::WebCoreSynchronousLoader::~WebCoreSynchronousLoader):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r140443 r140445  
     12013-01-22  Sergio Villar Senin  <svillar@igalia.com>
     2
     3        [Soup] Random thread crashes
     4        https://bugs.webkit.org/show_bug.cgi?id=107439
     5
     6        Reviewed by Martin Robinson.
     7
     8        Process all pending requests in the inner GMainContext created to
     9        perform synchronous requests before restoring the thread default. No
     10        new tests required, already covered by network tests.
     11
     12        * platform/network/soup/ResourceHandleSoup.cpp:
     13        (WebCore::WebCoreSynchronousLoader::~WebCoreSynchronousLoader):
     14
    1152013-01-22  Christophe Dumez  <christophe.dumez@intel.com>
    216
  • trunk/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp

    r140425 r140445  
    118118    {
    119119        adjustMaxConnections(-1);
    120         g_main_context_pop_thread_default(g_main_context_get_thread_default());
     120
     121        GMainContext* context = g_main_context_get_thread_default();
     122        while (g_main_context_pending(context))
     123            g_main_context_iteration(context, FALSE);
     124
     125        g_main_context_pop_thread_default(context);
    121126        loadingSynchronousRequest = false;
    122127    }
Note: See TracChangeset for help on using the changeset viewer.