New issue
Advanced search Search tips

Issue 818490 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

How to empty network HARLog in Chrome extension development?

Reported by haiyang5...@gmail.com, Mar 4 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36

Steps to reproduce the problem:
1. I'm developing an extension for Chrome recently。
2. I hope to empty HARLog.
3. I thought out all the chrome.devtools.network api, didn't find any api can do this.
4. I inspect Chrome's Devtools Network tab:
chrome-devtools://devtools/bundled/network/network_module.js
There is the code how the network clear button realizing,
`NetworkLog.networkLog.reset()`
5. When I use it in my code, there is an error: NetworkLog is undefined

Anyone can give some suggestions?

Thanks.

What is the expected behavior?

What went wrong?
Can't use NetworkLog.networkLog.reset() in extension development

Did this work before? No 

Chrome version: 64.0.3282.186  Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
 
Labels: Needs-Triage-M64
Components: Platform>Extensions
Labels: Triaged-ET TE-NeedsTriageHelp
The issue seems to be out of TE-scope as it is related to developing an extension file and suggestion regarding empty network HARLog in Chrome extension development. Hence, adding TE-NeedsTriageHelp for further investigation from dev team.

Thanks...!!

Comment 3 by caseq@chromium.org, Mar 5 2018

Labels: -TE-NeedsTriageHelp -Via-Wizard-DeveloperTools -Triaged-ET -Needs-Triage-M64 Needs-Feedback
We do not expose this functionality through the extension API. I'm not sure I understand your scenario well, though -- can you elaborate on the extension functionality you're trying to achieve?

Comment 4 by caseq@chromium.org, Mar 11 2018

Status: WontFix (was: Unconfirmed)
I only want to do like Network tab clear button, so I can identify which one is new request.
Can I close this issue? I didn't find anyway to do it.

Sign in to add a comment