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

Issue 163733003: Let deferred load work from worker isolates. (Closed)

Created:
6 years, 10 months ago by sigurdm
Modified:
6 years, 10 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Let deferred load work from worker isolates. If we try to load a deferred library from a worker-isolate we cannot inject a script tag because we do not have access to the dom. Instead we make an XMLHttpRequest object and load the code with that. I tried to take some care of error handling introducing a new exception. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=32693 Committed: https://code.google.com/p/dart/source/detail?r=32695 Committed: https://code.google.com/p/dart/source/detail?r=32698 Committed: https://code.google.com/p/dart/source/detail?r=32700

Patch Set 1 #

Total comments: 12

Patch Set 2 : #

Patch Set 3 : Fix status file #

Total comments: 4

Patch Set 4 : Fix status file ... again. #

Patch Set 5 : Fix test, so it fails on the VM instead of timeout. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M tests/lib/async/deferred/deferred_fail_to_load_test.dart View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
sigurdm
6 years, 10 months ago (2014-02-13 15:12:12 UTC) #1
floitsch
LGTM. https://codereview.chromium.org/163733003/diff/1/sdk/lib/_internal/lib/async_patch.dart File sdk/lib/_internal/lib/async_patch.dart (right): https://codereview.chromium.org/163733003/diff/1/sdk/lib/_internal/lib/async_patch.dart#newcode6 sdk/lib/_internal/lib/async_patch.dart:6: import 'dart:_js_helper' show Primitives, convertDartClosureToJS; Keep one line ...
6 years, 10 months ago (2014-02-13 15:28:52 UTC) #2
sigurdm
https://codereview.chromium.org/163733003/diff/1/sdk/lib/_internal/lib/async_patch.dart File sdk/lib/_internal/lib/async_patch.dart (right): https://codereview.chromium.org/163733003/diff/1/sdk/lib/_internal/lib/async_patch.dart#newcode6 sdk/lib/_internal/lib/async_patch.dart:6: import 'dart:_js_helper' show Primitives, convertDartClosureToJS; On 2014/02/13 15:28:52, floitsch ...
6 years, 10 months ago (2014-02-14 12:08:05 UTC) #3
sigurdm
Committed patchset #2 manually as r32693 (presubmit successful).
6 years, 10 months ago (2014-02-14 12:13:09 UTC) #4
sigurdm
TBR
6 years, 10 months ago (2014-02-14 12:38:42 UTC) #5
sigurdm
Committed patchset #3 manually as r32695 (presubmit successful).
6 years, 10 months ago (2014-02-14 12:44:26 UTC) #6
Florian Schneider
https://codereview.chromium.org/163733003/diff/110009/tests/lib/lib.status File tests/lib/lib.status (right): https://codereview.chromium.org/163733003/diff/110009/tests/lib/lib.status#newcode276 tests/lib/lib.status:276: async/deferred/deferred_fail_to_load_test: Fail, OK If it is always failing, the ...
6 years, 10 months ago (2014-02-14 12:56:22 UTC) #7
sigurdm
https://codereview.chromium.org/163733003/diff/110009/tests/lib/lib.status File tests/lib/lib.status (right): https://codereview.chromium.org/163733003/diff/110009/tests/lib/lib.status#newcode276 tests/lib/lib.status:276: async/deferred/deferred_fail_to_load_test: Fail, OK On 2014/02/14 12:56:22, Florian Schneider wrote: ...
6 years, 10 months ago (2014-02-14 13:08:16 UTC) #8
sigurdm
Committed patchset #4 manually as r32698 (presubmit successful).
6 years, 10 months ago (2014-02-14 13:10:22 UTC) #9
sigurdm
TBR
6 years, 10 months ago (2014-02-14 13:34:32 UTC) #10
sigurdm
6 years, 10 months ago (2014-02-14 14:04:28 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 manually as r32700 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698