Closed Bug 785910 Opened 12 years ago Closed 12 years ago

[Developer Toolbar] Inspector button and Web Console buttons remain selected after opening a new tab

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(firefox16 verified, firefox17 verified)

VERIFIED FIXED
Firefox 18
Tracking Status
firefox16 --- verified
firefox17 --- verified

People

(Reporter: virgil.dicu, Unassigned)

References

Details

Attachments

(2 files)

Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Firefox/17.0

1. Load any page in a Firefox tab.
2. Select the Inspect button in the developer toolbar.
3. Open a new tab.

Actual result: the inspector button is highlighted while the Inspector is not selected. 

In addition, the same happens with the Web Console if:
1. Select the Inspector button.
2. Select, deselect, select the web console button.
3. Open a new tab.
Target Milestone: --- → Firefox 18
I can't reproduce.

By "Select the Inspect button", you mean "click the inspect button"?

Do you use the menubar as well?
(In reply to Paul Rouget [:paul] from comment #1)
> By "Select the Inspect button", you mean "click the inspect button"?
Yes.

Happens with/without menubar - verified with latest Nightly.

1. Load any page in a Firefox tab.
2. Click the Inspect button in the developer toolbar.
3. Open a new tab.

The Inspector button is selected in the new tab while Inspector mode isn't active (no 3d view/style buttons)
I can reproduce with a clean profile.

I'll investigate.
I can't reproduce the 2nd STR.
I can constantly reproduce with the steps from comment 0:

1. Click the Inspector button in the developer toolbar.
2. Click the web console button from the developer toolbar.
3. Deselect the web console in the developer toolbar.
4. Click the web console button in the developer toolbar.
5. Open a new tab.

Both buttons: Inspector and Web Console are selected. None of the tools is open.
Can you please try something:

Reproduce this bug. Then just click on a new window (Firefox window, or any window, like a terminal or you mail client). Does it fix the problem?

Do you think you could get me a regression window?

Thank you.
(In reply to Paul Rouget [:paul] from comment #6)
> Can you please try something:
> 
> Reproduce this bug. Then just click on a new window (Firefox window, or any
> window, like a terminal or you mail client). Does it fix the problem?

Yes it does!

(In reply to Paul Rouget [:paul] from comment #6)
> Do you think you could get me a regression window?
Sure, seems it's the same regression as in bug 784289:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=6d8456a77e57&tochange=3a05d298599e

Three dev tool bugs in that range. There are no tinderbox builds available for that date anymore, but I can build and find the culprit if that's needed.
Thank you! This is very helpful.
Is it osx only?
(In reply to Paul Rouget [:paul] from comment #9)
> Is it osx only?
It occurs across platforms. Checked Windows, Mac, Ubuntu.

Bisecting leads me to:
changeset: 99862:01929e390ba5
parent: 99773:e1dcf7c892d1 
parent: 99861:7b3b0c5c9933 
user: Tim Taubert <ttaubert@mozilla.com> 
date: Thu Jul 19 16:38:20 2012 +0200 summary: merge m-c to fx-team

That's expected, as it contains dev tools patches merged to fx team, but while building on inbound with the last one (the linux backout:7b3b0c5c9933), I can't reproduce.
Attached file Screencast
Attached patch v1Splinter Review
Attachment #658017 - Flags: review?(jwalker)
That should do it.

Virgil, I'll ask you to re-test this with these builds (once available):
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/prouget@mozilla.com-68247bc17811
(In reply to Paul Rouget [:paul] from comment #14)
> That should do it.
> 
> Virgil, I'll ask you to re-test this with these builds (once available):
> http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/prouget@mozilla.
> com-68247bc17811

Checked with Linux build. No problems now with remembering state across tabs/windows and Tools menu/Dev toolbar.

Works great and also fixes the issue in bug 784289.
Attachment #658017 - Flags: review?(jwalker) → review+
Whiteboard: [land-in-fx-team]
https://hg.mozilla.org/integration/fx-team/rev/83ba44d1231c
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/83ba44d1231c
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Comment on attachment 658017 [details] [diff] [review]
v1

[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 765564
User impact if declined: Button checked when they should not be checked
Testing completed (on m-c, etc.): m-c
Risk to taking this patch (and alternatives if risky): low
String or UUID changes made by this patch: no
Attachment #658017 - Flags: approval-mozilla-aurora?
Attachment #658017 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/18.0 Firefox/18.0

Verified on Nightly with Ubuntu, Windows 7 and Mac OS. 

Does it make sense to port this to beta as well? F16 is still affected.
Status: RESOLVED → VERIFIED
Comment on attachment 658017 [details] [diff] [review]
v1

[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 765564
User impact if declined: Button checked when they should not be checked
Testing completed (on m-c, etc.): m-c, aurora
Risk to taking this patch (and alternatives if risky): low
String or UUID changes made by this patch: no
Attachment #658017 - Flags: approval-mozilla-beta?
Attachment #658017 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20100101 Firefox/16.0
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Firefox/17.0

Also verified on F16 beta and F17 Aurora
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: