Changeset 173543 in webkit
- Timestamp:
- Sep 11, 2014, 3:14:19 PM (12 years ago)
- Location:
- branches/safari-600.1.4.11-branch/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
inspector/InspectorIndexedDBAgent.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-600.1.4.11-branch/Source/WebCore/ChangeLog
r173487 r173543 1 2014-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 1 16 2014-09-10 Babak Shafiei <bshafiei@apple.com> 2 17 3 18 Merge r173345. 4 19 5 20 2014-09-05 Tim Horton <timothy_horton@apple.com> 6 21 -
branches/safari-600.1.4.11-branch/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp
r165607 r173543 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.