Closed Bug 1505461 Opened 6 years ago Closed 6 years ago

Inconsistent localStorage state in PrivateBrowsing

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1453699
Tracking Status
firefox65 --- affected

People

(Reporter: baku, Unassigned)

Details

STR:

1. Create this simple page and expose it as http://localhost:8000/a.html

<script>
setInterval(() => {
  console.log(new Date(), localStorage.foo);
}, 1000);
</script>

2. open http://localhost:8000/a.html in private browsing. The console shows: date + undefined.

3. using the console, run: localStorage.foo = "42". The console will show: date + 42.

4. open another private tab with http://localhost:8000/a.html. The console should show date + 42, but it shows: date + undefined

5. in the second tab, do: localStorage.foo = "43". The console will show: date + 43 in the first and in the second tab.
Flags: needinfo?(bugmail)
Yes, this is the same issue faced by session-only mode and will be addressed by LocalStorage NextGen.  The current trunk is still basically the e10s propagation logic you added plus :janv's migration of things to PBackground plus :janv's filtering work.  Bootstrap state for trunk LS comes from the database, and there is no database-backed storage for session-only or private-background, just propagation.
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(bugmail)
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.