« Bugzilla Issues Index
#2601 — Loader.prototype.import should not throw if the module is already loaded
- bug_id:
2601
- creation_ts:
2014-04-01 06:47:00 -0700
- short_desc:
Loader.prototype.import should not throw if the module is already loaded
- delta_ts:
2015-03-16 14:41:30 -0700
- product:
Draft for 6th Edition
- component:
deferred features
- version:
Rev 22: January 20, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
WONTFIX
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Jason Orendorff
- assigned_to:
Allen Wirfs-Brock
- cc:
["dherman", "guybedford", "jorendorff", "samth"]
- commentid:
7494
- comment_count:
0
- who:
Jason Orendorff
- bug_when:
2014-04-01 06:47:12 -0700
Guy Bedford found this bug. Loader.prototype.import launches AsyncStartLoadPartwayThrough. But no load should be started if the requested module is already loaded or loading. Loader.prototype.import needs to check first, to see if the module is already loaded or loading.
The loading case is slightly tricky. The easiest fix is to add a Promise to each Load Record that resolves when the module is removed from loader.[[Loads]].
- commentid:
9066
- comment_count:
1
- who:
Guy Bedford
- bug_when:
2014-06-22 19:12:20 -0700
Moving this to modules.
- commentid:
13772
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2015-03-16 14:41:30 -0700
concerns old module spec.