Commit 2cbe4ae6 authored by lgarron@chromium.org's avatar lgarron@chromium.org

Security panel: observe targets before adding listeners.

BUG=525284

Review URL: https://codereview.chromium.org/1315643008

git-svn-id: svn://svn.chromium.org/blink/trunk@202010 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent f4b89b20
...@@ -34,10 +34,10 @@ WebInspector.SecurityPanel = function() ...@@ -34,10 +34,10 @@ WebInspector.SecurityPanel = function()
this._origins = new Map(); this._origins = new Map();
// TODO(lgarron): add event listeners to call _clear() once we figure out how to clear the panel properly (https://crbug.com/522762). // TODO(lgarron): add event listeners to call _clear() once we figure out how to clear the panel properly (https://crbug.com/522762).
WebInspector.targetManager.observeTargets(this);
WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, WebInspector.NetworkManager.EventTypes.ResponseReceivedSecurityDetails, this._onResponseReceivedSecurityDetails, this); WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, WebInspector.NetworkManager.EventTypes.ResponseReceivedSecurityDetails, this._onResponseReceivedSecurityDetails, this);
WebInspector.targetManager.addModelListener(WebInspector.SecurityModel, WebInspector.SecurityModel.EventTypes.SecurityStateChanged, this._onSecurityStateChanged, this); WebInspector.targetManager.addModelListener(WebInspector.SecurityModel, WebInspector.SecurityModel.EventTypes.SecurityStateChanged, this._onSecurityStateChanged, this);
WebInspector.targetManager.observeTargets(this);
} }
/** @typedef {string} */ /** @typedef {string} */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment