Changeset 173016 in webkit
- Timestamp:
- Aug 27, 2014, 1:31:35 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
inspector/InspectorIndexedDBAgent.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r173014 r173016 1 2014-08-27 Timothy Hatcher <timothy@apple.com> 2 3 Web Inspector: Crash when you open Web Inspector in a private window (due to IndexedDB) 4 https://bugs.webkit.org/show_bug.cgi?id=136293 5 6 Reviewed by Joseph Pecoraro. 7 8 * inspector/InspectorIndexedDBAgent.cpp: 9 (WebCore::InspectorIndexedDBAgent::requestDatabaseNames): Null check idbRequest from 10 IDBFactory::getDatabaseNames, which can return null now after r172603 in private browsing. 11 1 12 2014-08-27 Beth Dakin <bdakin@apple.com> 2 13 -
trunk/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp
r172930 r173016 584 584 { 585 585 Document* document = frame ? frame->document() : nullptr; 586 587 586 if (!document) 588 587 *errorString = "No document for given frame found"; 589 590 588 return document; 591 589 } … … 598 596 return nullptr; 599 597 } 598 600 599 IDBFactory* idbFactory = DOMWindowIndexedDatabase::indexedDB(domWindow); 601 602 600 if (!idbFactory) 603 601 *errorString = "No IndexedDB factory for given frame found"; … … 612 610 if (!document) 613 611 return; 612 614 613 IDBFactory* idbFactory = assertIDBFactory(errorString, document); 615 614 if (!idbFactory) … … 618 617 ExceptionCode ec = 0; 619 618 RefPtr<IDBRequest> idbRequest = idbFactory->getDatabaseNames(document, ec); 620 if ( ec) {619 if (!idbRequest || ec) { 621 620 requestCallback->sendFailure("Could not obtain database names."); 622 621 return; 623 622 } 623 624 624 idbRequest->addEventListener(eventNames().successEvent, GetDatabaseNamesCallback::create(requestCallback, document->securityOrigin()->toRawString()), false); 625 625 } … … 631 631 if (!document) 632 632 return; 633 633 634 IDBFactory* idbFactory = assertIDBFactory(errorString, document); 634 635 if (!idbFactory) … … 645 646 if (!document) 646 647 return; 648 647 649 IDBFactory* idbFactory = assertIDBFactory(errorString, document); 648 650 if (!idbFactory)
Note:
See TracChangeset
for help on using the changeset viewer.