Quantum Debugger cache not refreshed but browser is when page reloaded
Categories
(DevTools :: Debugger, defect)
Tracking
(Not tracked)
People
(Reporter: grove_az, Unassigned)
Details
(Whiteboard: [specification][type:bug])
Attachments
(1 file)
633 bytes,
text/html
|
Details |
What did you do?
1. Created web page (only HTML and JavaScript) on C: drive and ran in Quantum browser with debugger open.
2. Changed something in the JavaScript and refreshed the web page (tried reloading, Ctrl + F5, and other refresh forces).
3. Noticed that the changes ran in the browser web page, but the Debugger showed the old code: i.e. the Debugger failed to refresh and was out of synch with the active web page.
What happened?
Debugger failed to refresh to show the code in the refreshed web page, but the page in the browser window was running using the active, refreshed web page code.
What should have happened?
The Debugger should have refreshed to show the code of the active web page.
Is there anything else we should know?
Here is my code; initially I had .addEventListener('input', optionsFuncn) and this did not work. After I changed this to 'click' instead, the page ran OK in the browser, but the Debugger still showed 'input' and not 'click'. I could not get the Debugger to refresh.
<input type="button" value="More Options" name="moreOptionsInp">
<div id="moreOptionsDiv">
</div>
<script>
document.getElementsByName("moreOptionsInp")[0].addEventListener('click', optionsFuncn);
function optionsFuncn() {
var div = document.getElementById("moreOptionsDiv");
var myString = 'Colour: <input id="myColour" type="text">\n' +
'Size: <input id="mySize" type="text">\n' +
'Care kit included: <input id="addCareKit" type="text">\n';
div.innerHTML += myString;
}
</script>
Updated•6 years ago
|
Updated•6 years ago
|
Comment 2•6 years ago
|
||
I can't reproduce the problem, here is what I am doing:
- Get the attached index.html file and load it into your browser using local web server.
- Open DevTools Toolbox (F12)
- Select the Debugger panel and click on index.html in the Sources tree (to see its source code)
- Open a text editor (your IDE) and change the file
For example:addEventListener('input', optionsFuncn);
->addEventListener('click', optionsFuncn);
- Refresh the page by clicking on the
Reload current page
button in Firefox toolbar or press F5 - The source code in debugger should be reloaded and show:
addEventListener('click', optionsFuncn);
Does it work for you if you follow these steps?
If you doing something a bit different, what exactly?
Does it work for you if you check Disable cache
checkbox in Network's panel toolbar?
Honza
Thanks for reviewing this issue, Jan.
I ran the index file as you suggested and then reset the 'input' to 'click' so that the function in the JS worked. Both the Source Code and the browser windows refreshed as expected, so I could not replicate the problem I was experiencing previously by trying to do so with the index.html file you sent. It worked both before and after enabling 'Disable Cache'.
It seems that the problem I was experiencing may happen only intermittently - if I can work out what triggers it I will apply a subsequent comment. When the issue was happening I ran the files in Chrome and that worked.
- Andrew
Comment 4•6 years ago
|
||
(In reply to grove_az from comment #3)
I ran the index file as you suggested and then reset the 'input' to 'click' so that the function in the JS worked. Both the Source Code and the browser windows refreshed as expected, so I could not replicate the problem I was experiencing previously by trying to do so with the index.html file you sent. It worked both before and after enabling 'Disable Cache'.
Thanks for the update Andrew!
It seems that the problem I was experiencing may happen only intermittently - if I can work out what triggers it I will apply a subsequent comment. When the issue was happening I ran the files in Chrome and that worked.
Excellent
I am marking the bug as Worksforme atm - just to clean up our bug list a bit.
Please reopen if you are able to reproduce the bug and figure out some STRs,
so we can reproduce it on our machines.
Honza
Description
•