Closed
Bug 775051
Opened 13 years ago
Closed 13 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)
904 bytes,
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•13 years ago
|
blocking-basecamp: --- → ?
Comment 1•13 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•13 years ago
|
Product: Firefox → Boot2Gecko
Comment 2•13 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•13 years ago
|
||
Assignee: nobody → dclarke
Comment 4•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
blocking-basecamp: ? → +
Assignee | ||
Updated•13 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•