Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Issue 3175: Pass the invoked JavaScript method name as an argument to the fallback callback (Closed)

Created:
12 years, 3 months ago by Marshall Greenblatt
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Pass the nonexistent JavaScript method name as the first parameter in the argument list to the fallback handler in CppBoundClass. Also, return true from CppBoundClass::HasMethod() in all cases if a fallback handler is assigned (this is how the code we previously documented, but not how it actually behaves).

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -7 lines) Patch
M AUTHORS View 3 2 chunks +2 lines, -1 line 0 comments Download
M webkit/glue/cpp_bound_class.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M webkit/glue/cpp_bound_class.cc View 1 2 3 3 chunks +15 lines, -4 lines 1 comment Download

Messages

Total messages: 13 (0 generated)
Marshall Greenblatt
12 years, 3 months ago (2008-09-19 20:20:45 UTC) #1
Evan Martin
More important than my comments below is that you fix the other code that relies ...
12 years, 3 months ago (2008-09-19 20:48:17 UTC) #2
Marshall Greenblatt
Please review the updated patch that makes the code changes less magical.
12 years, 3 months ago (2008-09-20 00:34:09 UTC) #3
Evan Martin
LGTM I'll try to commit it on Monday...
12 years, 3 months ago (2008-09-20 00:42:36 UTC) #4
Evan Martin
Have you filed the CLA? http://dev.chromium.org/developers/contributing-code If so, could you add yourself to the AUTHORS ...
12 years, 3 months ago (2008-09-24 20:08:56 UTC) #5
Marshall Greenblatt
On 2008/09/24 20:08:56, Evan Martin wrote: > Have you filed the CLA? > http://dev.chromium.org/developers/contributing-code > ...
12 years, 3 months ago (2008-09-25 02:00:17 UTC) #6
Evan Martin
I just remembered some of this code might not work. Feng, do you remember changing ...
12 years, 3 months ago (2008-09-25 02:09:14 UTC) #7
Marshall Greenblatt
Please review the updated patch set. Fixed conflict in the AUTHORS file.
12 years, 2 months ago (2008-10-04 22:45:24 UTC) #8
Pam (message me for reviews)
In addition to whatever Feng might suggest, please add cases to cpp_bound_class_unittest.cc (a new InvokeNonexistentMethodsWithFallback ...
12 years, 2 months ago (2008-10-06 16:52:43 UTC) #9
Evan Martin
http://codereview.chromium.org/3175/diff/601/801 File webkit/glue/cpp_bound_class.cc (right): http://codereview.chromium.org/3175/diff/601/801#newcode157 Line 157: return (methods_.find(ident) != methods_.end() || fallback_callback_.get()); I spoke ...
12 years, 2 months ago (2008-10-07 18:26:42 UTC) #10
Marshall Greenblatt
With the code as it currently stands the fallback callback will never be called even ...
12 years, 2 months ago (2008-10-07 19:36:04 UTC) #11
Evan Martin
I found the change where this was removed. The diff includes the following: - // ...
12 years, 2 months ago (2008-10-07 19:50:57 UTC) #12
Marshall Greenblatt
12 years, 2 months ago (2008-10-07 20:22:24 UTC) #13
If I understand the WebKit code properly it looks like they pass the invoked
method name as a separate parameter.  We talked about that option but I believe
we disqualified it due to the scope of changes required.

Back before the webkit merge I ran the layout tests with this patch applied and
none of them failed for reasons associated with this change.   I'll implement
the additional test case that Pam requested and run the layout tests again in a
week or so once the merge is more settled.

Powered by Google App Engine
This is Rietveld 408576698