Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(files): Adjust dropservice to work with Blink engine #44254

Merged
merged 2 commits into from Mar 18, 2024

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, szaimen and emoral435 and removed request for a team 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)

…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 <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux merged commit 92df4af into master Mar 18, 2024
104 checks passed
@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]
3 participants