Closed Bug 1598908 Opened 6 years ago Closed 6 years ago

Invoking localStorage methods causes an exception to be thrown

Categories

(Firefox for Android Graveyard :: General, defect)

Firefox 68
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: jordan83, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:70.0) Gecko/20100101 Firefox/70.0

Steps to reproduce:

I noticed that a website of mine was not loading properly and I decided to investigate.

After noticing that the code was breaking on localStorage access I made this test

  1. loaded mozilla.org on a tab on Firefox on My OnePlus7 phone
  2. Remotely debugged using Firefox on my pc
  3. manually tested lines such as localStorage.getItem("test") or localStorage.setItem("test",1)
  4. every time I get an error message such as
    Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: debugger eval code :: <TOP_LEVEL> :: line 1" data: no]

Actual results:

accessing localStorage causes errors

Expected results:

accessing localStorage should not cause error

Summary: Invoking localStorage methods cause an exception to be thrown → Invoking localStorage methods causes an exception to be thrown

Hi and thank you for this report!
I tested the scenario from Description on Firefox Release 68.2.1 with OnePlus 5T (Android 9) and on Firefox Release 70.0.1 with Windows 10. I did not reproduced the issue, accessing localStorage does not cause errors.
Please provide the following information:

  • Firefox Release version used on mobile and on desktop;
  • Android version;
  • any additional steps to reproduce the issue;
  • a video would also be useful.
    Thanks!
Flags: needinfo?(jordan83)

Hello Jan, can you take a look at this ticket.
it probably has something to do with the LSNG feature who was disabled.

Flags: needinfo?(jvarga)

We need more information about actual product and version. It's not clear to me if the bug happened with Firefox Desktop or Firefox for Android.

Flags: needinfo?(jvarga)

Hello

(In reply to Eliza Balazs from comment #1)

Hi and thank you for this report!
I tested the scenario from Description on Firefox Release 68.2.1 with OnePlus 5T (Android 9) and on Firefox Release 70.0.1 with Windows 10. I did not reproduced the issue, accessing localStorage does not cause errors.

I don't know exactly what happened but indeed today I am not able to reproduce the error on my device.

Please provide the following information:

  • Firefox Release version used on mobile and on desktop;

On mobile I'm using Firefox for Android 68.2.1
On my desktop I'm using Firefox 70.0.1

  • Android version;
    Android 10, OxygenOS 10.0.1.GM57BA
  • any additional steps to reproduce the issue;
  • a video would also be useful.

Unfortunately I cannot reproduce the bug anymore, however yesterday I had investigated it using remote debugging.
I would also add that during the night usually I switch off my phone, hence could be that the bug conditions disappeared because of that.

Flags: needinfo?(jordan83)

Hello!
Due to Comment 4, I will close this as Worksforme and if this issue is reproducible in the future, feel free to reopen it. Thanks!

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.