Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

The Screenshots button is not grayed out when it is inactive (Windows and Linux) #2708

Closed
SoftVision-CosminMuntean opened this issue Apr 19, 2017 · 7 comments
Assignees
Milestone

Comments

@SoftVision-CosminMuntean

[Notes]:

  • On Mac Os, the Screenshots button is grayed out when the button is inactive.

[Affected versions]:

  • Nightly 55.0a1 (Build ID:20170418030220)

[Affected Platforms]:

  • All Windows
  • All Linux

[Prerequisites]:

  • Have the latest Nightly build and the "extensions.screenshots.system-disabled" pref is set to false.
  • The Onbarding tour was already visited.

[Steps to reproduce]:

  1. Open the browser with the profile from prerequisite.
  2. Navigate to any of "about:*" page.
  3. Observe the Screenshots button from browser toolbar.

[Expected result]:

  • The Screenshots button is inactive and it is grayed out.

[Actual result]:

  • The Screenshots button is inactive but the button is not grayed out.

[Additional Notes]:

  • Here is a screen shot with the issue:
    inactive
@jaredhirsch
Copy link
Member

Hmm. The button is actually supposed to be enabled on about:blank and about:newtab, as well as the activity stream newtab page. If I manually load those URLs, the button is enabled, and clicking the button goes to screenshots.firefox.com, as intended.

However, the button seems to be disabled on the nightly new tab page--maybe it has some other about: URL?

The button seems to be correctly disabled on other about: pages, like about:config, about:performance, about:addons.

I'll investigate the nightly new tab page URL, but I'd say this is definitely not a blocker.

@SoftVision-CosminMuntean
Copy link
Author

The button seems to be correctly disabled on other about: pages, like about:config, about:performance, about:addons.

Yes, the button is correctly disabled, but on Windows and Linux the button is not grayed out. On those pages on Mac Os the Screenshots button is grayed out.
In the attached screenshots you can see that on Windows if you are on "about:home", the Screenshots button has a black color even if it is disabled. On Mac Os you can see that the Screenshots button is grayed and it is disabled.

@jaredhirsch
Copy link
Member

on Windows and Linux the button is not grayed out

Hmm, I think this might be the bug! I wonder if it's a WebExtension bug or something with how we toggle the CSS.

We probably should also enable the button on about:home, I'll file a separate bug for that.

@jaredhirsch
Copy link
Member

@SoftVision-CosminMuntean Sorry, I just realized this was the bug, I missed the title :-P

@jaredhirsch
Copy link
Member

Putting back the gamma blocker tag, sorry for the bug churn

@jaredhirsch
Copy link
Member

It turns out that it's a known issue that WebExtension buttons aren't visually changed when disabled on Windows and Linux :-\

https://bugzilla.mozilla.org/show_bug.cgi?id=1204609

We should be able to fix this easily enough, just need to add setIconActive calls next to the enable / disable calls inside the onActivated and onUpdated tab listeners inside background/main. I can put a PR together quickly, should only be a couple of lines.

@ckprice ckprice added this to the Sprint 54.5 milestone Apr 19, 2017
@ianb ianb closed this as completed in b1415f6 Apr 20, 2017
ianb added a commit that referenced this issue Apr 20, 2017
Fix #2708, manually dim toolbar button when disabled
@SoftVision-CosminMuntean
Copy link
Author

I have retested this issue and is no longer reproducible using the latest Screenshots custom build (dev and stage servers).
The Screenshots button is grayed when it is inactive on "about:*" pages. Tested on Windows and Linux. Marking as verified.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants