Closed Bug 1297082 Opened 9 years ago Closed 9 years ago

Convert the Curl.jsm module to curl.js, use it in HAR builder

Categories

(DevTools :: Netmonitor, defect, P1)

defect

Tracking

(firefox51 fixed)

RESOLVED FIXED
Firefox 51
Tracking Status
firefox51 --- fixed

People

(Reporter: jsnajdr, Assigned: jsnajdr)

References

Details

Attachments

(3 files)

- convert the Curl.jsm module to CommonJS (curl.js) - start using it in the HAR builder, remove duplicate code (getHeadersFromMultipartText, isUrlEncodedRequest) This is one of changes I did for bug 1176050 (Netmonitor performance optimizations), but it's uncertain if that patch will ever land - it failed to deliver the promised performance improvements so far. Therefore, I want to land some valuable parts of it separately.
Part 1: - rename Curl.jsm to curl.js and fix the imports Part 2: - use CurlUtils in har-builder.js, remove duplicate functions - using CurlUtils.getHeadersFromMultipartText to extract upload stream headers fixes issue discussed in bug 1278923 (see [1]) Part 3: - make the curl.js file eslint-clean You need to apply this patch on top of the fix from bug 1297068 (multipart boundaries) [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1278923#c17
Assignee: nobody → jsnajdr
Blocks: 1278923
Depends on: 1297068
Comment on attachment 8783897 [details] Bug 1297082 - Part 1: Convert Curl.jsm to a CommonJS module https://reviewboard.mozilla.org/r/73552/#review72030 LGTM
Attachment #8783897 - Flags: review?(odvarko) → review+
Btw. I assume there are no changes in the curl.js file, correct? Honza
Comment on attachment 8783898 [details] Bug 1297082 - Part 2: Use curl.js utility functions in HAR builder https://reviewboard.mozilla.org/r/73554/#review72032 R+ assuming try is green.
Attachment #8783898 - Flags: review?(odvarko) → review+
Attachment #8783899 - Flags: review?(odvarko) → review+
Pushed by jsnajdr@gmail.com: https://hg.mozilla.org/integration/autoland/rev/bf02a86c242d Part 1: Convert Curl.jsm to a CommonJS module r=Honza https://hg.mozilla.org/integration/autoland/rev/47874267eb44 Part 2: Use curl.js utility functions in HAR builder r=Honza https://hg.mozilla.org/integration/autoland/rev/4dd3a3052ef0 Part 3: Fix eslint issues in curl.js r=Honza
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: