Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
spolu
· 13y ago · 0 comments
Indeed. Main difference is the API we expose to JS. XUL use is really UI oriented. Here we want to control the entire browser through JS.
Comments
[–]
nephyrin
13y ago
Gecko exposes a large number of its interfaces to JS, and the entire Firefox frontend is written as such:
http://dxr.mozilla.org/mozilla-central/source/browser/base/c...
[–]
spolu
OP
13y ago
Do you have access to cookies, localStorage from JS?
[–]
lucian1900
13y ago
Yes. Any XPCOM object is usable from JS that runs inside Firefox chrome and most things are XPCOM objects.