I believe this problem is solvable without a spec change.
On Windows and Mac, implementations can use a native clipboard sequence
number to determine the contents of the clipboard have changed.
Linux is trickier. There's an X extension called XFixes which provides this
utility, but I don't know how widely installed this extension is. Otherwise,
UAs can probably hack together their own sequence number implementation by
polling the X server about the current selection but it's kind of icky.
Daniel
On Mon, May 16, 2011 at 21:15, Hallvord R. M. Steen <hallvord@opera.com>wrote:
>
> IMO getData() should be 'live' - i.e. return what's on the clipboard.
>>>
>>
> I think having it return live data could result in potential security
>> issues. Couldn't a script loop inside the paste event to keep sniffing out
>> live data?
>>
>
> What should we do about this? Should the spec mandate a timeout or a limit
> on how many times a script may call getData() for the same event?
>
> --
> Hallvord R. M. Steen, Core Tester, Opera Software
> http://www.opera.comhttp://my.opera.com/hallvors/
>