Re: chrome.devtools.onReset?

43 views
Skip to first unread message

Nikita Vasilyev

unread,
May 28, 2012, 6:37:36 AM5/28/12
to chromium-...@chromium.org, google-chrome-...@googlegroups.com
+ google-chrome-developer-tools

On Friday, May 25, 2012 5:26:54 PM UTC+4, Nikita Vasilyev wrote:
There was chrome.experimental.devtools.onReset, now devtools goes out of experimental namespace there is no chrome.devtools.onReset. DevTools Autosave relies on it https://github.com/NV/chrome-devtools-autosave/blob/004ed9fd1a0cb33c782c62f5bbe7216bb10054bf/chrome/devtools.js#L151-155
What should I use instead?

Andrey Kosyakov

unread,
May 28, 2012, 10:25:56 AM5/28/12
to Nikita Vasilyev, chromium-...@chromium.org, google-chrome-...@googlegroups.com
Hi Nikita,
You can use chrome.devtools.network.onNavigated:
http://code.google.com/chrome/extensions/trunk/devtools.network.html#event-onNavigated
It's fired at about the same time that onReset used to when the main
frame navigates to a new URL. Note that unlike onReset, this event is
additionally fired on the DevTools start up, when the front-end
retrieves resource data from the back-end, though you may miss it in
case your extension is loaded after the front-end is initialized.

Best regards,
Andrey.

Nikita Vasilyev

unread,
May 28, 2012, 10:43:28 AM5/28/12
to Andrey Kosyakov, chromium-...@chromium.org, google-chrome-...@googlegroups.com
Hi, Andrey!
Seems to work well, thanks! It doesn’t fire on the DevTools start up for me, though, but that’s all right.
Reply all
Reply to author
Forward
0 new messages