W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2012

[whatwg] communicating plugin state (primarily for click-to-play)

From: Josh Aas <joshmoz@gmail.com>
Date: Mon, 11 Jun 2012 20:29:08 -0400
Message-ID: <CALAz3ZBeYsbvAeF2jBEnOT7qLjQ4N8kUVSpm_j0r4Q6uUnh2KA@mail.gmail.com>
To: whatwg@whatwg.org
Mozilla has been working on a click-to-play feature for plugins. The
feature currently breaks a large number of sites because it interacts
poorly with scripting and fallback schemes. For example, quite a bit
of plugin usage doesn't involve user-visible content but rather plugin
instances that exist for scripting alone. When instances aren't
created as expected for script calls, the resulting exceptions cause

In order for click-to-play to be a viable feature we'll probably need
to allow pages with complex plugin usage (i.e. scripting) to query for
click-to-play state.

This could be expressed via a Web IDL enum property on embed and
object elements. The property could be called something like
"pluginState". The states might be (with apologies for the rough

- not-plugin (object/embed is some other type like image or document)
- active (plugin instance created, running)
- inactive (e.g. crashed)
- no-handler (e.g. missing plugin)
- click-to-play (click-to-play UI is diplayed, should become active upon click)


Josh Aas
Mozilla Corporation
Received on Tuesday, 12 June 2012 00:29:39 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:43 UTC