Appists! 

tl;dr: Should we consider setting navigator.standalone = true for chromeless 
apps, similar to iOS.

---

I am working with some partners to get their HTML5 apps ready for Marketplace. 
One requirement is, to
open external links in a new window.

One possible flow would be, to check if the page runs as app, and if that is 
true, capture click events
or add targets to all external links.

But how to check if the app runs in chromeless mode? Due to bug 819037 [1], 
mozApps.getSelf is
not reliable cross-platform; where you would check if success is called and a 
.result provided.

Marketplace uses window.locationbar && !window.locationbar.visible, a solution 
we also promote in
our Apps wiki. Partners raised concerns that this acts up with their web page, 
like in cases of pop-ups.

iOS can add websites to the home screen, when they run browser-less, the site 
can check that via
navigator.standalone, which is true in that case.

This seems like a simple, event-less solution and a property that makes sense 
for our use-case.

Thoughts? 

---
Harald Kirschner | Mozillian Partner & Labs Craftsman | [email protected] 
(mailto:[email protected])

[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=819037
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to