Closed Bug 1022765 Opened 10 years ago Closed 9 years ago

Esc doesn't open the console on the first try

Categories

(DevTools :: Framework, defect, P1)

16 Branch
x86
macOS
defect

Tracking

(firefox40 verified)

VERIFIED FIXED
Firefox 40
Tracking Status
firefox40 --- verified

People

(Reporter: canuckistani, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

(Whiteboard: [polish-backlog][bugday-20150610])

Attachments

(1 file)

STR:

1. open the inspector
2. click on a node in the markup view to select it
3. hit Esc to call up the console

Results:

* the first one fails, but the second one works. Subsequent attempts always work the first time until you click back into the inspector

Expected:

* hitting escape should always toggle the console wen you are in a tool pane that isn't the console ( this works on chrome )
Whiteboard: [devedition-40]
Priority: -- → P1
Assignee: nobody → poirot.alex
In tooltip.js, we shouldn't set a `() => false` rejection listener as it makes the returned promise to *resolve* instead of *rejects*.

http://mxr.mozilla.org/mozilla-central/source/browser/devtools/shared/widgets/Tooltip.js#422
Here, we are expecting the promise to *reject* when we don't want to show the tooltip.

At the end, we were unexpectedly trying to show this tooltip. It was invisible, we the Tooltip code from here:
  http://mxr.mozilla.org/mozilla-central/source/browser/devtools/shared/widgets/Tooltip.js#207
was dismissing the first ESC keypress.
Attachment #8591714 - Flags: review?(pbrosset)
Oh, this is in fact a duplicate of bug 988278 which I fixed last week :|
I didn't fix it the same way though. My approach was that the tooltip shouldn't even try to handle keypress events if it's hidden: https://hg.mozilla.org/mozilla-central/diff/67683aaa2041/browser/devtools/shared/widgets/Tooltip.js
This fix landed on m-c yesterday.
(In reply to Patrick Brosset [:pbrosset] [:patrick] from comment #3)
> I didn't fix it the same way though. My approach was that the tooltip
> shouldn't even try to handle keypress events if it's hidden:

The offending tooltip isn't hidden by the time we hit ESC in this STR.
Attachment #8591714 - Flags: review?(pbrosset) → review+
Status: NEW → ASSIGNED
Component: Developer Tools → Developer Tools: Framework
https://hg.mozilla.org/mozilla-central/rev/24f64f2412f0
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [devedition-40][fixed-in-fx-team] → [devedition-40]
Target Milestone: --- → Firefox 40
Blocks: 1157201
QA Whiteboard: [good first verify]
Followed STR in Windows 7 32 Bit
Version: 40.0a2
Build ID: 20150513004008
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:40.0) Gecko/20100101 Firefox/40.0
Status:--> Resolved Fixed
I have reproduced this bug with Nightly 32.0a1 (2014-06-09)  with instruction from comment 0 and Linux x86.     

Verified as fixed with latest Nightly 41.0a1 (2015-06-09) (Build ID:20150609081916)

Mozilla/5.0 (X11; Linux i686; rv:41.0) Gecko/20100101 Firefox/41.0
As per Comment 8 and Comment 9, The bug is fixed now!
Status: RESOLVED → VERIFIED
QA Whiteboard: [good first verify] → [good first verify][bugday-20150610]
Whiteboard: [devedition-40] → [devedition-40][bugday-20150610]
Whiteboard: [devedition-40][bugday-20150610] → [polish-backlog][bugday-20150610]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: