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

Changeset 173543 in webkit


Ignore:
Timestamp:
Sep 11, 2014, 3:14:19 PM (12 years ago)
Author:
bshafiei@apple.com
Message:

Merged r173016. <rdar://problem/18120176>

Location:
branches/safari-600.1.4.11-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-600.1.4.11-branch/Source/WebCore/ChangeLog

    r173487 r173543  
     12014-09-11  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Merge r173016.
     4
     5    2014-08-27  Timothy Hatcher  <timothy@apple.com>
     6
     7            Web Inspector: Crash when you open Web Inspector in a private window (due to IndexedDB)
     8            https://bugs.webkit.org/show_bug.cgi?id=136293
     9
     10            Reviewed by Joseph Pecoraro.
     11
     12            * inspector/InspectorIndexedDBAgent.cpp:
     13            (WebCore::InspectorIndexedDBAgent::requestDatabaseNames): Null check idbRequest from
     14            IDBFactory::getDatabaseNames, which can return null now after r172603 in private browsing.
     15
    1162014-09-10  Babak Shafiei  <bshafiei@apple.com>
    217
    318        Merge r173345.
    4        
     19
    520    2014-09-05  Tim Horton  <timothy_horton@apple.com>
    621
  • branches/safari-600.1.4.11-branch/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp

    r165607 r173543  
    584584{
    585585    Document* document = frame ? frame->document() : nullptr;
    586 
    587586    if (!document)
    588587        *errorString = "No document for given frame found";
    589 
    590588    return document;
    591589}
    … …  
    598596        return nullptr;
    599597    }
     598
    600599    IDBFactory* idbFactory = DOMWindowIndexedDatabase::indexedDB(domWindow);
    601 
    602600    if (!idbFactory)
    603601        *errorString = "No IndexedDB factory for given frame found";
    … …  
    612610    if (!document)
    613611        return;
     612
    614613    IDBFactory* idbFactory = assertIDBFactory(errorString, document);
    615614    if (!idbFactory)
    … …  
    618617    ExceptionCode ec = 0;
    619618    RefPtr<IDBRequest> idbRequest = idbFactory->getDatabaseNames(document, ec);
    620     if (ec) {
     619    if (!idbRequest || ec) {
    621620        requestCallback->sendFailure("Could not obtain database names.");
    622621        return;
    623622    }
     623
    624624    idbRequest->addEventListener(eventNames().successEvent, GetDatabaseNamesCallback::create(requestCallback, document->securityOrigin()->toRawString()), false);
    625625}
    … …  
    631631    if (!document)
    632632        return;
     633
    633634    IDBFactory* idbFactory = assertIDBFactory(errorString, document);
    634635    if (!idbFactory)
    … …  
    645646    if (!document)
    646647        return;
     648
    647649    IDBFactory* idbFactory = assertIDBFactory(errorString, document);
    648650    if (!idbFactory)
Note: See TracChangeset for help on using the changeset viewer.