DescriptionFix selecting when opening an image from the download shelf.
After migrating fullPaths/URLs to Entries in the gallery, it was assumed that the 'entries' and 'selectedEntries' arrays contain a common subset of Entries by meaning of same references for the same images.
However, when opening from the shelf, the selected image's Entry reference is not contained in the 'entries' array. Therefore, we have to lookup by urls instead of references. In general, we should never compare Entries by references.
TEST=Tested manually on the download shelf.
BUG=331735
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243090
Patch Set 1 #Patch Set 2 : Fixed a comment. #Messages
Total messages: 4 (0 generated)
|