Sdk: Dartium crashes if Dart app is inside iframe

Created on 29 Mar 2016  路  20Comments  路  Source: dart-lang/sdk

Description:

Dartium crashes if an application is in an iframe and a debugger breakpoint is placed anywhere in the code of that "iframed" application.

Affected versions

  • Version 45.0.2454.0 64 and 32 bit versions

Version 39.0.2171.0 (64-bit) _worked._ (1.13.0 dart version)

Reproduction:

Have these 2 HTML files and dart file:

<!-- index.html -->
<html><body>
<iframe src="dartapp.html"></iframe>                                                                                                     
</body></html>
<!-- dartapp.html -->
<html><body>
<script src="dartapp.dart" type="application/dart"></script>
</body></html>
// dartapp.dart
main() {
  print("I crash if you put a breakpoint on me");
}

Most helpful comment

If we could get a fix for this merged into stable, that would be great. It pretty much totally breaks users' ability to debug their tests using the test package.

All 20 comments

Are there any plans to fix this?

I'll take a look.

Thank you. Much appreciated.

If we could get a fix for this merged into stable, that would be great. It pretty much totally breaks users' ability to debug their tests using the test package.

@terrylucas Thanks for taking a look.

I too would like to see this in stable, for a good while now, I cannot debug in Dartium.

/cc @mit-mit

@terrylucas we need a fix in the next few days if this is to make it into the planned final 1.17 stable build next week.

CC @whesse

I have been heads down in code yellow I'll take a look today and talk to Jacob about possible solutions.

I've narrowed the problem down to the devToolsAgentClient not being set up properly in frame other than the main frame. Looking at a couple of possible solutions.

The problem has existed since 1.16

Meant to say since rolling to Chrome 45.

FYI: it looks like this happens in Dart 1.15, too.

Confirmed it does work in Dart 1.14.2.

We should fix this, but it is not blocking for 1.17 鈥撀爄t's been around for 2 releases.

Agree, it's not blocking the 1.17.0 release, but we could do a 1.17.1 patch release if needed. @daniel-v, @goderbauer can you elaborate on the need to get a stable patch for this?

@mit-mit sure. We consider this a high-impact issue as it slows down our development cycle significantly.
It takes about 7 minutes to compile our Dart application on the dev's machines so that they can debug in Chrome with some source map's available.

So if the question is if we need it: we do, very much so!

@kevmoo you are right, it's been around for 2 releases and I am very hopeful that it won't be in the next one.

Thank you from: Easyling

@daniel-v to be 100% clear.

We absolutely consider this critical. We will make all efforts to get a patch out as 1.17.1 or similar.

This is just how we handle bookkeeping for major releases.

1.17 is broken, but no more broken than 1.15.2 wrt this issue.

Thank you much for your patience here.

@kevmoo thanks for clearing it up and for the insight into your bookkeeping process.

I am happy with 1.17.1 or similar. :)

Have a fix CL sent out a build of Dartium to get banged on to make sure it works for more complex iFrame debugging.

Confirmed fixed (in private build) from Michael Goderbauer.

Confirmed fixed in Dart VM version: 1.17.0-dev.6.1 - mac.

Thanks, @terrylucas !

Resolved in 5a9b600 - master
Resolved in 25b5232 - v1.17 dev branch

Was this page helpful?
0 / 5 - 0 ratings