Closed
Bug 1134187
Opened 10 years ago
Closed 8 years ago
Browser Tools Javascript If Statement Logic
Categories
(DevTools :: Debugger, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1003554
People
(Reporter: dshcs2, Unassigned)
Details
Attachments
(1 file)
|
145.29 KB,
image/gif
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; Trident/7.0; .NET4.0E; .NET4.0C; Media Center PC 6.0; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; rv:11.0) like Gecko
Steps to reproduce:
I am looking at the code run when a place (Downloads) is clicked in the Library window using "Browser Tools". I have two breakpoints set in places.js#onPlacesListClick: (Debugger tab search argument). I set a breakpoint on and inside the if statement and the watch shows the if expression is false. I click the resume button and the breakpoint inside the if statement hits (image#2). This was happening in "Firefox 35.0.1" and I downloaded "Firefox Developer Edition 37.0.a2 (2015-02-18)", with no extensions loaded, and see it there too. Is this correct?
Actual results:
Logic flow of if statement seems to be incorrect, if statement body is executed when if test is false
Expected results:
The if statement body should not have been executed and the second breakpoint should not have hit.
| Reporter | ||
Comment 1•10 years ago
|
||
I see the same behavior with "FireBug 3.0.0-alpha.9" on "Firefox Developer Edition 37.0.a2 (2015-02-18)"
Comment 2•8 years ago
|
||
This is a dup of one of the stepping bugs. Offhand I'm not sure exactly which one,
but they were all fixed around the same time, and 1003554 has dups already, so I'm
somewhat arbitrarily choosing that one.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•