Open Bug 1900358 Opened 1 year ago Updated 1 year ago

File selected by user becomes unavailable after history.pushState in Firefox for Android

Categories

(Firefox for Android :: Browser Engine, defect, P3)

Firefox 126
All
Android
defect

Tracking

()

People

(Reporter: igrkio, Unassigned)

Details

Attachments

(1 file)

Steps to reproduce:

  1. select file via <input type=file />
  2. store selected file to the variable
  3. perform window.history.pushState call
  4. try to URL.createObjectURL from the file, stored to variable in step 2
  5. created url is not valid

https://playcode.io/1850044

Actual results:

Url created via URL.createObjectURL from file stored in variable is not valid

Expected results:

URL.createObjectURL should create valid url from file stored in variable

Summary: File selected by user becomes unavailable after history.pushState → File selected by user becomes unavailable after history.pushState in Firefox for Android
Attached file demo.html

I made some slight changes to make the page work under GeckoViewExample.

Under GeckoViewExample , the image could be viewed after pushState.

From the document of createObjectURL

>The URL lifetime is tied to the document in the window on which it was created.

So i guess in Firefox for Android, pushState might cause the document changing?

Attachment #9405424 - Attachment filename: file_1900358.txt → demo.html
Attachment #9405424 - Attachment mime type: application/octet-stream → text/html
Status: UNCONFIRMED → NEW
Component: General → Browser Engine
Ever confirmed: true
Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: