Closed
Bug 871156
Opened 11 years ago
Closed 11 years ago
Ctrl+W no longer close the tab when the Web Console is focused
Categories
(DevTools :: Console, defect)
Tracking
(firefox22 unaffected, firefox23+ verified, firefox24+ verified)
VERIFIED
FIXED
Firefox 24
Tracking | Status | |
---|---|---|
firefox22 | --- | unaffected |
firefox23 | + | verified |
firefox24 | + | verified |
People
(Reporter: emk, Assigned: msucan)
References
Details
(Keywords: regression)
Attachments
(1 file)
(deleted),
patch
|
rcampbell
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Steps to reproduce:
1. Press Ctrl+Shift+K to open the Web Console.
2. Make sure the Web Console has the focus.
3. Press Ctrl+W.
Actual result:
Nothing happens.
Expected result:
The current tab should be closed. Firefox 20 worked as expected.
good=2013-04-09
bad=2013-04-10
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=b1fb34b07c17&tochange=9db46ddfb517
One of 3 bugs, probably:
Mihai Sucan — Bug 587757 - (global-console) Implement Browser Console; r=past,jwalker,Mossop
Mihai Sucan — Bug 808370 - Use the VariablesView in webconsole; r=past,vporof,paul
Mihai Sucan — Bug 783499 - Web Console should use the debugger API; r=past
status-firefox22:
--- → unaffected
tracking-firefox23:
--- → ?
Component: Developer Tools → Developer Tools: Console
Keywords: regression
Version: 20 Branch → 23 Branch
Updated•11 years ago
|
Blocks: global-console
Keywords: regressionwindow-wanted
Updated•11 years ago
|
Assignee | ||
Comment 2•11 years ago
|
||
Masatoshi, thank you for the bug report.
Loic, thanks for the regression window. This bug is caused by the global-console patch indeed.
I will submit a fix ASAP.
Assignee: nobody → mihai.sucan
Status: NEW → ASSIGNED
OS: Windows 8 → All
Hardware: x86_64 → All
Assignee | ||
Comment 3•11 years ago
|
||
This patch fixes the bug and adds a test to make sure Ctrl-W works as expected in the Web Console and in the Browser Console.
Try push: https://tbpl.mozilla.org/?tree=Try&rev=6f46fc3b114c
We will want this patch to land in Aurora as well.
Attachment #750396 -
Flags: review?(rcampbell)
Comment 4•11 years ago
|
||
Comment on attachment 750396 [details] [diff] [review]
proposed fix
Review of attachment 750396 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/devtools/webconsole/HUDService.jsm
@@ +548,5 @@
> let title = this.ui.rootElement.getAttribute("browserConsoleTitle");
> this.ui.rootElement.setAttribute("title", title);
> +
> + let cmd_close = this.ui.document.getElementById("cmd_close");
> + cmd_close.removeAttribute("disabled");
so, we disable cmd_close on general web consoles and enable it on browser console? makes sense.
::: browser/devtools/webconsole/test/browser_bug_871156_ctrlw_close_tab.js
@@ +62,5 @@
> +
> + EventUtils.synthesizeKey("w", { accelKey: true }, hud.iframeWindow);
> + });
> + }
> +}
nice.
::: toolkit/devtools/Console.jsm
@@ +188,5 @@
> }
> }
> + else if (type.match("Error$") ||
> + (typeof aThing.name == "string" &&
> + aThing.name.match("NS_ERROR_"))) {
did this have something to do with closing the tab or are you just adding some extra error catching smarts to the console?
Attachment #750396 -
Flags: review?(rcampbell) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Thanks for the r+!
(In reply to Rob Campbell [:rc] (:robcee) from comment #4)
> ::: toolkit/devtools/Console.jsm
> @@ +188,5 @@
> > }
> > }
> > + else if (type.match("Error$") ||
> > + (typeof aThing.name == "string" &&
> > + aThing.name.match("NS_ERROR_"))) {
>
> did this have something to do with closing the tab or are you just adding
> some extra error catching smarts to the console?
This change is unrelated to this bug. I had an XPCOM exception in my code while working on it and Console.jsm wasn't playing nice. I fixed it such that the exception is displayed correctly.
I wasn't sure if I should piggyback this change here or to create a separate bug. We do not generally want to spend too much time on Console.jsm, hence I decided that "slipping" gradual improvements is acceptable. I can split it into a separate patch if you want.
Assignee | ||
Comment 6•11 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Updated•11 years ago
|
relnote-firefox:
--- → 23+
Comment 7•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 24
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 750396 [details] [diff] [review]
proposed fix
[Approval Request Comment]
Bug caused by (feature/regressing bug #): regression caused by bug 587757
User impact if declined: Ctrl-W to close the current tab won't work if the user is in the web console.
Testing completed (on m-c, etc.): mochitest included, green try runs, landed in fx-team and m-c.
Risk to taking this patch (and alternatives if risky): minimal to none.
String or IDL/UUID changes made by this patch: none.
Thank you!
Attachment #750396 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #750396 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 9•11 years ago
|
||
Updated•11 years ago
|
relnote-firefox:
23+ → ---
Comment 10•11 years ago
|
||
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Firefox/24.0
Verified fixed on Firefox 23.0.1 (buildID: 20130814063812) and Firefox 24 beta 10 (buildID: 20130909203154).
Status: RESOLVED → VERIFIED
Keywords: verifyme
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•