Now I read the Firefox bug, I understand that Har export is becoming part
of Firefox.
Since it is going to be lightweight, do we have options for sending beacons
- if not, can you spin out the code that you've written in FBug 3.0 to a
new extension which can publish the har to a URL on "HARPageLoaded" or
Manual trigger.
My earlier request to add headers will fall here - it should not be part of
the firefox browser.
Thanks
Senthil.
On Wednesday, May 27, 2015 at 12:31:37 PM UTC+5:30, Senthil wrote:
>
> 1. What do you mean by saying "extensions not needed anymore" -> "Har
> Export" is part of Firebug 3.0 or Firefox network panel??
>
> 2. I have been using Netexport with Selenium and I find "triggerExport"
> and "clear" events good enough to automate the page.
>
> 2.5 I would REQUEST ability to add headers to the beacon URL when export
> is triggered (***important***) - I would want to send info about buildid,
> runid as part of the header while keeping the beacon url intact
>
> 3. "HARPageLoaded" would be a nice addition - WILL user be allowed to
> configure the time period (1000 ms or 5000) after which the event will be
> fired??
>
> And thanks for HAR and HAR Export - It is helping me a lot with my work.
>
> On Monday, May 25, 2015 at 9:13:22 PM UTC+5:30, Jan Honza Odvarko wrote:
>>
>> 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/3607a282-233b-45b1-86fd-d81b67324f4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.