[Bug 16953] createObjectURL and oneTimeOnly behavior should be defined in terms of stable state

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16953

Masatoshi Kimura <VYV03354@nifty.ne.jp> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |VYV03354@nifty.ne.jp

--- Comment #4 from Masatoshi Kimura <VYV03354@nifty.ne.jp> 2012-05-07 23:16:27 UTC ---
We can use getter for feature detection. For example:
var hasOneTimeOnly = false, hasAutoRevoke = false;
var o = {};
Object.defineProperty(o, "oneTimeOnly", { get: function(){ hasOneTimeOnly =
true; return false; } });
Object.defineProperty(o, "autoRevoke", { get: function(){ hasAutoRevoke = true;
return false; } });
URL.createObjectURL(new Blob(), o); // getter will be called if supported

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 7 May 2012 23:16:31 UTC