[whatwg] Installed Apps

Ojan Vafai ojan at chromium.org
Thu Jul 30 13:17:45 PDT 2009


On Thu, Jul 30, 2009 at 3:51 PM, Dmitry Titov <dimich at google.com> wrote:

> This concern is clear. But what could be a direction to the solution?
> Assuming one of the goals for html5 is reducing a gap in capabilities
> between web apps and native apps, how do we move forward with more powerful
> APIs?
>

Giving web pages exactly the same power as native applications is not, and
should not be, the goal. The goal is to enable many of the the same
use-cases. Native apps can do anything they want and installing them is very
risky. It is one of the benefits of the web that web pages you navigate to
do *not* have that sort of power.

Installing native apps from untrusted sources is scary. Visiting web pages
should never be scary, especially since the average user stumbles upon many
more web pages in a given day than native apps they would install. The
desktop has no equivalent to the lightweight step of visiting a web page.
Giving "installed" web pages (e.g. extensions) more power is much safer than
silently giving all web pages that power.

As controversial as it sounds, it might be if a web platform API can't be
> used to write a botnet, then it can't be used to write a wide class of
> powerful applications as well :-)
>

I don't yet see any evidence that this is true. Certainly, enabling
botnet-like power would enable a wider class of powerful applications.
However, the corollary may not be true. It may be possible that we can add
all the power we need to the web without enabling botnets if we are use-case
driven and think of more constrained APIs that meet the same needs.

Ojan


>
> I don't have a botnet example, but when Safari 4 visits the sites in the
> background (to keep the 'new tab page' site snapshots up-to-date) w/o ever
> asking my permission - it looks a bit scary, because I'm not sure I want it
> to visit websites at random time from my IP with I don't know what cookies
> and then snapshot the result in jpg and store it locally... But I sort of
> like the feature anyways. Now, how can I make a web app that does this? Some
> sort of background shared page could be handy. It can pop up the same dialog
> when installed, live in Applications folder but it should be possible. Now
> if we make it possible, would it be possible to write a botnet on top of the
> API? Of course! Same exact way as it's possible to write even better botnet
> on OSX API in which Safari is written.
>
> Now, what if I want the same feature but implemented not as a native app,
> but as a web app? We would need to give it specific rights locally, and make
> the process transparent - not only on 'install' time but when it runs too -
> so the user could peek into some 'task manager' and clearly see if such
> thing is running. Browser could periodically download 'malware lists' and
> kill those web apps that are in it.
>
> But for now, it should be ok to have it 'installed' with a specific browser
> dialog that asks the user to make a decision the user may not understand -
> it is not the ideal way but it is the common way today, users know they are
> asked these questions, admins and IT teaches users what to do when asked, so
> it's the best we can do now. Having a 'task manager' (as in Chrome)
> reflecting those things is good too.
>
> Btw, if it only can do window.open() on the url from the same domain, then
> if it's from Gmail then it can't be used or hijaked.  If it is from a site
> that says install this and I'll show you a pretty picture and user clicks
> through a dialog, I'd say it's not a new vector for malware.
>
> Dmitry
>
>
> On Thu, Jul 30, 2009 at 10:26 AM, Michael Davidson <mpd at google.com> wrote:
>
>> On Wed, Jul 29, 2009 at 5:38 PM, Maciej Stachowiak<mjs at apple.com> wrote:
>> > * Notification Feeds *
>> >
>> > Often, web applications would like to give users the option to subscribe
>> to
>> > notifications that occur at specific times or in response to server-side
>> > events, and for the user to get these UI notifications without a
>> > prerequisite that the web app is open or that the browser is running.
>> There
>> > may be a desire to do client-side computation as well, but often just
>> the
>> > ability to give the user a notification solves the basic user
>> interaction
>> > problem.
>> >
>> > One possible way to address this kind of use case is to let users
>> subscribe
>> > to a "feed" of notifications. This feed could use standard syndication
>> > formats, such as RSS or Atom. But instead of being displayed in a
>>
>> This is an interesting idea. The lack of push updates, though, would
>> make it much less useful than it could be.
>>
>> Here's a rough sketch of a more far-out idea: What if all browsers
>> were XMPP clients and stanzas could be sent to display notifications?
>> The attack surface would still be low, but you'd get realtime updates.
>> Instead of subscribing to a feed of notifications, the user accepts
>> what is essentially a chat invitation from the site. Like normal XMPP
>> invitations, this would be revocable at any time.
>>
>> Lots of issues to work out, but you'd get realtime for free.
>>
>> Michael
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090730/0c857238/attachment-0002.htm>


More information about the whatwg mailing list