Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Mar 17, 2024

Summary

Due to handling of the data transfer object in Blink the datatransfer.items list is cleared when accessing the entries props.
This happens due to GC of async function calls, so to fix this we simply cache the list to keep a reference to the values.

Also added Cypress tests for this behavior.

Checklist

@susnux susnux added this to the Nextcloud 29 milestone Mar 17, 2024
@susnux susnux requested a review from a team March 17, 2024 01:08
@susnux susnux requested a review from skjnldsv as a code owner March 17, 2024 01:08
@susnux susnux requested review from Pytal, emoral435 and szaimen and removed request for a team March 17, 2024 01:08
@susnux susnux force-pushed the fix/drop-service-chrome branch from a7855b5 to e333ced Compare March 17, 2024 01:08
@susnux
Copy link
Contributor Author

susnux commented Mar 17, 2024

/backport to stable28

Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works :)
(but didnt review the code)

susnux added 2 commits March 18, 2024 13:05
…edge)

The datatransfer items list is cleared on Blink after the first access to an inner prop due to async handling and GC.

Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux force-pushed the fix/drop-service-chrome branch from e333ced to f99c580 Compare March 18, 2024 12:23
@susnux susnux merged commit 92df4af into master Mar 18, 2024
@susnux susnux deleted the fix/drop-service-chrome branch March 18, 2024 12:49
@Altahrim Altahrim mentioned this pull request Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: When drag and drop multiple files, only one is loaded [blink engine]

4 participants