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

Issue 222203009: Execute callbacks from JS in the correct zone

Created:
6 years, 8 months ago by justinfagnani
Modified:
5 years, 7 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Execute callbacks from JS in the correct zone BUG=https://code.google.com/p/dart/issues/detail?id=17301

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add Dartium support #

Total comments: 2

Patch Set 3 : Add test for round-trip functions #

Patch Set 4 : Review comments #

Patch Set 5 : Add _wrapToJs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -12 lines) Patch
M sdk/lib/js/dart2js/js_dart2js.dart View 1 3 chunks +26 lines, -12 lines 0 comments Download
M sdk/lib/js/dartium/js_dartium.dart View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M tests/html/js_test.dart View 1 2 3 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (2 generated)
justinfagnani
This is just the fix for the dart2js side, still need to work on the ...
6 years, 8 months ago (2014-04-02 23:44:44 UTC) #1
floitsch
LGTM. https://codereview.chromium.org/222203009/diff/1/sdk/lib/js/dart2js/js_dart2js.dart File sdk/lib/js/dart2js/js_dart2js.dart (right): https://codereview.chromium.org/222203009/diff/1/sdk/lib/js/dart2js/js_dart2js.dart#newcode131 sdk/lib/js/dart2js/js_dart2js.dart:131: return Zone.current.bindUnaryCallback(callDart, runGuarded: true); are you sure you ...
6 years, 8 months ago (2014-04-03 12:52:30 UTC) #2
Jacob
lgtm
6 years, 8 months ago (2014-04-09 16:54:58 UTC) #3
justinfagnani
https://codereview.chromium.org/222203009/diff/1/sdk/lib/js/dart2js/js_dart2js.dart File sdk/lib/js/dart2js/js_dart2js.dart (right): https://codereview.chromium.org/222203009/diff/1/sdk/lib/js/dart2js/js_dart2js.dart#newcode131 sdk/lib/js/dart2js/js_dart2js.dart:131: return Zone.current.bindUnaryCallback(callDart, runGuarded: true); On 2014/04/03 12:52:30, floitsch wrote: ...
6 years, 8 months ago (2014-04-10 00:26:59 UTC) #4
justinfagnani
Jacob PTAL. I added the Dartium support to js_dartium.dart, and now this CL depends on ...
6 years, 8 months ago (2014-04-10 00:27:38 UTC) #5
Jacob
lgtm https://codereview.chromium.org/222203009/diff/20001/sdk/lib/js/dartium/js_dartium.dart File sdk/lib/js/dartium/js_dartium.dart (right): https://codereview.chromium.org/222203009/diff/20001/sdk/lib/js/dartium/js_dartium.dart#newcode369 sdk/lib/js/dartium/js_dartium.dart:369: if (value is Function) return _applyZoned(value); nit: the ...
6 years, 8 months ago (2014-04-10 00:51:53 UTC) #6
justinfagnani
Added the test for round trip functions that fails in Dartium. I have an attempted ...
6 years, 8 months ago (2014-04-10 03:55:05 UTC) #7
Jennifer Messerly
ping! How's this patch doing? Spark is hitting this issue a *lot* because they use ...
6 years, 6 months ago (2014-05-28 18:29:34 UTC) #8
sergeygs
On 2014/05/28 18:29:34, John Messerly wrote: > ping! How's this patch doing? > > Spark ...
6 years, 3 months ago (2014-09-16 00:29:07 UTC) #9
Jennifer Messerly
+Siggi & Jake ... would one of you be interested in taking this CL over? ...
6 years, 3 months ago (2014-09-16 00:35:26 UTC) #11
Jennifer Messerly
On 2014/09/16 00:35:26, John Messerly wrote: > +Siggi & Jake ... would one of you ...
6 years, 3 months ago (2014-09-16 00:35:55 UTC) #12
justinfagnani
On 2014/09/16 00:35:26, John Messerly wrote: > +Siggi & Jake ... would one of you ...
6 years, 3 months ago (2014-09-16 00:36:42 UTC) #13
Jennifer Messerly
On 2014/09/16 00:36:42, justinfagnani wrote: > On 2014/09/16 00:35:26, John Messerly wrote: > > +Siggi ...
6 years, 3 months ago (2014-09-16 00:39:03 UTC) #14
justinfagnani
6 years, 3 months ago (2014-09-16 00:39:23 UTC) #15
On 2014/09/16 00:36:42, justinfagnani wrote:
> On 2014/09/16 00:35:26, John Messerly wrote:
> > +Siggi & Jake ... would one of you be interested in taking this CL over?
(Just
> > guessing that Justin isn't going to get to it...)
> 
> This CL isn't the issue, it's ready to go. The Dartium CL needs to be
submitted
> together with it.

FYI, my attempt at the Dartium fix is here:
https://codereview.chromium.org/231743006/
It wasn't fully working, so Jacob has a fix to that.

Powered by Google App Engine
This is Rietveld 408576698