Closed Bug 1834882 Opened 2 years ago Closed 2 years ago

Import modules statically that cause circular dependencies

Categories

(Toolkit :: Form Autofill, task)

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: issammani, Assigned: issammani)

Details

Attachments

(1 file, 1 obsolete file)

Context

Formautofill code is shared with iOS that uses webpack to bundle JS. In desktop code we use ChromeUtils.defineESModuleGetters to load modules lazily. This doesn't exist in standard JS. We try to mimic this behaviour by using internal webpack APIs. This, however, doesn't have any mechanism to handle circular dependencies. Ideally we shouldn't have any circular dependencies, but since we do, we can just import these modules statically since static imports handle this natively.

Attachment #9335749 - Attachment is obsolete: true
Pushed by dlee@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0ba369a8f67f Refactor FieldScanner by extracting form autofill heuristic logic r=issammani
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: