Open 1j01 opened 6 years ago
Oh, looks like there's already a lil todo for it in the example code: https://github.com/mozilla/qbrt/blob/76a2960c59d9914ffe91b14a5b358cec7211abb1/shell/main.js#L40-L41
Indeed, this is a terrible error message, very unclear. Unfortunately, Services.ww.openWindow()
doesn't throw when the URL isn't found, which makes this complicated to fix. We might try parsing the URL first to confirm that it corresponds to a known location on the local filesystem (or is a remote URL) before calling Services.ww.openWindow()
.
Instead of something like
file not found: C:/Users/Isaiah/Projects/98.js-vr/shell.xul
, I got:(after copying the shell example code over but with a different name for the
xul
file)I fixed it pretty quickly, but not from any information in that error message!