Closed Bug 766753 Opened 12 years ago Closed 12 years ago

move unrelated startup code out of command line handler component

Categories

(Firefox Graveyard :: Webapp Runtime, defect, P3)

14 Branch
defect

Tracking

(firefox16 wontfix)

RESOLVED FIXED
Tracking Status
firefox16 --- wontfix

People

(Reporter: myk, Assigned: myk)

References

Details

(Whiteboard: [qa-])

The command line handler component (CommandLineHandler.js) initializes the webapp registry and sets permissions on firstrun in addition to handling the command line.  It does this unrelated work because the work has to be done on startup, before the app is loaded, and the component seemed as good a place as any for it.

But failure in that script is catastrophic (the app can't load), whereas failure in the unrelated work isn't, so putting it into that component makes it unnecessarily failure-prone.  Thus we should move the unrelated work into its own script, f.e. a component that registers for a startup notification but implements no interface (like mobile/android/components/SafeBrowsing.js).
Myk - What's the priority here? Can you determine it and explain why?
This is a code hygiene issue and thus merely nice to have.
Priority: -- → P3
QA Contact: jsmith
The patch in bug 770770 happens to do this.
Assignee: nobody → myk
Status: NEW → ASSIGNED
Depends on: 770770
Fixed by the fix for bug 770770.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.