Changeset 165518 in webkit


Ignore:
Timestamp:
Mar 12, 2014, 5:26:20 PM (11 years ago)
Author:
Joseph Pecoraro
Message:

Web Inspector: [iOS 6] uncaught exception attempting to use CSSAgent.getNamedFlowCollection
https://bugs.webkit.org/show_bug.cgi?id=130167

Reviewed by Timothy Hatcher.

Feature check the protocol method before using it. It is
fine to do nothing if the feature is not supported.

  • UserInterface/Controllers/DOMTreeManager.js:
Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r165517 r165518  
     12014-03-12  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: [iOS 6] uncaught exception attempting to use CSSAgent.getNamedFlowCollection
     4        https://bugs.webkit.org/show_bug.cgi?id=130167
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        Feature check the protocol method before using it. It is
     9        fine to do nothing if the feature is not supported.
     10
     11        * UserInterface/Controllers/DOMTreeManager.js:
     12
    1132014-03-12  Joseph Pecoraro  <pecoraro@apple.com>
    214
  • trunk/Source/WebInspectorUI/UserInterface/Controllers/DOMTreeManager.js

    r165516 r165518  
    583583            this.dispatchEventToListeners(WebInspector.DOMTreeManager.Event.ContentFlowListWasUpdated, {documentNodeIdentifier: documentNodeIdentifier, flows: contentFlows});
    584584        }
    585         CSSAgent.getNamedFlowCollection(documentNodeIdentifier, onNamedFlowCollectionAvailable.bind(this));
     585
     586        if (CSSAgent.getNamedFlowCollection)
     587            CSSAgent.getNamedFlowCollection(documentNodeIdentifier, onNamedFlowCollectionAvailable.bind(this));
    586588    },
    587589
Note: See TracChangeset for help on using the changeset viewer.