Open Bug 1905486 Opened 3 months ago Updated 6 days ago

FileReader errors with "Node was not found" after history.pushState()

Categories

(GeckoView :: General, defect)

Firefox 129
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: ykiuchi150309, Unassigned, NeedInfo)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fxdroid])

Attachments

(1 file)

Attached file readasarraybuffer.html

Steps to reproduce:

Operating System: Android 10

Firefox version:
129.0a1 (Build #2016029231), hg-3fe6c2aa8e56+
GV: 129.0a1-20240627093119
AS: 129.20240625050253

I created a web page (attached) that has an <input type=file /> element. When the user picks a file with the input element, the web page calls window.history.pushState() and then reads the content of the file using FileReader.prototype.readAsArrayBuffer().

I served the web page with a basic HTTP server and accessed it from Firefox on Android. Then I clicked on the input element, and selected a file.

Actual results:

The FileReader errored with a DOMException whose message is "Node was not found".

Expected results:

The FileReader emits the load event and has the result as an array buffer.

The web page works as expected on other browsers/platforms including:

  • Firefox on macOS
  • Chrome on Android

Sorry for taking a long time to confirm.

Indeed this is Android specific, as I cannot reproduce this on Windows/Linux/macOS but only on Android. Thus I'm moving this to Fenix as they would be better debugging Android issues.

Hi Jonathan, are you the right person for debugging Android filesystem issue? If not can you pass this to the right person? Thank you!

Component: DOM: File → General
Flags: needinfo?(jonalmeida942)
Product: Core → Fenix

Sorry as well for the slow turnaround. I took a peek at it too and nothing immediate comes to me. As a quick sanity check, I can reproduce this too even after giving Fenix file system permissions to access the file system, but that doesn't seem like the cause.

GVE doesn't have any of the appropriate delegates attached so we can't compare it there, but I'm fairly certain this a GV bug.

Flags: needinfo?(jonalmeida942)
Product: Fenix → GeckoView

The severity field is not set for this bug.
:owlish, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(bugzeeeeee)

Kagami, do you get the same regression window on this as bug 1898524?

Flags: needinfo?(krosylight)

Yes, the same range. Arturo, can you check this one too? Thanks!

Flags: needinfo?(krosylight) → needinfo?(amejiamarmol)

Sure,
No problem, it's the same root cause as bug 1898524. We put patch that will address the issue https://phabricator.services.mozilla.com/D222988

Flags: needinfo?(amejiamarmol)
Keywords: regression
Whiteboard: [fxdroid]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: