mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 787564 - Today repository cause a black display on SGS2/Otoro due to regression from bug 778079 [r=vingtetun]
This commit is contained in:
parent
c0293596e8
commit
5d55bf4797
@ -78,9 +78,15 @@ let DOMApplicationRegistry = {
|
||||
#endif
|
||||
let currentId = 1;
|
||||
dirList.forEach((function(dir) {
|
||||
let curFile = FileUtils.getFile(dir, ["webapps", "webapps.json"], true);
|
||||
if (curFile.exists()) {
|
||||
let appDir = FileUtils.getDir(dir, ["webapps"]);
|
||||
let curFile;
|
||||
try {
|
||||
// getFile calls getDir with |shouldCreate = true|, so we have
|
||||
// to wrap in a try..catch in case the file does not exist on a
|
||||
// read-only partition.
|
||||
curFile = FileUtils.getFile(dir, ["webapps", "webapps.json"], false);
|
||||
} catch(e) { }
|
||||
if (curFile && curFile.exists()) {
|
||||
let appDir = FileUtils.getDir(dir, ["webapps"], false);
|
||||
this._loadJSONAsync(curFile, (function(aData) {
|
||||
if (!aData) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user