Bug 74313

Summary: Implement the JavaScriptCore bindings for eventListenerHandlerLocation
Product: WebKit Reporter: Konrad Piascik <kpiascik>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, dbates, eric, ggaren, kbr, oliver, ossy, pfeldman, rniwa, webkit.review.bot, yong.li.webkit, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
ggaren: review-
amended patch
ggaren: review-
Use ustringToString to avoid copy
none
Fixed Change Log
none
mac build fix
none
patch
none
Updated ChangeLog
none
patch none

Description Konrad Piascik 2011-12-12 11:22:52 PST
This method currently has a FIXME and simple returns false.
Comment 1 Konrad Piascik 2011-12-12 11:47:04 PST
Created attachment 118821 [details]
patch
Comment 2 Geoffrey Garen 2011-12-12 11:55:02 PST
Comment on attachment 118821 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=118821&action=review

> Source/WebCore/bindings/js/ScriptEventListener.cpp:117
> +    if (!jsFunction && jsFunction->isHostFunction())

I think you meant "||" not  "&&".
Comment 3 Konrad Piascik 2011-12-12 12:01:58 PST
Created attachment 118822 [details]
amended patch
Comment 4 Geoffrey Garen 2011-12-12 14:41:21 PST
Comment on attachment 118822 [details]
amended patch

View in context: https://bugs.webkit.org/attachment.cgi?id=118822&action=review

> Source/WebCore/bindings/js/ScriptEventListener.cpp:123
> +    sourceName = String(funcExecutable->sourceURL().characters());

funcExecutable->sourceURL() is a UString. The preferred way to convert JSC::UString to WTF::String is to call ustringToString(), which will avoid a copy.
Comment 5 Konrad Piascik 2011-12-12 14:47:52 PST
Created attachment 118857 [details]
Use ustringToString to avoid copy
Comment 6 Geoffrey Garen 2011-12-12 15:41:47 PST
Comment on attachment 118857 [details]
Use ustringToString to avoid copy

r=me
Comment 7 WebKit Review Bot 2011-12-12 16:50:28 PST
Comment on attachment 118857 [details]
Use ustringToString to avoid copy

Rejecting attachment 118857 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1

Last 500 characters of output:
ueue/Tools/Scripts/webkitpy/tool/commands/stepsequence.py", line 70, in run_and_handle_errors
    self._run(tool, options, state)
  File "/mnt/git/webkit-commit-queue/Tools/Scripts/webkitpy/tool/commands/stepsequence.py", line 64, in _run
    step(tool, options).run(state)
  File "/mnt/git/webkit-commit-queue/Tools/Scripts/webkitpy/tool/steps/validatereviewer.py", line 53, in run
    if changelog_entry.has_valid_reviewer():
AttributeError: 'NoneType' object has no attribute 'has_valid_reviewer'

Full output: http://queues.webkit.org/results/10857004
Comment 8 Adam Barth 2011-12-12 16:58:49 PST
Comment on attachment 118857 [details]
Use ustringToString to avoid copy

There's a blank line at the top of your ChangeLog diff.
Comment 9 Eric Seidel (no email) 2011-12-12 17:00:09 PST
Our ChangeLog parsing could be more robust... but in this case we should just show a nicer error.
Comment 10 Konrad Piascik 2011-12-12 17:03:31 PST
Created attachment 118911 [details]
Fixed Change Log
Comment 11 WebKit Review Bot 2011-12-12 18:23:33 PST
Comment on attachment 118911 [details]
Fixed Change Log

Clearing flags on attachment: 118911

Committed r102648: <http://trac.webkit.org/changeset/102648>
Comment 12 WebKit Review Bot 2011-12-12 18:23:39 PST
All reviewed patches have been landed.  Closing bug.
Comment 13 Ryosuke Niwa 2011-12-12 18:57:10 PST
This patch broke Mac builds:
http://build.webkit.org/builders/SnowLeopard%20Intel%20Debug%20%28Build%29/builds/4318
Comment 14 Kenneth Russell 2011-12-12 19:13:46 PST
Reverted r102648 for reason:

Broke the Snow Leopard and Windows builds

Committed r102653: <http://trac.webkit.org/changeset/102653>
Comment 15 Konrad Piascik 2011-12-12 19:40:33 PST
Created attachment 118938 [details]
mac build fix

Updated patch with build fix for mac as well as fixing whitespace in ChangeLog.  I also updated the copyright header.
Comment 16 WebKit Review Bot 2011-12-12 20:08:04 PST
Comment on attachment 118938 [details]
mac build fix

Clearing flags on attachment: 118938

Committed r102656: <http://trac.webkit.org/changeset/102656>
Comment 17 WebKit Review Bot 2011-12-12 20:08:10 PST
All reviewed patches have been landed.  Closing bug.
Comment 18 Daniel Bates 2011-12-12 21:12:10 PST
Reverted r102656 for reason:

Broke the Mac, Windows and WinCairo builds. We need to look into this patch some more.

Committed r102657: <http://trac.webkit.org/changeset/102657>
Comment 19 Ryosuke Niwa 2011-12-12 22:06:54 PST
Please don't land this patch again until you're sure your patch works on Mac.
Comment 20 Konrad Piascik 2011-12-13 08:42:53 PST
Created attachment 119023 [details]
patch

Added 5 new private headers as well as 2 new forward declared headers to get mac compiling with this change.
Comment 21 Ryosuke Niwa 2011-12-13 11:44:31 PST
Comment on attachment 119023 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=119023&action=review

> Source/JavaScriptCore/ChangeLog:8
> +        Reviewed by NOBODY (OOPS!).

This line should appear before the description but after the bug url.

> Source/WebCore/ChangeLog:8
> +        Reviewed by NOBODY (OOPS!).

This line should appear before the description but after the bug url.
Comment 22 Konrad Piascik 2011-12-13 12:54:12 PST
Created attachment 119068 [details]
Updated ChangeLog
Comment 23 Konrad Piascik 2011-12-15 06:18:23 PST
Created attachment 119417 [details]
patch

Updated to get Windows and Mac builds working.
Comment 24 WebKit Review Bot 2011-12-15 06:18:46 PST
Comment on attachment 119417 [details]
patch

Rejecting attachment 119417 [details] from commit-queue.

kpiascik@rim.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.

- If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your committer rights.
Comment 25 Konrad Piascik 2011-12-15 06:24:49 PST
Comment on attachment 119417 [details]
patch

accidentally set + instead of ?
Comment 26 Eric Seidel (no email) 2011-12-19 10:45:10 PST
Comment on attachment 118857 [details]
Use ustringToString to avoid copy

Cleared Geoffrey Garen's review+ from obsolete attachment 118857 [details] so that this bug does not appear in http://webkit.org/pending-commit.
Comment 27 Eric Seidel (no email) 2011-12-21 12:14:49 PST
Comment on attachment 119417 [details]
patch

Seems OK, if the JSC folks are OK with exposing ExecutableBase as a symbol.
Comment 28 WebKit Review Bot 2011-12-21 20:39:31 PST
Comment on attachment 119417 [details]
patch

Clearing flags on attachment: 119417

Committed r103488: <http://trac.webkit.org/changeset/103488>
Comment 29 WebKit Review Bot 2011-12-21 20:39:37 PST
All reviewed patches have been landed.  Closing bug.
Comment 30 Csaba Osztrogonác 2011-12-22 04:25:01 PST
(In reply to comment #28)
> (From update of attachment 119417 [details])
> Clearing flags on attachment: 119417
> 
> Committed r103488: <http://trac.webkit.org/changeset/103488>

And a trivial test fix landed in http://trac.webkit.org/changeset/103526.
Comment 31 Adam Roben (:aroben) 2012-01-11 14:06:46 PST
Comment on attachment 119417 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=119417&action=review

> Source/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:300
> +    ?s_info@ExecutableBase@JSC@@2UClassInfo@2@B

FYI, this is incorrect. It's been fixed as part of bug 76101.