// The auto-export is not done if the timeout
is set to zero (or less).
// This is useful in cases where the export is
done manually through
// API exposed to the content.
I ran the test against
google.com (the zip attached earlier - you just need java to run that program), it created two files (one auto-export and one for javascript call) instead of one.
To make sure I has set the correct values, I verified it in about:config (attached screenshot)
I was able to attach the FBTrace with the test run and saw the sequence below - the Exporter.buildData is called twice while we expect only one call.
"index": 428, "text": "HarCollector.waitForTimeout; 0"
"index": 429, "text": "HarCollector.waitForPageLoad; DONE Page loaded!"
"index": 430, "text": "exporter.buildJSON; Number of entries: 22"
"index": 431, "text": "Exporter.buildHAR;"
"index": 432, "text": "Exporter.buildData; Exported data:"
"index": 433, "text": "exporter.buildJSON; Number of entries: 22"
"index": 434, "text": "Exporter.buildHAR;"
"index": 435, "text": "Exporter.buildData; Exported data:"
With "alwaysEnableAutoExport=true" and with "pageLoadedTimeout=0", and with No javascript call, I'm still getting one log file.
I believe this is a bug. Can you have a look at this?
Thanks
Senthil.