[Webkit-unassigned] [Bug 65353] Remove LegacyDefaultOptionalArguments flag from DOMWindow.idl

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 28 22:38:24 PDT 2011


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





--- Comment #4 from Adam Barth <abarth at webkit.org>  2011-07-28 22:38:24 PST ---
> (From update of attachment 102322 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=102322&action=review
> 
> > Source/WebCore/page/DOMWindow.idl:74
> > +        [Custom] DOMWindow open(in [Optional=CallWithDefaultValue] DOMString url,
> 
> I’m curious, what does “call with default value” mean? What is the default value?

Basically, it's whatever undefined maps to for the given type.  In the case of DOMString, I think that's the null string.  For pointer types, it ends up as zero.  "Optional" (without the value) uses C++ overloading to dispatch the different calls.  We struggled a bit to come up with an appropriate name.  If you've got a better suggestion, we're all ears.  :)

-- 
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