[Webkit-unassigned] [Bug 7726] REGRESSION: Calendar pop-up doesn't appear when clicking inside the date textfield

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Mon Mar 13 09:23:48 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=7726


darin at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darin at apple.com




------- Comment #5 from darin at apple.com  2006-03-13 09:23 PDT -------
Regarding (1):

The code that constructs the function is JSLazyEventListener::parseCode in
kjs_events.cpp. It uses the built-in Function object as a constructor to make
the function, so the function has no name. However, to match Gecko it would be
nice to supply a name. To do this we'd need to do two things. First, we'd need
to supply a name to the JSLazyEventListener constructor and add the name
parameter to createHTMLEventHandler. Second, we'd need to create some way to
construct such a function, since the built-in Function object as a constructor
does not support setting the function's identifier.

Regarding (2):

The reason we don't parse a function expression any more and we used to is that
we share the same parser for functions and for programs. We fixed a bug where
we would allow function expressions in programs.

For a program, a function expression (without an identifier) is not legal, and
should lead to a parse error. When parsing a function using the built-in
Function object as a constructor, the JavaScript standard says that we should
parse a FunctionBody, not a Program (section 10.1.2). But that's apparently not
what Gecko is doing either, because a FunctionBody requires braces, so the test
case wouldn't work if we followed exactly what the specification says.

I don't know how to change our JavaScript parser to work in different modes for
these two purposes; there may be a feature that lets us do that in bison or a
simple way to change the parser. But more importantly, I don't know what mode
to invoke the parser in when using the Function object as a constructor!


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list