On 2/12/2014 9:08 AM, Ben Francis wrote:
*For a given URL, how should we determine whether it belongs to an app or
should be opened in a browser window?*
The root of this problem is that on the "browser web" you just open a
new window using target="_blank" or window.open("_blank"). For apps this
could either mean "open another window of my app" or "open another
window in the default browser".
Are there other cases which are unclear? Do you mean for this to apply
to normal navigation using links which wouldn't open a new window in a
normal browser?
For the web inside of apps, I strongly feel we should do two things:
* it should be possible for the app either kind (a new app window or a
browser window) of window for any URL. So something like <a
rel="external" target="_blank"> would open a browser window while <a
rel="internal" target="_blank" would open a new app window. For
window.open we might be able to use the window features to achieve the
same thing
window.open(url, "_blank", "external")
window.open(url, "_blank", "internal");
This proposal obviously needs to be standardized.
The rest of the question comes down to what to do by default when there
is a target="_blank" with no internal/external marker. And perhaps what
to do when there is a normal hyperlink which links to an "external"
domain. I don't have much opinion there other than whatever seems to
work best with existing content.
--BDS
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps