Re: clipboard-apis spec reorganised

2014-12-06 Thread Hallvord R. M. Steen
Do you want me to start a PSA (to publish a new WD) now; or do you still have some changes you want to make before publishing a new TR? I haven't re-checked the pubrules but otherwise it should be ready to go. So let's do the PSA. -Hallvord

Re: Broken links

2014-12-02 Thread Hallvord R. M. Steen
If my requirement is still unclear please try to read this question on StackOverflow: http://stackoverflow.com/q/27206268/607407 (http://stackoverflow.com/q/27206268/607407). It basically describes the problem. Hi Jakub, thanks for bringing this up - I've replied on StackOverflow, and it's

[clipops] Oct 2014 status report and plans

2014-10-24 Thread Hallvord R. M. Steen
Status of the Clipboard API spec: There are some open bugs. The test suite is on its way into web-platform-test but there's no progress on the review AFAIK. Apart from those bugs I think the spec is quite solid. Here are the bugs:

Re: test coverage data for XHR spec

2014-10-19 Thread Hallvord R. M. Steen
Here you go, Anne: https://github.com/whatwg/xhr/pull/17 (And I'd guesstimate perhaps half of the meta data is wrong for the WHATWG version of XHR by now - if you want, I can add the text (beta) or something like that to the checkbox label). Art: Wondering aloud ... adding this functionality

Re: [xhr] Questions on the future of the XHR spec, W3C snapshot

2014-10-19 Thread Hallvord R. M. Steen
However, the WHATWG version is now quite heavily refactored to be XHR+Fetch. It's no longer clear to me whether pushing forward to ship XHR2 stand-alone is the right thing to do.. (For those not familiar with WebApps' XHR TR publication history, the latest snapshots are: Level1

Re: test coverage data for XHR spec

2014-10-17 Thread Hallvord R. M. Steen
I can send you a PR for that JSON file if you wish. For example make a new folder called testcoveragedata or something to put the JSON file inside? If all we need is a single JSON file and maybe a script let's put them in the top-level directory. Should I send you a PR now so you or I can

[xhr] Questions on the future of the XHR spec, W3C snapshot

2014-10-17 Thread Hallvord R. M. Steen
Apologies in advance that this thread will deal with something that's more in the realm of politics. First, I'm writing as one of the W3C-appointed editors of the snapshot the WebApps WG presumably would like to release as the XMLHttpRequest recommendation, but I'm not speaking on behalf of

Re: test coverage data for XHR spec

2014-10-11 Thread Hallvord R. M. Steen
On Mon, Oct 6, 2014 at 3:04 PM, Hallvord R. M. Steen hst...@mozilla.com wrote: If you do try this on xhr.spec.whatwg.org, you'll see that quite a lot of the meta data is still valid I see. We could make xhr.spec.whatwg.org offer a checkbox that would add these links. That would rock :) We

test coverage data for XHR spec

2014-10-06 Thread Hallvord R. M. Steen
Hi, partly quoting myself from https://github.com/w3c/web-platform-tests/pull/1272 : Nearly all tests in the XHR test suite have (potentially outdated) meta data linking them to specific assertations in the spec. (Technically this is a set of space-separated XPath expressions for each link

Re: test coverage data for XHR spec

2014-10-06 Thread Hallvord R. M. Steen
Please test and comment :) The main problem I have is that this specification is increasingly out-of-date with work I've done. The meta data is certainly outdated compared to your work. The tests themselves hopefully aren't - I mean, you've been tightening the specs to be more precise and

Re: [clipboard] Semi-Trusted Events Alternative

2014-09-17 Thread Hallvord R. M. Steen
Not quite :) Check the list of events - mousemove isn't included: http://www.w3.org/TR/html5/browsers.html#allowed-to-show-a-popup I was just going by where I¹ve seen pages pop up windows, and I¹ve seen pages that pop up windows just by moving the mouse across them. If you see that again,

Re: PSA: publishing new WD of Clipboard API and events on Sept 18

2014-09-16 Thread Hallvord R. M. Steen
Wouldn't it be better for the user if a consistent policy were applied across the board when handling their data? Not if the average user can't understand the policy that is applied, and the way it applies to what they are trying to achieve. Proper handling of the data shifts the onus to

Re: [clipboard] Semi-Trusted Events Alternative

2014-09-15 Thread Hallvord R. M. Steen
[Responding to several messages about pasting data from same origin here] - Original Message - From: Jonas Sicking jo...@sicking.cc * paste: we allow reading clipboard contents if the paste event is not synthetic and not triggered from a document.execCommand('paste') call I think we

Re: PSA: publishing new WD of Clipboard API and events on Sept 18

2014-09-15 Thread Hallvord R. M. Steen
http://dev.w3.org/2006/webapi/clipops/clipops.html Please forgive my ignorance. But I don't see a requirement that data egressed from the local machine to be protected with SSL/TLS. I can certainly add a note *encouraging* encryption, but it's not something we can require in a meaningful

Re: [clipboard] Semi-Trusted Events Alternative

2014-09-13 Thread Hallvord R. M. Steen
On Wed, Jul 23, 2014 at 12:17 AM, Ben Peters ben.pet...@microsoft.com wrote: [1] http://www.w3.org/TR/clipboard-apis/#semi-trusted-events Anne wrote: The default action of a synthetic paste event is to insert any data passed to the event constructor, if that data is suitable for the event

Re: [clipboard] Add RTF to the mandatory data types list?

2014-08-19 Thread Hallvord R. M. Steen
Does anyone else have input for/against this? Conceptually, I guess RTF sort of covers the same use cases as HTML. That doesn't necessarily mean we should not add it. I don't have input as such, but I have a few questions: Is there any widely used software that writes RTF data to the system

Re: [clipboard] Semi-Trusted Events Alternative

2014-07-26 Thread Hallvord R. M. Steen
(Replying to both Ben's and Ryosuke's mails) Ben wrote: Semi-trusted events in the Clipboard API spec [1] are a potential solution to an important problem- sites should be able to use the same infrastructure (clipboard events) with their own triggers (button with execCommand('paste') as

[clipboard] Importing test suite into web-platform-tests repository

2014-07-17 Thread Hallvord R. M. Steen
The clipboard spec tests are now on their way to the web-platform-tests repository: https://github.com/w3c/web-platform-tests/pull/1097 ..pending the review: https://critic.hoppipolla.co.uk/r/1983 If you want to help, that review tool is very good at enabling collaboration and various people

Re: [clipboard events] click-to-copy support could be hasFeature discoverable?

2014-05-20 Thread Hallvord R. M. Steen
On Mon, May 19, 2014 at 9:21 PM, Hallvord R. M. Steen hst...@mozilla.com wrote: button.onclick = function(){ button.dispatchEvent(new ClipboardEvent('copy', {dataType:'text/plain', data:'Hello world'}); // did that succeed or not? We don't have event.clipboardData on a clip event

Re: [clipboard events] implicitly prevent default event action?

2014-05-20 Thread Hallvord R. M. Steen
Maybe. It seems some refactoring is needed either way. The underlying data model for .items is drag data store item list which is a term that's somewhat different from what we have here. I think that's a feature, not a bug - for example, many operating systems let you 'copy' and 'paste' files

[web-platform-tests] where do tests for window.opener go?

2014-05-20 Thread Hallvord R. M. Steen
Hi, we have a window.opener issue and would like to have some tests for it. I'm planning to write some and thought I might as well add them to the web-platform-tests suite. Where? Would this be a suitable location:

[clipboard events] click-to-copy support could be hasFeature discoverable?

2014-05-19 Thread Hallvord R. M. Steen
Hi, I'm about to file a bug on implementing click-to-copy and click-to-cut per latest clipboard events spec in Gecko / Firefox, and this reminds me we haven't yet answered the question about discoverability. This functionality has a fallback story (Flash shims for platforms with Flash support,

[clipboard events] implicitly prevent default event action?

2014-05-19 Thread Hallvord R. M. Steen
Hi, there's a very annoying gotcha in the clipboard events spec: the default action of for example the copy event is to copy any selected text in the page (and do nothing if there is no selection). This remains the default action even if you use event.clipboardData.setData() and friends to

Re: [clipboard events] click-to-copy support could be hasFeature discoverable?

2014-05-19 Thread Hallvord R. M. Steen
hasFeature() is pretty much killed (always returns true). That sort of sucks .. I know the argument against it but the question I'm looking at now shows that not all features are suitable for feature detection - in this particular case because the whole point of the feature is about user

Re: [clipboard events] implicitly prevent default event action?

2014-05-19 Thread Hallvord R. M. Steen
Can you sanely explain those using a JavaScript implementation or would that be some kind of weird stack-inspecting feature? My impression was that it would be something like: if (data) { this.preventDefault(); } Domenic: thanks for explaining, that's pretty much exactly what I'm

Re: [clipboard-apis] spec status

2014-04-09 Thread Hallvord R. M. Steen
it's still somewhat under-defined how to copy / expose to paste listeners HTML source with styling. IMO that's a real blocker which has come up recently and should be dealt with. That's going to be an extremely challenging task. I'd personally prefer deferring that to a future

[clipboard-apis] spec status

2014-04-08 Thread Hallvord R. M. Steen
So - regarding the short status, plans, expectations and such for your spec(s). Some details are still being discussed with implementors (special thanks to Ben Peters at Microsoft for bringing up issues recently). In particular, it's still somewhat under-defined how to copy / expose to paste

Re: [clipboard events] Pasting scenarios and the shape of clipboardData.getData(‘text/html’) return value

2014-04-02 Thread Hallvord R. M. Steen
How hard do you think this is to implement? Thanks for the code sample and thoughts! I'll run it by a few more developers to get deeper insight and get back to you. Great! Note that the code samples are just to get us started thinking about the issues we'll have to tackle if we're going to

Re: [clipboard events] Pasting scenarios and the shape of clipboardData.getData(‘text/html’) return value

2014-03-31 Thread Hallvord R. M. Steen
After working with developers inside and outside Microsoft, it seems there are several types of paste that make sense in various scenarios. For instance, 1- if pasting into a rich document, it could be important to maintain source styling information. 2- When pasting into a wiki from an

Re: [clipboard-api] Do paste events and company bubble?

2014-03-09 Thread Hallvord R. M. Steen
Boris: The clipboard API draft [1] doesn't seem to say whether paste events, or any other events fired by fires a clipboard event bubble. Or whether they're cancelable, for that matter. Presumably it should say something on the matter. I've added the statement The event bubbles and is

Re: [clipboard-api] Do paste events and company bubble?

2014-03-09 Thread Hallvord R. M. Steen
might be clearer to put that in the dispatch a clipboard event processing model No problem, fixed. -HR - Original Message - From: Boris Zbarsky bzbar...@mit.edu To: Hallvord R. M. Steen hst...@mozilla.com, James Greene james.m.gre...@gmail.com Cc: public-webapps public-webapps@w3.org

Re: Transforming DataTransfer.setData HTML content

2014-03-03 Thread Hallvord R. M. Steen
Safari, Firefox and Chrome all have different behavior when handling a call like event.clipboardData.setData(text/html, text): The clipboard event spec certainly doesn't handle this case. I had no idea some browsers had this quirky convert-to-html behaviour, and my first thought is that it

Re: Publishing a new WD of Clipboard API and events spec

2014-02-27 Thread Hallvord R. M. Steen
Arthur Barstow wrote: Given the last WD of Clipboard API was published about one year ago (April 2013) and the spec has had some substantive changes ([1]), I think it would be useful to publish a new WD to replace the current Technical Report and to clearly indicate the spec is active. Is

Re: [clipboard events] seeking implementor feedback on using CID: URI scheme for pasting embedded binary data

2014-02-27 Thread Hallvord R. M. Steen
Of course it would be nice to support a script that wants to generate random HTML with embedded files X use case for example with a CANVAS app where the script wants to copy the state of the CANVAS I was thinking about images that aren't available cross-domain Indeed, that's another use

Re: Clipboard API: Enable `copy` event simulation with user's express permission (domain-wide)?

2014-02-18 Thread Hallvord R. M. Steen
So, the story so far is that the spec has added something it labels semi-trusted events - that is an event triggered from a trusted event of a whitelisted type. The precedence here is popup blocking - browsers already have rules for which events are more trusted than others in terms of likely

Re: [XHR2] anonymous same-origin requests (alter withCredentials)

2014-02-17 Thread Hallvord R. M. Steen
Why is withCredentials not supported for same-origin requests? Presumably because its default value is false, and changing such behavior would break backwards-compatibility? If so, I request to allow it to have three values: Hi Rob, I already suggested pretty much exactly this in

Re: [clipboard events] seeking implementor feedback on using CID: URI scheme for pasting embedded binary data

2014-02-12 Thread Hallvord R. M. Steen
Hi Hallvord! Hi Ben! Thanks for responding to my request for feedback - especially since the IE team has done some interesting work in this area and is arguably ahead of the rest! :-) The IE11 API you mentioned is msConvertURL [1] (also on the IE blog [2]), and it was designed as a simple

[clipboard events] seeking implementor feedback on using CID: URI scheme for pasting embedded binary data

2014-01-23 Thread Hallvord R. M. Steen
Hi, pasting HTML that contains embeds (images, video) into a rich text editor is a use case we should cover. It's currently handled in different ways - * IE11 supports pasting images as either data: URLs or blobs [1] (and has a non-standard method to fill in a gap in the blob approach). I

[clipboard events] Spec update

2014-01-20 Thread Hallvord R. M. Steen
I've just comitted a spec update with some significant changes. Please review and discuss.. Change #1: click-to-copy and click-to-cut Yesterdays edits introduced a concept called semi-trusted events - in order to make script-initiated copy and cut operations just work if the script that

Re: [clipboard events] Spec update

2014-01-20 Thread Hallvord R. M. Steen
I'm eager to replace our flash clipboard bridge with this native api. Uh, I'm glad you like it but I wouldn't hold my breath.. I hope implementors will like it too but I have no way to tell when implementations will actually be available. Would this be the correct code to write a string to

Re: [clipboard-apis] Seeking status and plans

2013-10-16 Thread Hallvord R. M. Steen
Hi Arthur, the spec todo list is in bugzilla: https://www.w3.org/bugzilla_public/buglist.cgi?product=WebAppsWGcomponent=Clipboard%20API%20and%20eventsresolution=--- Some of these issues will need developer feedback. I need to try to find developers who have worked on clipboard implementations on

Re: [clipboard] typo in WebIDL

2013-10-08 Thread Hallvord R. M. Steen
- Original Message - From: Dominique Hazael-Massieux d...@hazael-massieux.fr While parsing en-masse some of the IDLs in JavaScript APIs out there, I stumbled upon an incorrect IDL in http://dev.w3.org/2006/webapi/clipops/clipops.html#dictionary-clipboardeventinit-members Better now,

Re: [clipboard] typo in WebIDL

2013-10-08 Thread Hallvord R. M. Steen
Better now, right? http://dev.w3.org/2006/webapi/clipops/clipops.html#dictionary-clipboardeventinit-members Not quite, you removed the attribute keyword from the interface declaration too, where it is needed. Guilty, and fixed - I obviously need to study that WebIDL spec in some detail..

Re: [XHR] Content-Length header for data: URLs

2013-10-07 Thread Hallvord R. M. Steen
On Fri, Sep 20, 2013 at 5:09 AM, Simon Pieters sim...@opera.com wrote: On Fri, 20 Sep 2013 05:24:26 +0200, Jonas Sicking jo...@sicking.cc wrote: I would hardly call taking the length subtracting any characters before the , and applying a multiplier parsing. You don't have to look at any

Re: Moving Clipboard API spec forward

2013-03-11 Thread Hallvord R. M. Steen
Siterer Hallvord Reiar Michaelsen Steen hallv...@opera.com: It would be nice to understand what needs to be done to get the spec to Last Call. I've checked in some changes. I guess we're getting there.. Plan: * Find a way to test the clipboard-content-that-embeds-other-clipboard-content

Re: Event.key complaints?

2012-11-01 Thread Hallvord R. M. Steen
Travis wrote: Hallvord, sorry I missed your IRC comment in today's meeting, related to DOM3 Events: ** ** hallvord_ event.key is still a problem child, authors trying to use it have been complaining both to me and on the mailing list ** ** Could you point me to the

[Clipboard API] The before* events

2012-10-30 Thread Hallvord R. M. Steen
I'm looking at the beforecut, beforecopy and beforepaste events. I don't entirely understand their intent, it seems even more obscure than I expected.. Nothing in the official MSDN documentation [1] really explains the interaction between beforecopy and copy (given that you can control

Re: [XHR] Open issue: allow setting User-Agent?

2012-10-13 Thread Hallvord R. M. Steen
I came across an article [1] that describes some of the reasoning for Flash's change in security policy when it banned setting User-Agent. Apparently, some sites echo the User-Agent value back in markup in certain contexts (maybe a browser requirements page for example). Being able to set

Re: [XHR] Open issue: allow setting User-Agent?

2012-10-11 Thread Hallvord R. M. Steen
evidence when we limit what authors are allowed to do. Maybe other members of public-webapps could help me out by suggesting threat scenarios and use cases where this limitation seems relevant? -- Hallvord R. M. Steen Core tester, Opera Software

[XHR] Open issue: allow setting User-Agent?

2012-10-09 Thread Hallvord R. M. Steen
. -- Hallvord R. M. Steen Core tester, Opera Software

Re: [XHR] Open issue: allow setting User-Agent?

2012-10-09 Thread Hallvord R. M. Steen
-Agent sent with any requests it would make to your site, so unless you want to guard yourself from users running HackedMaliciousEvilWebBrowser 1.0 I don't see what protection you would loose from allowing XHR-set User-Agent. -- Hallvord R. M. Steen Core tester, Opera Software

Re: [XHR] Open issue: allow setting User-Agent?

2012-10-09 Thread Hallvord R. M. Steen
-like UA from a web browser make them significantly more vulnerable than being able to send the same string from a shell script? -- Hallvord R. M. Steen Core tester, Opera Software

Re: [XHR]

2012-10-08 Thread Hallvord R. M. Steen
the url points to, so it still points to something that returns immediately. Is this cross-browser or only in Chrome? -- Hallvord R. M. Steen Core tester, Opera Software

Re: [Clipboard API] Add a flag to indicate paste-as-text to beforepaste and paste events

2012-08-24 Thread Hallvord R. M. Steen
. if( event.clipboardData.intendedType=='text/plain' ){ // user used paste as text command }else{ } -- Hallvord R. M. Steen Core tester, Opera Software

Re: Clipboard API spec should specify beforecopy, beforecut, and beforepaste events

2012-05-03 Thread Hallvord R. M. Steen
*Enabled properties to be sync'ed by the implementation and show the actual state of the UI, rather than being set from the script? Would methods be better - navigator.UI.setCopyEnabled()?) -- Hallvord R. M. Steen Core tester, Opera Software

Re: Where should UA insert text when the focus is changed in a keypress event handler?

2012-03-27 Thread Hallvord R. M. Steen
the character in the first input even though focus is changing. -- Hallvord R. M. Steen Core tester, Opera Software

Re: [Clipboard] Processing model feedback (and other)

2012-02-20 Thread Hallvord R. M. Steen
it if I try to follow your advice. -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

Re: [Clipboard] Processing model feedback (and other)

2012-02-19 Thread Hallvord R. M. Steen
Siterer Anne van Kesteren ann...@opera.com: Except there's no such thing as default action really... IMO this is well established terminology and easy to understand for script authors because of the preventDefault() method name.. I've changed the text slightly though. I don't really

Re: [Clipboard] checking if implementation allows reading/writing a given type to the OS clipboard

2012-02-19 Thread Hallvord R. M. Steen
Siterer Paul Libbrecht p...@hoplahup.net: Hm.. you mean a page should be able to say Hello web browser, I just lve processing application/pdf data from the clipboard ? I don't see the use case for that. If I'm misunderstanding you please clarify :-) It means that if pdf is in the

Re: (aside) MIME type

2012-02-18 Thread Hallvord R. M. Steen
, defined by its users collectively. By now, MIME type is a part of our language.. Media type is ambiguous with CSS. Why? Just because CSS also defines and uses media type. Luckily, the human mind does some namespace processing which is subconscious and really efficient.. ;-) -- Hallvord R

Re: [Clipboard] checking if implementation allows reading/writing a given type to the OS clipboard

2012-02-18 Thread Hallvord R. M. Steen
/pdf data from the clipboard ? I don't see the use case for that. If I'm misunderstanding you please clarify :-) I won't brag about native type names. I still find they're good but they're really not well ruled so it's ok. MIME types (ahem..) are sort of more web-like.. -- Hallvord R. M. Steen

Re: [Clipboard] checking if implementation allows reading/writing a given type to the OS clipboard

2012-02-18 Thread Hallvord R. M. Steen
clipboard part where you store type strings, or something? -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

Re: [Clipboard] Processing model feedback (and other)

2012-02-18 Thread Hallvord R. M. Steen
. to reference HTML fetch you would use: span data-anolis-spec=htmlfetch/span Most instances of relevant terms now crosslinked. -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

Re: [Clipboard] Processing model feedback (and other)

2012-02-18 Thread Hallvord R. M. Steen
of a synthetic paste event. There is no default action for events fired by scripts (except for one or two unfortunate backwards-compatibility hacks). OK. I thought it would be a cool feature, but nevermind - I've reversed the statements and all related tests. -- Hallvord R. M. Steen, Core Tester

[Clipboard] checking if implementation allows reading/writing a given type to the OS clipboard

2012-02-17 Thread Hallvord R. M. Steen
-data-as-plain-text or json-data-as-plain-text } }) but then a feature/compatibility test would have to be deferred until a point where the user potentially has done a lot of work in the web application. Thoughts? -- Hallvord R. M. Steen Core tester, Opera Software

Re: safeguarding a live getData() against looping scripts? (was: Re: clipboard events)

2012-02-10 Thread Hallvord R. M. Steen
should use clipboard content sequence number on platforms where this is available, creativity elsewhere, to make sure script can only access one single clipboard entry. I've also added a test for this. -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http

Re: [Clipboard] Processing model feedback (and other)

2012-02-09 Thread Hallvord R. M. Steen
of how using anolis would help cross-referencing terms/definitions from another spec, HTML5 specifically? -- Hallvord R. M. Steen Core tester, Opera Software

Re: [clipboard] Event definition

2012-02-09 Thread Hallvord R. M. Steen
of a constructor, as described at http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#constructing-events. Done in response to Anne's feedback. -- Hallvord R. M. Steen Core tester, Opera Software

Re: Concerns regarding cross-origin copy/paste security

2012-02-08 Thread Hallvord R. M. Steen
. http://dev.w3.org/cvsweb/~checkout~/2006/webapi/clipops/clipops-source.html?rev=1.15;content-type=text%2Fhtml Perhaps we should publish a new working draft now? -- Hallvord R. M. Steen Core tester, Opera Software

Re: Pressing Enter in contenteditable: p or br or div?

2012-01-12 Thread Hallvord R. M. Steen
. Probably a stupid question, but one I've always wanted to ask: couldn't we default to a different, smaller, possibly 0 margin for P when in editable content? -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

Re: Copy/cut and event.preventDefault()

2011-11-03 Thread Hallvord R. M. Steen
? IMO the content should remain unchanged. If anyone disagrees with that (or want to suggest clarifications for the processing model to make this more obvious) I'm all ears :-) -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

Re: CfC: new WD of Clipboard API and Events; deadline April 5

2011-09-15 Thread Hallvord R. M. Steen
If we spec'ed that, what would the point of firing the events be? How would you solve the use cases we're trying to solve? Your concerns are valid but need UI-work, preferences and other stuff that is generally considered UA features and outside of a technical API spec. -- Hallvord R. M. Steen

Re: Fwd: Re: CfC: new WD of Clipboard API and Events; deadline April 5

2011-09-07 Thread Hallvord R. M. Steen
enable/disable clipboard events. Doing this in a user-friendly way is a fair playing field for UAs to compete on, and not something we should figure out now and put in the spec. -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

Re: Fwd: Re: CfC: new WD of Clipboard API and Events; deadline April 5

2011-09-06 Thread Hallvord R. M. Steen
disable them. I also think that a site that behaves in user-unfriendly ways will end up loosing users. If a site is arrogant enough to mess with what I copy unless to improve it, it deserves to loose users. -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http

Re: Fwd: Re: CfC: new WD of Clipboard API and Events; deadline April 5

2011-09-05 Thread Hallvord R. M. Steen
On Mon, 05 Sep 2011 10:44:13 +0200, Anne van Kesteren ann...@opera.com wrote: On Sun, 04 Sep 2011 23:47:08 +0200, Hallvord R. M. Steen hallv...@opera.com wrote: Also, scripts shouldn't be able to call clearData() during copy/cut events, correct? Why not? Is it useful in any other context

Re: [Clipboard API] setData description

2011-09-05 Thread Hallvord R. M. Steen
? [1] http://dev.w3.org/2006/webapi/clipops/clipops.html#widl-clipboardData-setData-boolean-DOMString-type-DOMString-data -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

Re: [Clipboard API] Copy to clipboard

2011-09-05 Thread Hallvord R. M. Steen
take into account the privacy and security issues a clipboard API raises. As far as I know, UAs already have preferences and limitations that regulate access to the existing clipboard commands. -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com

Re: Fwd: Re: CfC: new WD of Clipboard API and Events; deadline April 5

2011-09-05 Thread Hallvord R. M. Steen
On Mon, 05 Sep 2011 12:14:27 +0200, Anne van Kesteren ann...@opera.com wrote: On Mon, 05 Sep 2011 12:13:35 +0200, Hallvord R. M. Steen hallv...@opera.com wrote: As in LINK rel=prefetch and LINK rel=stylesheet? Yes. But this would apply to img too of course; maybe they can become a blob

Re: [Clipboard API] setData description

2011-09-05 Thread Hallvord R. M. Steen
On Mon, 05 Sep 2011 12:45:07 +0200, João Eiras jo...@opera.com wrote: Perhaps paste should be emphasized Will be :) -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

Re: Fwd: Re: CfC: new WD of Clipboard API and Events; deadline April 5

2011-09-04 Thread Hallvord R. M. Steen
fragment. We certainly don't want to remove A tags or their HREFs, so I'm not sure why we'd want to remove e.g. LINK. -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

clipboard events draft updated

2011-09-04 Thread Hallvord R. M. Steen
#mandatory-data-types-1 (Aware basically means being able to find the right Native OS clipboard format for a given MIME type) -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

Re: CfC: new WD of Clipboard API and Events; deadline April 5

2011-09-04 Thread Hallvord R. M. Steen
still considering removing the form elements from that list though. -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

XHR using user and password parameters

2011-07-11 Thread Hallvord R. M. Steen
Authorize: whenever a user name and password is supplied. Are there any particular reason we don't? Would it be seen as violating the HTTP standard's text about 401 and Authorize: if we did spec something like that? -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http

Re: safeguarding a live getData() against looping scripts? (was: Re: clipboard events)

2011-05-21 Thread Hallvord R. M. Steen
. -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

Re: clipboard events

2011-05-18 Thread Hallvord R. M. Steen
often than once a month or so, so I'll get back to this in June or July. -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

Re: Filtering clipboard MIME types (was: Re: clipboard events)

2011-05-18 Thread Hallvord R. M. Steen
? If not, if we have a section that covers any XML-based format, that should be enough - right? Relevant for this thread (though not to MathML specifically), here's a link on what Flash supports: http://help.adobe.com/en_US/as3/dev/WS0579B9EE-CF1E-434e-A386-A04DC7786FC9.html -- Hallvord R. M. Steen

Re: safeguarding a live getData() against looping scripts? (was: Re: clipboard events)

2011-05-18 Thread Hallvord R. M. Steen
on a script calling getData('text/html') but that would require some hacking around with the getData() definition in HTML5.) This means we read and process the HTML part from the clipboard before firing paste, but any binary/embedded data will only be read on demand. -- Hallvord R. M. Steen

Re: safeguarding a live getData() against looping scripts? (was: Re: clipboard events)

2011-05-18 Thread Hallvord R. M. Steen
. -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

Re: copy events and content from server

2011-05-18 Thread Hallvord R. M. Steen
the huge wealth of desktop-like services. Use cases such as copy-a-pdf-fragment from Google Docs Drawing, generate a complex ICS, or produce a good raster image from a graph-display... It often seems a bit random what ideas pop up during a standardisation process.. :-) -- Hallvord R. M

Re: safeguarding a live getData() against looping scripts? (was: Re: clipboard events)

2011-05-18 Thread Hallvord R. M. Steen
On Thu, 19 May 2011 09:11:56 +0900, João Eiras joao.ei...@gmail.com wrote: getData and setData must work outside clipboard events, like when clicking paste/copy/cut buttons on a toolbar. I think this is covered by execCommand('Paste') etc. -- Hallvord R. M. Steen, Core Tester, Opera

Re: safeguarding a live getData() against looping scripts? (was: Re: clipboard events)

2011-05-17 Thread Hallvord R. M. Steen
sequence number to determine the contents of the clipboard have changed. Interesting. What, in your view, should the implementation do if it discovers the contents has changed while a paste event thread is running? -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http

Re: Filtering clipboard MIME types (was: Re: clipboard events)

2011-05-17 Thread Hallvord R. M. Steen
at this point to let the spec say these types are mandatory, those are optional? Or just proceed carefully and try to avoid the feature creep? ;-) -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

Re: safeguarding a live getData() against looping scripts? (was: Re: clipboard events)

2011-05-17 Thread Hallvord R. M. Steen
HTML data on the clipboard (including possibly adding images and embedded content to clipboardData.items) before firing the paste event, or do so only if the script calls getData('text/html') within the paste event thread. Implementor feedback welcome! -- Hallvord R. M. Steen, Core Tester

Re: copy events and content from server

2011-05-16 Thread Hallvord R. M. Steen
this state (when the server knows significantly more than the client-side logic about what should be placed on the clipboard) is and will be going forward. -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

Re: Concerns regarding cross-origin copy/paste security

2011-05-16 Thread Hallvord R. M. Steen
into an application that doesn't support scripting and/or isn't from an untrusted origin, for example a typical desktop word processing app, the threats we are trying to handle don't really apply. -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

Re: paste events and HTML support - interest in exposing a DOM tree?

2011-05-16 Thread Hallvord R. M. Steen
://dev.w3.org/2006/webapi/clipops/clipops.html#pasting-html -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

safeguarding a live getData() against looping scripts? (was: Re: clipboard events)

2011-05-16 Thread Hallvord R. M. Steen
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.com http://my.opera.com/hallvors/

Filtering clipboard MIME types (was: Re: clipboard events)

2011-05-16 Thread Hallvord R. M. Steen
is detected. Again the specific list of types for this would be great :-) -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com/hallvors/

request for custom clipboard types (Re: clipboard events)

2011-05-16 Thread Hallvord R. M. Steen
downsides.. I would however assume that if we support placing a main XML (or JSON) payload plus alternate- or sub-parts on the clipboard, many custom formats and applications would be able to do their custom business in XML or JSON plus binary blobs. What do you think? -- Hallvord R. M

Re: paste events and HTML support - interest in exposing a DOM tree?

2011-05-03 Thread Hallvord R. M. Steen
, innerStaticHTML which would not return scripts or event handlers on reading, and would parse out those when setting. That sounds like a good idea, but would be best followed up in a separate context. -- Hallvord R. M. Steen, Core Tester, Opera Software http://www.opera.com http://my.opera.com

  1   2   >