Commit 3010c8b2 authored by nednguyen@google.com's avatar nednguyen@google.com

Revert the revert in https://codereview.chromium.org/323713002/ and fix the bug.

NOTRY=true
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275690 0039d316-1c4b-4281-b951-d872f2087c98
parent c30a9b7a
......@@ -74,14 +74,10 @@ class InspectorBackend(inspector_websocket.InspectorWebsocket):
@property
def url(self):
for c in self._browser_backend.ListInspectableContexts():
if c['id'] == self.id:
if c['id'] == self._context['id']:
return c['url']
return None
@property
def id(self):
return self._context['id']
@property
def id(self):
return self.debugger_url
......@@ -220,7 +216,7 @@ class InspectorBackend(inspector_websocket.InspectorWebsocket):
def _IsInspectable(self):
contexts = self._browser_backend.ListInspectableContexts()
return self.id in [c['id'] for c in contexts]
return self._context['id'] in [c['id'] for c in contexts]
def _HandleNotification(self, res):
if (res['method'] == 'Inspector.detached' and
......
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