Closed Bug 1949460 Opened 25 days ago Closed 20 days ago

Remove jszip library from devtools

Categories

(DevTools :: General, task)

task

Tracking

(firefox137 fixed)

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

(Keywords: perf-alert)

Attachments

(1 file, 1 obsolete file)

Bug 1929387 is going to land duplicates of React modules as ESM. We will later remove the non-ESM builds, but in the meantime, we should try to cleanup the unnecessary cruft from DevTools.
It is only used by Har Exporter and could instead use nsIZipWriter.

We could use the built-in ZipWriter component instead.

This also prevent naming the file within the zip file with a zip extension,
which makes things really confusing!

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

We could use the built-in ZipWriter component instead.

This also prevent naming the file within the zip file with a zip extension,
which makes things really confusing!

Attachment #9467537 - Attachment is obsolete: true

Hi Peter, I am not sure if browsertime is still using DevTools to record HAR files for Firefox in some situations, but it looks like this patch would change the structure of the ZIP file generated. Let us know if you need help to migrate.

Flags: needinfo?(peter)

Hi Julian, thank you for reaching out! No we use only the new bidi-har now so it will not affect Browsertime.

Flags: needinfo?(peter)

(In reply to Peter Hedenskog from comment #4)

Hi Julian, thank you for reaching out! No we use only the new bidi-har now so it will not affect Browsertime.

That's great to hear, both for BiDi and for this issue, thanks for checking :)

Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3be3142d3aed [devtools] Remove jszip library from devtools. r=devtools-reviewers,sylvestre,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 20 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch

Reduced the installer size on Windows by 88KB!

(In reply to Pulsebot from comment #6)

Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3be3142d3aed
[devtools] Remove jszip library from devtools.
r=devtools-reviewers,sylvestre,nchevobbe

Perfherder has detected a build_metrics performance change from push 3be3142d3aed981c2e1c35cd5861618b50d5089d.

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
0.08% installer size windows2012-64 111,682,615.58 -> 111,595,139.83

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.

You can run these tests on try with ./mach try perf --alert 44173

For more information on performance sheriffing please see our FAQ.

Keywords: perf-alert
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: