Changeset 24516 in webkit


Ignore:
Timestamp:
Jul 22, 2007, 12:43:43 PM (18 years ago)
Author:
darin
Message:

Reviewed by Adam.

  • fix <rdar://problem/5350604> REGRESSION: Crash in inspector controller code after clicking back button in test application (13250)
  • page/InspectorController.cpp: (WebCore::InspectorController::addScriptResource): Replace an assertion that was firing with some code that at least doesn't immediately crash.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r24514 r24516  
     12007-07-18  Darin Adler  <darin@apple.com>
     2
     3        Reviewed by Adam.
     4
     5        - fix <rdar://problem/5350604> REGRESSION: Crash in inspector controller code after
     6          clicking back button in test application (13250)
     7
     8        * page/InspectorController.cpp: (WebCore::InspectorController::addScriptResource):
     9        Replace an assertion that was firing with some code that at least doesn't immediately crash.
     10
    1112007-07-22  Darin Adler  <darin@apple.com>
    212
  • trunk/WebCore/page/InspectorController.cpp

    r24422 r24516  
    727727{
    728728    ASSERT_ARG(resource, resource);
    729     ASSERT(!resource->scriptObject);
     729
     730    // This happens for pages loaded from the back/forward cache.
     731    if (resource->scriptObject)
     732        return resource->scriptObject;
    730733
    731734    ASSERT(m_scriptContext);
Note: See TracChangeset for help on using the changeset viewer.