Console Instant Value no refresh after page refresh
Categories
(DevTools :: Console, defect, P3)
Tracking
(firefox100 verified)
| Tracking | Status | |
|---|---|---|
| firefox100 | --- | verified |
People
(Reporter: dev.lukaszpolowczyk, Assigned: colin.cazabet, Mentored)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0
Steps to reproduce:
Open page https://8o7d7.csb.app/
- Open Firefox DevTools Console on this page
- Type
ciLS.lengthin Console - Instant Value is 1 - Refresh page
Actual results:
Instant Value show old value, still show 1. This is confusing.
Expected results:
Instant Value should show new value - 2.
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Updated•5 years ago
|
Updated•5 years ago
|
| Assignee | ||
Comment 2•4 years ago
|
||
Hello, I cannot reproduce this bug when i follow the steps in the previous message.
Has this bug been fixed ?
Thank you
Comment 3•4 years ago
|
||
I can still reproduce it.
Another STR is:
- Open a tab with
data:text/html,<meta charset=utf8><a href=https://mozilla.org>mozilla.org</a> - Open the console, and type
globalThis.location, without executing. (the instant evaluation isdata:text/html,<meta charset=utf8><a href=https://mozilla.org>mozilla.org</a>) - Click on the link in the page, that will navigates it to mozilla.org
-> the instant evaluation does not change, it still the data url when it should be mozilla.org now
We have an action we call already when we want the instant evaluation to be re-evaluated (https://searchfox.org/mozilla-central/search?q=updateInstantEvaluationResultForCurrentExpression&redirect=false)
So we could try to call it from here: https://searchfox.org/mozilla-central/rev/72c7cef167829b6f1e24cae216fa261934c455fc/devtools/client/webconsole/webconsole-ui.js#401-404 , using dispatch like in https://searchfox.org/mozilla-central/rev/72c7cef167829b6f1e24cae216fa261934c455fc/devtools/client/webconsole/webconsole-ui.js#189
Do you want to be assigned to this bug Colin?
| Assignee | ||
Comment 4•4 years ago
|
||
Okay i undertand now, yes I would like to give it a try please.
Thank you for the details it will help me a lot !
Comment 5•4 years ago
|
||
Merci Colin :) The bug is now yours
| Assignee | ||
Comment 6•3 years ago
|
||
Comment 8•3 years ago
|
||
| bugherder | ||
Updated•3 years ago
|
Reproducible on Firefox 99(20220330194208) on Linux x86_64(Ubuntu 20.04) using the steps from Comment 3. Verified as fixed on FIrefox 100.0b7(20220417185951) and Nightly 101.0a1(20220419093010) on the same OS.
Description
•