[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

--- Comment #6 from Glenn Maynard <glenn@zewt.org> 2012-05-11 06:44:48 UTC ---
(In reply to comment #4)
> 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

This requires far more knowledge of how IDL dictionaries work than can be
reasonably expected.  Feature detection shouldn't be so complex that everyone
needs to use a helper library to do it, especially not for something as common
as whether an IDL dictionary contains a property.

-- 
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 Friday, 11 May 2012 06:44:52 UTC