Debugger "watch expression" of jQuery expression might cause DOMException, evaluation in console works though
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(Not tracked)
People
(Reporter: thecodemonkey86, Unassigned)
References
Details
Attachments
(1 file)
3.78 KB,
application/x-zip-compressed
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Steps to reproduce:
I added javascript (jQuery) expression of custom script to watched expressions (don't know if that's the correct name in English localization) in debugger. In my case that expression was $(item).data("fontSizeCaption"), script looks something like this
// ... more code here ...
function getStampsJson(pageId) {
let arrStamps = [];
items.each(function (index,item){
let tplId = $(item).data("templateId");
let fontSizeCaption = $(item).data("fontSizeCaption");
// ... more code here ...
});
// ... more code here ...
return arrStamps;
}
// ... more code here ...
Actual results:
In watched expressions the debugger reports a DOMException, evaluation in console of the exact same expression prints the correct value though
Expected results:
correct value in debugger as well, same value as printed in console
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Updated•1 year ago
|
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Debugger' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•1 year ago
|
||
Thanks for the report, might be related to Bug 1876297.
Comment 3•9 months ago
|
||
Any news on this one?
Comment 4•9 months ago
|
||
(In reply to bernhard.stoecker from comment #3)
Any news on this one?
I think the issue was fixed in Firefox 124 Bug 1876297 .
At least if I go on https://jquery.com/ , and add a watch expression like $("ul.projects > li").html()
, I don't get an error (but the same value as I'm getting from the console evaluation).
Are you seeing this issue yourself? If so, can you check your Firefox version, and if it's 124 or more, can you share a URL/projects with steps to reproduce the issue?
Comment 5•3 months ago
|
||
Clear a needinfo that is pending on an inactive user.
Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE
.
For more information, please visit BugBot documentation.
Comment 6•3 months ago
|
||
(In reply to BugBot [:suhaib / :marco/ :calixte] from comment #5)
Clear a needinfo that is pending on an inactive user.
Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as
INCOMPLETE
.For more information, please visit BugBot documentation.
Feel free to close
Comment 7•3 months ago
|
||
for clarification: I'm the original reporter (thecodemonkey86, which is my private account). You can close the issue as Fixed
Updated•3 months ago
|
Description
•