| Index: chrome/browser/resources/file_manager/audio_player/js/audio_player.js
|
| diff --git a/chrome/browser/resources/file_manager/audio_player/js/audio_player.js b/chrome/browser/resources/file_manager/audio_player/js/audio_player.js
|
| index 861a12a53e5751c3bdfc6c305882bb4296004575..376d226c27efc47a227485aef3574876f881be45 100644
|
| --- a/chrome/browser/resources/file_manager/audio_player/js/audio_player.js
|
| +++ b/chrome/browser/resources/file_manager/audio_player/js/audio_player.js
|
| @@ -121,6 +121,10 @@ AudioPlayer.prototype.load = function(playlist) {
|
| this.trackListItems_.push(new AudioPlayer.TrackInfo(entry, onClick));
|
| }
|
|
|
| + // Makes it sure that the handler of the track list is called, before the
|
| + // handler of the track index.
|
| + Platform.performMicrotaskCheckpoint();
|
| +
|
| this.select_(position, !!time);
|
|
|
| // Load the selected track metadata first, then load the rest.
|
|
|