callback = InspectorTest.safeWrap(callback);
var profilesPanel = WebInspector.panels.profiles;
- if (profilesPanel.visibleView && profilesPanel.visibleView.profile && profilesPanel.visibleView.profile.title === title)
+ if (profilesPanel.visibleView && profilesPanel.visibleView.profile && profilesPanel.visibleView._profileHeader.title === title)
callback(profilesPanel.visibleView);
else
InspectorTest._waitUntilProfileViewIsShownCallback = { title: title, callback: callback };
InspectorTest._profileViewRefresh = function()
{
// Called in the context of ProfileView.
- if (InspectorTest._waitUntilProfileViewIsShownCallback && InspectorTest._waitUntilProfileViewIsShownCallback.title === this.profile.title) {
+ if (InspectorTest._waitUntilProfileViewIsShownCallback && InspectorTest._waitUntilProfileViewIsShownCallback.title === this._profileHeader.title) {
var callback = InspectorTest._waitUntilProfileViewIsShownCallback;
delete InspectorTest._waitUntilProfileViewIsShownCallback;
callback.callback(this);