Open Bug 1552272 Opened 7 years ago Updated 2 years ago

Unify child process argument parsing for libpref initialization

Categories

(Core :: Preferences: Backend, task, P3)

task

Tracking

()

People

(Reporter: kmag, Unassigned)

References

Details

Each type of child process currently has its own code for parsing preference-related arguments, despite the parent side having unified code for generating them. This requires a fair amount of code, so having it duplicated in a half dozen different places isn't ideal.

I think the way we really want to handle this is to create the deserializer object before we begin argument parsing, then pre-check each argument with something like:

  if (deserializer.ProcessArg(aArgv, aArgc, &i)) {
    continue;
  }

and have it return true when it consumes the argument, and update &i to reflect any additional arguments it consumes.

Type: defect → task
Priority: -- → P3
Severity: normal → S3

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: kmaglione+bmo → nobody
You need to log in before you can comment on or make changes to this bug.