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)
Tracking
(blocking-basecamp:+)
VERIFIED
FIXED
blocking-basecamp | + |
People
(Reporter: onecyrenus, Assigned: onecyrenus)
References
Details
Attachments
(1 file)
(deleted),
patch
|
philikon
:
review+
|
Details | Diff | 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(","));
Assignee | ||
Updated•12 years ago
|
blocking-basecamp: --- → ?
Comment 1•12 years ago
|
||
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)
Updated•12 years ago
|
Product: Firefox → Boot2Gecko
Comment 2•12 years ago
|
||
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+
Comment 3•12 years ago
|
||
Assignee: nobody → dclarke
Comment 4•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
blocking-basecamp: ? → +
Assignee | ||
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•