Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox 57 and later? #45

Open
soulgalore opened this issue Apr 23, 2017 · 5 comments
Open

Firefox 57 and later? #45

soulgalore opened this issue Apr 23, 2017 · 5 comments

Comments

@soulgalore
Copy link

Hi!
I know we are ahead of time but I wanna check about the plan for the extension or another way to get a HAR when we reach Firefox 57 and it only supports WebExtensions? I would love to contribute or help out if I can.

Best
Peter

@janodvarko
Copy link
Member

The extension should be refactored and based on WebExtensions API
https://developer.mozilla.org/en-US/Add-ons/WebExtensions

It might happen that it needs some new WebExtension API. In such case we need to implement prototype of the required API as WebExtension experiment and suggest to make it built-in (there is a mailing list where new API are being suggested).
https://webextensions-experiments.readthedocs.io/en/latest/

Help is welcome!

Honza

@soulgalore
Copy link
Author

Cool, both me and @tobli is interested in helping out (we need it for Browsertime). Chrome uses network that we miss in Firefox so far: https://developer.chrome.com/extensions/devtools_network with a getHAR() function.

I'll check out the experiments, thanks!
Best
Peter

@janodvarko
Copy link
Member

I see, sounds good!

getHAR() should be implemented as part of this bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1311177

Honza

@soulgalore
Copy link
Author

Cool, let me try to see if I can do something like what we have in HAR Export Trigger but for Chrome for now using WebExtension, can probably do something next week, will keep you posted.

@soulgalore
Copy link
Author

I've started with like the simplest version just injecting a content script, talking to the background page, sending a message to devtools and then send back the HAR: https://github.com/soulgalore/har-webextension

There's a lot more that needs to be done (I just wanted to test want I could do now), and really we need to be able to get the HAR without having the devtools-panel open and I guess that will be a problem? When we use the HAR Export trigger we also records a video of the screen to be able to measure firstVisualChange/SpeedIndex etc so we don't want to have anything else on the screen except the actual content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants