RESOLVED FIXED74313
Implement the JavaScriptCore bindings for eventListenerHandlerLocation
https://bugs.webkit.org/show_bug.cgi?id=74313
Summary Implement the JavaScriptCore bindings for eventListenerHandlerLocation
Konrad Piascik
Reported 2011-12-12 11:22:52 PST
This method currently has a FIXME and simple returns false.
Attachments
patch (3.02 KB, patch)
2011-12-12 11:47 PST, Konrad Piascik
ggaren: review-
amended patch (3.05 KB, patch)
2011-12-12 12:01 PST, Konrad Piascik
ggaren: review-
Use ustringToString to avoid copy (3.04 KB, patch)
2011-12-12 14:47 PST, Konrad Piascik
no flags
Fixed Change Log (3.04 KB, patch)
2011-12-12 17:03 PST, Konrad Piascik
no flags
mac build fix (3.50 KB, patch)
2011-12-12 19:40 PST, Konrad Piascik
no flags
patch (15.06 KB, patch)
2011-12-13 08:42 PST, Konrad Piascik
no flags
Updated ChangeLog (15.06 KB, patch)
2011-12-13 12:54 PST, Konrad Piascik
no flags
patch (16.34 KB, patch)
2011-12-15 06:18 PST, Konrad Piascik
no flags
Konrad Piascik
Comment 1 2011-12-12 11:47:04 PST
Geoffrey Garen
Comment 2 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 "&&".
Konrad Piascik
Comment 3 2011-12-12 12:01:58 PST
Created attachment 118822 [details] amended patch
Geoffrey Garen
Comment 4 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.
Konrad Piascik
Comment 5 2011-12-12 14:47:52 PST
Created attachment 118857 [details] Use ustringToString to avoid copy
Geoffrey Garen
Comment 6 2011-12-12 15:41:47 PST
Comment on attachment 118857 [details] Use ustringToString to avoid copy r=me
WebKit Review Bot
Comment 7 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
Adam Barth
Comment 8 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.
Eric Seidel (no email)
Comment 9 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.
Konrad Piascik
Comment 10 2011-12-12 17:03:31 PST
Created attachment 118911 [details] Fixed Change Log
WebKit Review Bot
Comment 11 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>
WebKit Review Bot
Comment 12 2011-12-12 18:23:39 PST
All reviewed patches have been landed. Closing bug.
Ryosuke Niwa
Comment 13 2011-12-12 18:57:10 PST
Kenneth Russell
Comment 14 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>
Konrad Piascik
Comment 15 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.
WebKit Review Bot
Comment 16 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>
WebKit Review Bot
Comment 17 2011-12-12 20:08:10 PST
All reviewed patches have been landed. Closing bug.
Daniel Bates
Comment 18 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>
Ryosuke Niwa
Comment 19 2011-12-12 22:06:54 PST
Please don't land this patch again until you're sure your patch works on Mac.
Konrad Piascik
Comment 20 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.
Ryosuke Niwa
Comment 21 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.
Konrad Piascik
Comment 22 2011-12-13 12:54:12 PST
Created attachment 119068 [details] Updated ChangeLog
Konrad Piascik
Comment 23 2011-12-15 06:18:23 PST
Created attachment 119417 [details] patch Updated to get Windows and Mac builds working.
WebKit Review Bot
Comment 24 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.
Konrad Piascik
Comment 25 2011-12-15 06:24:49 PST
Comment on attachment 119417 [details] patch accidentally set + instead of ?
Eric Seidel (no email)
Comment 26 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.
Eric Seidel (no email)
Comment 27 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.
WebKit Review Bot
Comment 28 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>
WebKit Review Bot
Comment 29 2011-12-21 20:39:37 PST
All reviewed patches have been landed. Closing bug.
Csaba Osztrogonác
Comment 30 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.
Adam Roben (:aroben)
Comment 31 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.
Note You need to log in before you can comment on or make changes to this bug.