Closed Bug 1876696 Opened 1 year ago Closed 3 months ago

Debugger "watch expression" of jQuery expression might cause DOMException, evaluation in console works though

Categories

(DevTools :: Debugger, defect, P2)

Firefox 122
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1876297

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

Summary: Debugger "watch expression" of jQuery expression might cause DOMEexception, evalation in console works though → Debugger "watch expression" of jQuery expression might cause DOMException, evalation in console works though
Summary: Debugger "watch expression" of jQuery expression might cause DOMException, evalation in console works though → Debugger "watch expression" of jQuery expression might cause DOMException, evaluation in console works though

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.

Component: Untriaged → Debugger
Product: Firefox → DevTools

Thanks for the report, might be related to Bug 1876297.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P2
See Also: → 1876297

Any news on this one?

(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?

Flags: needinfo?(bernhard.stoecker)

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.

Flags: needinfo?(bernhard.stoecker)

(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

for clarification: I'm the original reporter (thecodemonkey86, which is my private account). You can close the issue as Fixed

Status: NEW → RESOLVED
Closed: 3 months ago
Duplicate of bug: 1876297
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: