[Webkit-unassigned] [Bug 63141] Wrong argument order in window.postMessage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 22 21:35:13 PDT 2011


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


Ian 'Hixie' Hickson <ian at hixie.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at hixie.ch




--- Comment #4 from Ian 'Hixie' Hickson <ian at hixie.ch>  2011-06-22 21:35:13 PST ---
If you plan to change this, hold off a few days because I'm about to update this API anyway and I wouldn't want to end up changing it around and having you waste your time.

The problem with the order (message, ports, targetOrigin) is that it means you don't know what the second argument is unless you check its type or check the number of arguments. With the order (message, targetOrigin, ports) the optional argument is the last one, not the middle one.

Does anyone else support sending ports yet? If not this might be a moot point and we might be able to change it easily. How much WebKit-specific content is there out there using this?

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