⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 187248 in webkit


Ignore:
Timestamp:
Jul 23, 2015, 1:18:41 PM (11 years ago)
Author:
beidson@apple.com
Message:

Crash in WebPlatformStrategies::createPingHandle - Deref a null NetworkingContext.
<rdar://problem/21949735> and https://bugs.webkit.org/show_bug.cgi?id=147227

Reviewed by Alexey Proskuryakov.

Source/WebKit2:

  • WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:

(WebKit::WebPlatformStrategies::createPingHandle): Skip it if there's a null NetworkingContext.

LayoutTests:

  • http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher-expected.txt: Added.
  • http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r187228 r187248  
     12015-07-23  Brady Eidson  <beidson@apple.com>
     2
     3        Crash in WebPlatformStrategies::createPingHandle - Deref a null NetworkingContext.
     4        <rdar://problem/21949735> and https://bugs.webkit.org/show_bug.cgi?id=147227
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher-expected.txt: Added.
     9        * http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.html: Added.
     10
    1112015-07-23  Michael Saboff  <msaboff@apple.com>
    212
  • trunk/Source/WebKit2/ChangeLog

    r187240 r187248  
     12015-07-23  Brady Eidson  <beidson@apple.com>
     2
     3        Crash in WebPlatformStrategies::createPingHandle - Deref a null NetworkingContext.
     4        <rdar://problem/21949735> and https://bugs.webkit.org/show_bug.cgi?id=147227
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
     9        (WebKit::WebPlatformStrategies::createPingHandle): Skip it if there's a null NetworkingContext.
     10
    1112015-07-23  Tim Horton  <timothy_horton@apple.com>
    212
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp

    r186530 r187248  
    252252void WebPlatformStrategies::createPingHandle(NetworkingContext* networkingContext, ResourceRequest& request, bool shouldUseCredentialStorage)
    253253{
     254    // It's possible that call to createPingHandle might be made during initial empty Document creation before a NetworkingContext exists.
     255    // It is not clear that we should send ping loads during that process anyways.
     256    if (!networkingContext)
     257        return;
     258
    254259    auto& webProcess = WebProcess::singleton();
    255260    if (!webProcess.usesNetworkProcess()) {
Note: See TracChangeset for help on using the changeset viewer.