Closed Bug 1688703 Opened 5 years ago Closed 5 years ago

rework certviewer utility files so they can be reused elsewhere

Categories

(Firefox :: Security, task)

task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: keeler, Assigned: keeler)

References

(Regressed 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

certDecoder.js and utils.js are es6 modules, which makes them hard to use in some locations elsewhere in the codebase (e.g. in the devtools). Also, for these files to work correctly, three additional resources need to be manually loaded (the asn1js/pkijs/pvutils bundles). This situation can be simplified into one bundle that can be easily reused elsewhere.

Before this patch, some certviewer utility files were es6 modules, which means
they could only be used by other es6 modules or a top-level web context. There
are some places (such as the devtools) where it would be nice to use these
utilities without this restriction, so this patch reworks and simplifies the
structure of these utility files so they can be reused elsewhere.

Blocks: 1687570
Attachment #9199079 - Attachment is obsolete: true
Type: enhancement → task
Pushed by dkeeler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7c3c130fc7df reuse certviewer utility files in devtools r=johannh,ochameau

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:keeler, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(jhofmann)
Flags: needinfo?(dkeeler)

The patch seems to be causing or making more frequent intermittent leaks. I'm investigating.

Flags: needinfo?(dkeeler)

openFromPopUp in browser_openTabAndSendCertInfo.js would open a new browser
window and then close it quickly without checking its contents. It seems that
doing this caused frequent intermittent leaks on ASAN builds. This patch works
around the issue by waiting for the window to finish loading and checking that
it has the expected contents. This patch also adds the same contents check to
other tests in this file that were missing it.

Depends on D106340

Pushed by dkeeler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1937e854dd80 reuse certviewer utility files in devtools r=johannh,ochameau https://hg.mozilla.org/integration/autoland/rev/70926038dbf0 avoid leaks in browser_openTabAndSendCertInfo.js r=johannh
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
See Also: → 1708231
Regressions: 1708097
Regressions: 1712983
Regressions: 1721987
Flags: needinfo?(jhofmann)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: