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

Issue 9918014: Fix issue http://dartbug.com/2342 by checking document.readyState (Closed)

Created:
8 years, 8 months ago by kasperl
Modified:
8 years, 8 months ago
Reviewers:
vsm, sethladd
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix issue http://dartbug.com/2342 by checking document.readyState before adding the DOMContentLoaded event listening. Committed: https://code.google.com/p/dart/source/detail?r=5984

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -5 lines) Patch
M frog/gen.dart View 1 chunk +2 lines, -1 line 0 comments Download
M frog/minfrog View 3 chunks +5 lines, -3 lines 0 comments Download
M lib/compiler/implementation/emitter.dart View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
kasperl
8 years, 8 months ago (2012-03-29 16:02:52 UTC) #1
vsm
8 years, 8 months ago (2012-03-29 17:02:40 UTC) #2
LGTM

I have not been able to find anything in the spec that clarifies that
document.readyState is changed away from "loading" before DOMContentLoaded is
fired.  It does appear to be the behavior today, however.  (I just tested
locally on FF/Safari/Chrome on Mac and FF/Chrome on Linux.)

Powered by Google App Engine
This is Rietveld 408576698