Closed Bug 1245251 Opened 10 years ago Closed 10 years ago

Add-on startup fails for external XUL apps

Categories

(Toolkit :: Add-ons Manager, defect)

43 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox44 --- wontfix
firefox45 --- fixed
firefox46 --- fixed
firefox47 --- fixed

People

(Reporter: jryans, Assigned: jryans)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(1 file)

After bug 1203159, DevTools files were moved around such that the line: if (Cu.isModuleLoaded("resource://devtools/client/framework/ToolboxProcess.jsm")) { in XPIProvider.jsm now throws for external XUL apps. I believe the cause is that resource://devtools is not defined because no chrome.manifest that defines it is currently loaded by such apps.
Assignee: nobody → jryans
Status: NEW → ASSIGNED
I have confirmed it's because of the missing resource definition. That means this occurs back to 44. Not sure if we'll uplift since only external XUL apps are impacted.
Comment on attachment 8714994 [details] MozReview Request: Bug 1245251 - Repair add-on manager for external XUL apps. r=Mossop https://reviewboard.mozilla.org/r/33303/#review30157 Swallowing all exceptions isn't ideal, it might make us break something and never realise it. Instead can you get the resource protocol handler and use hasSubstitution("devtools") to guard that block?
Attachment #8714994 - Flags: review?(dtownsend)
Comment on attachment 8714994 [details] MozReview Request: Bug 1245251 - Repair add-on manager for external XUL apps. r=Mossop Review request updated; see interdiff: https://reviewboard.mozilla.org/r/33303/diff/1-2/
Attachment #8714994 - Flags: review?(dtownsend)
Comment on attachment 8714994 [details] MozReview Request: Bug 1245251 - Repair add-on manager for external XUL apps. r=Mossop https://reviewboard.mozilla.org/r/33303/#review30357
Attachment #8714994 - Flags: review?(dtownsend) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Comment on attachment 8714994 [details] MozReview Request: Bug 1245251 - Repair add-on manager for external XUL apps. r=Mossop Approval Request Comment [Feature/regressing bug #]: The regression was introduced by bug 1203159. [User impact if declined]: There is no direct impact to Mozilla products if declined. This issue only affects external XUL apps which are currently instructed to use Firefox builds with "firefox --app" to run their applications. For those external XUL apps, the add-on manager will fail at startup and the application itself could break as well. [Describe test coverage new/current, TreeHerder]: No new tests, I tested manually to confirm issue is resolved. Landed on m-c. [Risks and why]: Low risk, adds a check to ensure a path exists before using it. [String/UUID change made/needed]: None
Attachment #8714994 - Flags: approval-mozilla-beta?
Attachment #8714994 - Flags: approval-mozilla-aurora?
Comment on attachment 8714994 [details] MozReview Request: Bug 1245251 - Repair add-on manager for external XUL apps. r=Mossop Taking it as 45 is an ESR. Should be in 45 beta 4.
Attachment #8714994 - Flags: approval-mozilla-beta?
Attachment #8714994 - Flags: approval-mozilla-beta+
Attachment #8714994 - Flags: approval-mozilla-aurora?
Attachment #8714994 - Flags: approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: