Tested that this reproduces with the composable toolbar while it isn't an issue with the new toolbar.
Deobfuscated stack trace from my device:
> java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 1515140 bytes
at android.content.ClipboardManager.setPrimaryClip(ClipboardManager.java:192)
at androidx.compose.ui.platform.AndroidClipboard.setClipEntry(AndroidClipboard.android.kt:29)
at mozilla.components.compose.browser.toolbar.ui.PasteSanitizerTextToolbar$sanitizeAvailableTextClip$1.invokeSuspend(InlineAutocompleteTextField.kt:180)
Don't see the value in supporting this or very long URLs, do remember issues with long data URLs also in the past, we should probably catch the exception and prevent it from crashing the app first. Optionally we can show a message to the user about the operation failing.
Bug 2006921 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Thank you for the all the details @Kestrel!
Tested that this reproduces with the composable toolbar while it isn't an issue with the new toolbar.
Deobfuscated stack trace from my device:
> java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 1515140 bytes
at android.content.ClipboardManager.setPrimaryClip(ClipboardManager.java:192)
at androidx.compose.ui.platform.AndroidClipboard.setClipEntry(AndroidClipboard.android.kt:29)
at mozilla.components.compose.browser.toolbar.ui.PasteSanitizerTextToolbar$sanitizeAvailableTextClip$1.invokeSuspend(InlineAutocompleteTextField.kt:180)
Don't see the value in supporting this or very long URLs, do remember issues with long data URLs also in the past, we should probably catch the exception and prevent it from crashing the app first. Optionally we can show a message to the user about the operation failing.