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)
Tracking
()
NEW
People
(Reporter: igrkio, Unassigned)
Details
Attachments
(1 file)
|
1.47 KB,
text/html
|
Details |
Steps to reproduce:
- select file via <input type=file />
- store selected file to the variable
- perform window.history.pushState call
- try to URL.createObjectURL from the file, stored to variable in step 2
- created url is not valid
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
Comment 1•1 year ago
•
|
||
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?
Updated•1 year ago
|
Attachment #9405424 -
Attachment filename: file_1900358.txt → demo.html
Attachment #9405424 -
Attachment mime type: application/octet-stream → text/html
Updated•1 year ago
|
Status: UNCONFIRMED → NEW
Component: General → Browser Engine
Ever confirmed: true
Comment 2•1 year ago
|
||
Ok , i might find the problem....
Here , when location changed, the upload cache would be cleaned
Updated•1 year ago
|
Severity: -- → S3
Priority: -- → P3
You need to log in
before you can comment on or make changes to this bug.
Description
•