Closed Bug 775051 Opened 12 years ago Closed 12 years ago

B2g pref loading / parsing causing mochitests to not load

Categories

(Firefox OS Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(blocking-basecamp:+)

VERIFIED FIXED
blocking-basecamp +

People

(Reporter: onecyrenus, Assigned: onecyrenus)

References

Details

Attachments

(1 file)

Attached patch b2g patch (deleted) — Splinter Review
Basically if the 'b2g.privileged.domains' pref is not set in prefs.js I was noticing a problem loading mochitests. The reason is generally split returns one element and we are attempting to addPermissions for what is an empty string, without appropriate protections inside addPermsissions. let domains = ""; try { domains = Services.prefs.getCharPref('b2g.privileged.domains'); } catch(e) {} addPermissions(domains.split(","));
Blocks: 771725
blocking-basecamp: --- → ?
Comment on attachment 643318 [details] [diff] [review] b2g patch The alternative is to add some dummy domains to the pref in the mochitest test profile.
Attachment #643318 - Attachment is patch: true
Attachment #643318 - Flags: review?(philipp)
Product: Firefox → Boot2Gecko
Comment on attachment 643318 [details] [diff] [review] b2g patch Review of attachment 643318 [details] [diff] [review]: ----------------------------------------------------------------- ::: b2g/chrome/content/shell.js @@ +62,3 @@ > urls.forEach(function(url) { > url = url.trim(); > + if (url.length > 0 ) { Could just be `if (url.length)` or even `if (url)`. Looks good otherwise.
Attachment #643318 - Flags: review?(philipp) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
blocking-basecamp: ? → +
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: