Join us to show up for other Firefox users 🦊. Earn fun badges and Mozilla swag vouchers! Find out more: https://mzl.la/askafox150

Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

To paste an image in Firefox for Android, what javascript and HTML works? I tried every possible option, get the event but no data.

  • Không có trả lời
  • 0 gặp vấn đề này
  • 73 lượt xem
  • Đang mở

This is a problem with Firefox for Android security policies. Because everything works as expected

  • in Firefox Desktop Linux
  • Chrome for Android
  • pasting text instead of an image in Firefox for Android.

I'm trying to paste images in my own web app, in my own Android phone.

  • I get the "onpaste" event and clipboardData field as described in https://developer.mozilla.org/en-US/docs/Web/API/Element/paste_event.
  • HOWEVER ONLY in Firefox for Android, and only when I paste an image, both the "items" and "files" lists in the clipboardData field are empty, with length=0.
  • The app is served from an httpS site with a certificate Firefox for Android recognizes as valid.

I didn't find any way to enable clipboard access from the Settings UI for my own site.

It would be sad if Firefox ends up pushing users to Chrome because building our own apps gets more difficult in Firefox than Google's walled garden :'(

This is a problem with Firefox for Android security policies. Because everything works as expected * in Firefox Desktop Linux * Chrome for Android * pasting text instead of an image in Firefox for Android. I'm trying to paste images in my own web app, in my own Android phone. * I get the "onpaste" event and clipboardData field as described in https://developer.mozilla.org/en-US/docs/Web/API/Element/paste_event. * HOWEVER ONLY in Firefox for Android, and only when I paste an image, both the "items" and "files" lists in the clipboardData field are empty, with length=0. * The app is served from an httpS site with a certificate Firefox for Android recognizes as valid. I didn't find any way to enable clipboard access from the Settings UI for my own site. It would be sad if Firefox ends up pushing users to Chrome because building our own apps gets more difficult in Firefox than Google's walled garden :'(

Bạn phải đăng nhập vào tài khoản của bạn để trả lời bài viết. Vui lòng bắt đầu một câu hỏi mới, nếu bạn chưa có tài khoản.