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

Issue 408783002: Enable Try Dart to run on IE11. (Closed)

Created:
6 years, 5 months ago by aam-me
Modified:
5 years, 10 months ago
Reviewers:
ahe
CC:
reviews_dartlang.org, lukechurch, Johnni Winther, kasperl
Visibility:
Public.

Description

Made couple tweaks and added several options to allow Try Dart to run in IE11. BUG=dartbug.com/20017 R=ahe@google.com Committed: https://code.google.com/p/dart/source/detail?r=39394

Patch Set 1 #

Total comments: 19

Patch Set 2 : Clean up formatting errors, added test. #

Patch Set 3 : An attempt to get rid of exceptions, explicit options to handle IE11 #

Patch Set 4 : Reverted test, changed isBlockElement to accomodate for display=='none' #

Patch Set 5 : Added 'diagnostic' class to wrapper span, narrowed hover css application #

Total comments: 10

Patch Set 6 : #

Total comments: 2

Patch Set 7 : removed dynamic, marked one test as Fail on IE11 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -40 lines) Patch
M site/try/index.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M site/try/src/compilation.dart View 1 2 3 4 5 3 chunks +6 lines, -1 line 0 comments Download
M site/try/src/compiler_isolate.dart View 1 2 3 4 5 3 chunks +15 lines, -7 lines 0 comments Download
M site/try/src/editor.dart View 1 2 3 4 5 1 chunk +5 lines, -4 lines 0 comments Download
M site/try/src/html_to_text.dart View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M site/try/src/interaction_manager.dart View 1 2 3 4 5 9 chunks +22 lines, -12 lines 3 comments Download
M site/try/src/leap.dart View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download
M site/try/src/messages.dart View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M site/try/src/settings.dart View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M site/try/src/shadow_root.dart View 1 2 3 4 5 3 chunks +24 lines, -13 lines 0 comments Download
M site/try/src/user_option.dart View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M tests/try/try.status View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
aam-me
Hi Peter, wanted to share with you what I've done to make Try Dart work ...
6 years, 5 months ago (2014-07-20 19:21:53 UTC) #1
aam-me
https://codereview.chromium.org/408783002/diff/1/site/try/src/html_to_text.dart File site/try/src/html_to_text.dart (right): https://codereview.chromium.org/408783002/diff/1/site/try/src/html_to_text.dart#newcode44 site/try/src/html_to_text.dart:44: {bool treatRootAsInline: true}) { Reason for this change is ...
6 years, 5 months ago (2014-07-21 01:38:28 UTC) #2
ahe
Very nice, as always :-) I have two concerns: 1. The change to treat root ...
6 years, 5 months ago (2014-07-21 08:16:00 UTC) #3
aam-me
Thank you Peter for taking time to respond to this CL! Areas of concern you ...
6 years, 5 months ago (2014-07-21 12:20:38 UTC) #4
aam-me
Hi Peter, please take a look when you have a chance. Thanks! https://codereview.chromium.org/408783002/diff/1/site/try/src/html_to_text.dart File site/try/src/html_to_text.dart ...
6 years, 4 months ago (2014-07-30 00:28:25 UTC) #5
ahe
Thank you for investigating! https://codereview.chromium.org/408783002/diff/1/site/try/src/html_to_text.dart File site/try/src/html_to_text.dart (right): https://codereview.chromium.org/408783002/diff/1/site/try/src/html_to_text.dart#newcode44 site/try/src/html_to_text.dart:44: {bool treatRootAsInline: true}) { On ...
6 years, 4 months ago (2014-08-04 08:59:55 UTC) #6
aam-me
On 2014/08/04 08:59:55, ahe wrote: > Thank you for investigating! > > https://codereview.chromium.org/408783002/diff/1/site/try/src/html_to_text.dart > File ...
6 years, 4 months ago (2014-08-04 11:12:11 UTC) #7
aam-me
On 2014/08/04 08:59:55, ahe wrote: > Thank you for investigating! > > https://codereview.chromium.org/408783002/diff/1/site/try/src/html_to_text.dart > File ...
6 years, 4 months ago (2014-08-04 11:12:11 UTC) #8
aam-me
On 2014/08/04 08:59:55, ahe wrote: > Thank you for investigating! > > https://codereview.chromium.org/408783002/diff/1/site/try/src/html_to_text.dart > File ...
6 years, 4 months ago (2014-08-04 11:34:55 UTC) #9
ahe
On 2014/08/04 11:34:55, aam wrote: > On 2014/08/04 08:59:55, ahe wrote: > > Thank you ...
6 years, 4 months ago (2014-08-04 11:44:53 UTC) #10
aam-me
On 2014/08/04 11:44:53, ahe wrote: > Yes. I understand how "buffer.write('\n');" seems to be a ...
6 years, 4 months ago (2014-08-04 12:11:33 UTC) #11
ahe
On 2014/08/04 12:11:33, aam wrote: > In IE top diagnostic span(at line 3 below) doesn't ...
6 years, 4 months ago (2014-08-04 14:21:42 UTC) #12
aam-me
On 2014/08/04 14:21:42, ahe wrote: > I have a new theory: <span style=\"font-weight: normal;\"> is ...
6 years, 4 months ago (2014-08-05 01:50:23 UTC) #13
ahe
On 2014/08/05 01:50:23, aam wrote: > Oh... Actually, style["display"] for this span is "none". isBlockElement ...
6 years, 4 months ago (2014-08-05 15:10:30 UTC) #14
aam-me
On 2014/08/05 15:10:30, ahe wrote: > > I did not realize importance of being a ...
6 years, 4 months ago (2014-08-06 02:25:56 UTC) #15
aam-me
Hi, Peter, just wanted to ping you regarding this CL - whether it's something worth ...
6 years, 4 months ago (2014-08-14 20:56:40 UTC) #16
ahe
LGTM! Can you enable Try Dart tests on IE11 now? See tests/try/try.status. https://codereview.chromium.org/408783002/diff/120001/site/try/src/interaction_manager.dart File site/try/src/interaction_manager.dart ...
6 years, 4 months ago (2014-08-19 09:22:30 UTC) #17
aam-me
Thanks for the review Peter! Should be all done. Please take a look at setting ...
6 years, 4 months ago (2014-08-19 12:09:00 UTC) #18
aam-me
https://codereview.chromium.org/408783002/diff/120001/site/try/src/interaction_manager.dart File site/try/src/interaction_manager.dart (right): https://codereview.chromium.org/408783002/diff/120001/site/try/src/interaction_manager.dart#newcode1313 site/try/src/interaction_manager.dart:1313: var selectionProxy = new hack.JsObject.fromBrowserObject(selection); On 2014/08/19 09:22:30, ahe ...
6 years, 4 months ago (2014-08-19 12:09:13 UTC) #19
ahe
LGTM! Awesome, thank you. https://codereview.chromium.org/408783002/diff/140001/site/try/src/user_option.dart File site/try/src/user_option.dart (right): https://codereview.chromium.org/408783002/diff/140001/site/try/src/user_option.dart#newcode39 site/try/src/user_option.dart:39: void setIfNotInitialized(dynamic newValueEvaluator()) { Remove ...
6 years, 4 months ago (2014-08-19 13:02:49 UTC) #20
aam-me
On 2014/08/19 13:02:49, ahe wrote: > https://codereview.chromium.org/408783002/diff/140001/tests/try/try.status#newcode9 > tests/try/try.status:9: [ $compiler != dart2js || ($runtime ...
6 years, 4 months ago (2014-08-20 00:43:49 UTC) #21
aam-me
Committed patchset #7 manually as r39394 (presubmit successful).
6 years, 4 months ago (2014-08-20 00:44:42 UTC) #22
aam-me
Hi Peter, change below must have caused a regress on Firefox as I broke workAroundFirefoxBug. ...
6 years, 3 months ago (2014-08-29 14:34:45 UTC) #23
ahe
https://codereview.chromium.org/408783002/diff/160001/site/try/src/interaction_manager.dart File site/try/src/interaction_manager.dart (right): https://codereview.chromium.org/408783002/diff/160001/site/try/src/interaction_manager.dart#newcode1316 site/try/src/interaction_manager.dart:1316: if (modify != null) { On 2014/08/29 14:34:45, aam ...
6 years, 3 months ago (2014-08-29 14:58:45 UTC) #24
aam-me
6 years, 3 months ago (2014-08-29 15:11:16 UTC) #25
Message was sent while issue was closed.
https://codereview.chromium.org/408783002/diff/160001/site/try/src/interactio...
File site/try/src/interaction_manager.dart (right):

https://codereview.chromium.org/408783002/diff/160001/site/try/src/interactio...
site/try/src/interaction_manager.dart:1316: if (modify != null) {
So the problem is that on Firefox this [modify] variable is null, therefore code
below that adjusts selection is not triggered.

I took this logic from [installErrorHandler] from native_helper.dart, but in
[installErrorHandler]'s case iframe is a Node, which is passed through:

===
  void installErrorHandler() {
...
    var iframeProxy = new hack.JsObject.fromBrowserObject(iframe);
    var contentWindowProxy = iframeProxy['contentWindow'];
    if (contentWindowProxy == null) {
... 
===

Powered by Google App Engine
This is Rietveld 408576698