[Webkit-unassigned] [Bug 60622] getUserMedia() should not throw when successCallback is undefined or null

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 26 09:34:55 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=60622





--- Comment #1 from Leandro GraciĆ” Gil <leandrogracia at chromium.org>  2011-05-26 09:34:55 PST ---
(In reply to comment #0)
> From the spec:
> 
> 4. If successCallback is null, abort these steps.

I think you're right on this.

Currently, createFunctionOnlyCallback has optional flags as its last parameter for both JSC and V8 bindings. To accept null you just need to add the appropriate flag there.

However, I disagree about undefined as mentioned in the bug title. Please correct me if I'm wrong, but I think that allowing undefined would mean that we consider valid to call the function with only one argument, which seems not to be the case.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list