[Webkit-unassigned] [Bug 85326] WebIDL: overloaded methods prevent number -> string conversion

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 24 12:23:17 PDT 2012


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





--- Comment #3 from Joshua Bell <jsbell at chromium.org>  2012-09-24 12:23:45 PST ---
(In reply to comment #2)
> * Enable StrictTypeChecking as a parameter attribute
> * Mark existing overload DOMString parameters with [StrictTypeChecking]

This may be necessary even if the full overloading algorithm from the spec is implemented, as there are legacy interfaces that are ambiguous overloads in WebIDL, e.g.:

./html/canvas/CanvasRenderingContext2D.idl:
 void setStrokeColor(DOMString color, float alpha)
 void setStrokeColor(float grayLevel, float alpha)

./html/canvas/CanvasRenderingContext2D.idl:
 void setFillColor(DOMString color, float alpha)
 void setFillColor(float grayLevel, float alpha)

./html/canvas/CanvasRenderingContext2D.idl:
 void setShadow(float width, float height, float blur, DOMString color, float alpha)
 void setShadow(float width, float height, float blur, float grayLevel, float alpha)

... and possibly:
 ./xml/XMLHttpRequest.idl: void send(...)

Otherwise, it looks like all the overloads in WebCore IDLs involving DOMString can be disambiguated based on earlier arguments, or are intentional to work around this issue.

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