We are currently working on making the "HAR Export" a native feature in
Firefox (extensions not needed any more). The feature should be part of
Firefox native developer tools.
Here are two related bugs reported:
Bug 859058 - Implement "Copy as HAR" and "Save all as HAR"
Bug 1167080 - Trigger HAR export from within the content
I started with manual HAR export with simple UI/UX (Network panel context
menu actions):
1) Save as HAR - save all HTTP data collected by the Net panel into a HAR
file
2) Copy as HAR - copy collected data into the clipboard.
The second planned step (the second bug in the list above) is to support
automation (automated HAR exports) and I'd like to base it on the following
two things:
1) Expose helper API into the page content. It can be used to trigger HAR
export at any time. API would be exposed only if a secret token is set in
the current Firefox profile (to ensure security).
An example:
// Save all data within the Network panel into 'myFile.har'
// The default directory is specified in preferences
HAR.triggerExport({
fileName: "myFile.har",
});
2) Expose helper event:
"HARPageLoaded": sent when the page finishes loading. This is different
from the existing 'DOMContentLoaded' and 'load' events. This new event is
sent when there are no pending HTTP requests and no new HTTP requests has
started for given period of time (e.g. 1000 ms).
I believe that the trigger method and the event should be enough for
integration with any automated system (e.g. based on Selenium). The rest is
upto the automated system - the driver.
What do you think?
Can we simplify the feature yet?
Do you need more to implement automated HAR export from the browser?
Honza
--
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/firebug.
To view this discussion on the web visit
https://groups.google.com/d/msgid/firebug/a32cb492-152b-475e-a1b6-fc04e419b59a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.