Closed
Bug 588655
Opened 14 years ago
Closed 14 years ago
When in private browsing mode, make the Firefox button purple
Categories
(Firefox :: Private Browsing, defect)
Tracking
()
RESOLVED
FIXED
Firefox 4.0b7
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: faaborg, Assigned: ehsan.akhgari)
References
Details
(Keywords: dev-doc-complete, ux-mode-error)
Attachments
(3 files, 12 obsolete files)
(deleted),
image/png
|
Details | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
As an ambient and peripheral cue that the user is in private browsing mode, we should adjust the color of the Firefox button on Windows 7 and Vista from orange to purple. (purple is used on the masquerade mask in the content area message, and doesn't have any other semantic meaning in the product other than privacy).
Additionally we should alter the text of the button to "Firefox (Private)"
Any other modifications to the theme (like darkening the toolbars) will be done in addition to this change, but this is the minimum change for indicating the state of the browser.
A specific non-goal of this bug is over the shoulder screen privacy. We are assuming that if you are using private browsing mode, you are probably not in a situation where other people can view your computer monitor (since the contents of content area are being shown just as much as the firefox button).
We are however, very interested in giving users a reminder that Firefox is not storing any information about their activities on the Web, and we are interested in significantly reducing the number of mode errors that users are currently experiencing (staying in Firefox for long periods of time because they forget to exit).
(listing this under content area notifications, which isn't entirely accurate since it persists after we show about:privatebrowsing, but I didn't really have any other place to put it)
Reporter | ||
Comment 1•14 years ago
|
||
Nominating blocking since there is no other indicator that you are in private browsing mode on Windows Vista/7. The change should be pretty minimal since we have a css selector for private browsing.
blocking2.0: --- → ?
Comment 2•14 years ago
|
||
If i may request: On old PB mockup there was PB icon as indicator. However I suggest using it not only as a indicator but as off switch as well, that could be placed inside FXB. I tried this "feature" in StrataBuddy and I can say it is very comfortable.
Assignee | ||
Comment 4•14 years ago
|
||
(In reply to comment #3)
> Ehsan: can you take this?
Sure.
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Version: unspecified → Trunk
Assignee | ||
Comment 5•14 years ago
|
||
I need to know which color to use as the purple background. The current orange color we use is rgb(228,120,14).
Keywords: uiwanted
Comment 6•14 years ago
|
||
Make the Firefox Button purple when in Private Browsing mode.
Assignee: ehsan → shorlander
Attachment #472932 -
Flags: review?(dao)
Comment 7•14 years ago
|
||
Comment 8•14 years ago
|
||
Comment on attachment 472932 [details] [diff] [review]
Purple Firefox Button in PBM - 01
>diff --git a/browser/themes/winstripe/browser/browser-aero.css b/browser/themes/winstripe/browser/browser-aero.css
>--- a/browser/themes/winstripe/browser/browser-aero.css
>+++ b/browser/themes/winstripe/browser/browser-aero.css
>@@ -25,16 +25,22 @@
> border-top: none;
> -moz-border-left-colors: rgba(255,255,255,.5) rgba(83,42,6,.9);
> -moz-border-bottom-colors: rgba(255,255,255,.5) rgba(83,42,6,.9);
> -moz-border-right-colors: rgba(255,255,255,.5) rgba(83,42,6,.9);
> -moz-box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,
> 0 0 2px 1px rgba(255,255,255,.25) inset;
> }
>
>+ [browsingmode=private] #appmenu-button {
Use #main-window[browsingmode=private]
Do we still need some other, more accessible feedback?
Attachment #472932 -
Flags: review?(dao)
Comment 9•14 years ago
|
||
(In reply to comment #8)
> Do we still need some other, more accessible feedback?
It would be nice to tag the button with text in some way. Maybe "(Private) Firefox". Or maybe "<maskicon> Firefox". Not sure if we have separate bugs for those and any kind of text would have to beat string freeze.
Assignee | ||
Comment 10•14 years ago
|
||
(In reply to comment #9)
> (In reply to comment #8)
> > Do we still need some other, more accessible feedback?
>
> It would be nice to tag the button with text in some way. Maybe "(Private)
> Firefox". Or maybe "<maskicon> Firefox". Not sure if we have separate bugs for
> those and any kind of text would have to beat string freeze.
I think adding a mask icon is better, since adding the text would make the button too wide.
Reporter | ||
Comment 11•14 years ago
|
||
it's really hard to do icons well on these buttons. I think we should go with "Firefox - Private", it's wider, but that also helps the user realize that they are in a mode (and there is certainly no lack of space on the title bar).
Comment 12•14 years ago
|
||
The question is how to handle this with bug 571785. The only possible solution would be replacing FX icon with PB icon.
Comment 13•14 years ago
|
||
(In reply to comment #12)
> The question is how to handle this with bug 571785. The only possible solution
> would be replacing FX icon with PB icon.
We could put a mask ON the Firefox ;)
Comment 14•14 years ago
|
||
Nice idea. It would look unique and it is creative.
Comment 15•14 years ago
|
||
(In reply to comment #13)
> (In reply to comment #12)
> > The question is how to handle this with bug 571785. The only possible solution
> > would be replacing FX icon with PB icon.
>
> We could put a mask ON the Firefox ;)
Even better! :)
Comment 16•14 years ago
|
||
Updated to use #main-window[browsingmode=private]
Attachment #472932 -
Attachment is obsolete: true
Attachment #474585 -
Flags: review?(dao)
Assignee | ||
Comment 17•14 years ago
|
||
Comment on attachment 474585 [details] [diff] [review]
Purple Firefox Button in PBM - 02
You should also take into account the permanent private browsing mode as well. We don't show (Private Browsing) in the title bar for permanent private browsing mode sessions, by the same logic we shouldn't change the color of the Firefox button to purple when that mode is active.
Attachment #474585 -
Flags: review?(dao) → review-
Comment 18•14 years ago
|
||
Is there a way to do that with CSS?
Updated•14 years ago
|
Assignee: shorlander → ehsan
Assignee | ||
Comment 19•14 years ago
|
||
This will enable us to theme based on whether the PB session is permanent or not.
Attachment #474841 -
Flags: review?(dao)
Assignee | ||
Comment 20•14 years ago
|
||
Attachment #474849 -
Flags: review?(dao)
Updated•14 years ago
|
Flags: in-litmus?
Assignee | ||
Updated•14 years ago
|
Attachment #474585 -
Attachment is obsolete: true
Assignee | ||
Comment 21•14 years ago
|
||
With a small fix...
Attachment #474849 -
Attachment is obsolete: true
Attachment #474879 -
Flags: review?(dao)
Attachment #474849 -
Flags: review?(dao)
Assignee | ||
Comment 22•14 years ago
|
||
Actually make sure that |docElement| is defined before using it...
Attachment #474841 -
Attachment is obsolete: true
Attachment #475177 -
Flags: review?(dao)
Attachment #474841 -
Flags: review?(dao)
Comment 23•14 years ago
|
||
Comment on attachment 475177 [details] [diff] [review]
Part 1: add a privatebrowsingmode=permanent attribute to browser.xul's doc root
I don't see the point of "browsingmode". Seems like we want three states:
[privatebrowsingmode absent]
privatebrowsingmode=temporary
privatebrowsingmode=permanent
However, if browsingmode=normal isn't actually useful for styling, maybe privatebrowsingmode=temporary wouldn't be either. Which leaves us with:
[privatebrowsingmode absent]
privatebrowsingmode=permanent
Attachment #475177 -
Flags: review?(dao) → review-
Comment 24•14 years ago
|
||
Oh, so you do want the color change for temporary private browsing but not otherwise. So this would leave us with this:
[privatebrowsingmode absent]
privatebrowsingmode=temporary
Updated•14 years ago
|
Attachment #474879 -
Flags: review?(dao)
Assignee | ||
Comment 25•14 years ago
|
||
(In reply to comment #24)
> Oh, so you do want the color change for temporary private browsing but not
> otherwise. So this would leave us with this:
>
> [privatebrowsingmode absent]
> privatebrowsingmode=temporary
But I guess we would also need privatebrowsingmode=permanent as well, for themes which might need that for styling permanent PB sessions differently, right? Please note that this was originally added in order to support theme styling.
Assignee | ||
Comment 26•14 years ago
|
||
Attachment #475177 -
Attachment is obsolete: true
Attachment #476370 -
Flags: review?(dao)
Assignee | ||
Updated•14 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Comment 27•14 years ago
|
||
Based on the new privatebrowsingmode attribute.
Attachment #474879 -
Attachment is obsolete: true
Attachment #476373 -
Flags: review?(dao)
Comment 29•14 years ago
|
||
Is there a similar bug for XP when the firefox button is shown? This bug seems very win7/Vista specific.
Comment 30•14 years ago
|
||
Comment on attachment 476370 [details] [diff] [review]
Part 1: add a privatebrowsingmode=temporary/permanent attribute to browser.xul's doc root
Ok, do we want to support special styling for privatebrowsingmode=permanent? If not, why set the attribute?
Comment 31•14 years ago
|
||
Comment on attachment 476373 [details] [diff] [review]
Part 2: actually make the button purple
>+#appmenu-button:-moz-window-inactive,
>+#main-window[privatebrowsingmode=temporary] #appmenu-button:-moz-window-inactive {
>+appmenu-button:-moz-window-inactive {
> background-image: none;
> border-color: rgba(0,0,0,.4);
> }
Broken selector.
Assignee | ||
Comment 32•14 years ago
|
||
(In reply to comment #30)
> Ok, do we want to support special styling for privatebrowsingmode=permanent? If
> not, why set the attribute?
We don't currently, but themes might.
Assignee | ||
Comment 33•14 years ago
|
||
Attachment #476373 -
Attachment is obsolete: true
Attachment #477229 -
Flags: review?(dao)
Attachment #476373 -
Flags: review?(dao)
Comment 34•14 years ago
|
||
(In reply to comment #32)
> (In reply to comment #30)
> > Ok, do we want to support special styling for privatebrowsingmode=permanent? If
> > not, why set the attribute?
>
> We don't currently, but themes might.
They might want to, but this doesn't mean it's a good idea which should be supported. I don't know why we don't have an indicator for permanent private browsing, but I assumed there would be a good reason. Is it more of an arbitrary choice?
Assignee | ||
Comment 35•14 years ago
|
||
(In reply to comment #34)
> (In reply to comment #32)
> > (In reply to comment #30)
> > > Ok, do we want to support special styling for privatebrowsingmode=permanent? If
> > > not, why set the attribute?
> >
> > We don't currently, but themes might.
>
> They might want to, but this doesn't mean it's a good idea which should be
> supported. I don't know why we don't have an indicator for permanent private
> browsing, but I assumed there would be a good reason. Is it more of an
> arbitrary choice?
The reason is that setting Firefox to always be in private browsing mode is an explicit choice which you usually do inside the preferences window, and we assume that if you choose that setting, you're aware of the implications and do not need to be reminded about it every time you look at the Firefox window.
I'd still opt for making it possible for themes to style the permanent mode differently, but if you don't like that, I can take that out of the patch, as I don't like to keep this blocker bug blocking on that issue any more.
Comment 36•14 years ago
|
||
Comment on attachment 476370 [details] [diff] [review]
Part 1: add a privatebrowsingmode=temporary/permanent attribute to browser.xul's doc root
>+ let docElement = document.documentElement;
> if (this._privateBrowsingService.autoStarted) {
> // Disable the menu item in auto-start mode
> document.getElementById("privateBrowsingItem")
> .setAttribute("disabled", "true");
> #ifdef MENUBAR_CAN_AUTOHIDE
> document.getElementById("appmenu_privateBrowsing")
> .setAttribute("disabled", "true");
> #endif
> document.getElementById("Tools:PrivateBrowsing")
> .setAttribute("disabled", "true");
>+ docElement.setAttribute("privatebrowsingmode", "permanent");
> }
> else if (window.location.href == getBrowserURL()) {
> // Adjust the window's title
>- let docElement = document.documentElement;
> docElement.setAttribute("title",
> docElement.getAttribute("title_privatebrowsing"));
> docElement.setAttribute("titlemodifier",
> docElement.getAttribute("titlemodifier_privatebrowsing"));
>- docElement.setAttribute("browsingmode", "private");
>+ docElement.setAttribute("privatebrowsingmode", "temporary");
> gBrowser.updateTitlebar();
> }
Looks like docElement.setAttribute("privatebrowsingmode", "permanent") should depend on (window.location.href == getBrowserURL()) as well.
> this._setPBMenuTitle("start");
>
>+ let docElement = document.documentElement;
> if (window.location.href == getBrowserURL()) {
> // Adjust the window's title
>- let docElement = document.documentElement;
> docElement.setAttribute("title",
> docElement.getAttribute("title_normal"));
> docElement.setAttribute("titlemodifier",
> docElement.getAttribute("titlemodifier_normal"));
>- docElement.setAttribute("browsingmode", "normal");
> }
>
> // Enable the menu item in after exiting the auto-start mode
> document.getElementById("privateBrowsingItem")
> .removeAttribute("disabled");
> #ifdef MENUBAR_CAN_AUTOHIDE
> document.getElementById("appmenu_privateBrowsing")
> .removeAttribute("disabled");
> #endif
> document.getElementById("Tools:PrivateBrowsing")
> .removeAttribute("disabled");
>+ docElement.removeAttribute("privatebrowsingmode");
Here you're removing the dependency on (window.location.href == getBrowserURL()), which looks wrong.
Assignee | ||
Comment 37•14 years ago
|
||
Attachment #476370 -
Attachment is obsolete: true
Attachment #477325 -
Flags: review?(dao)
Attachment #476370 -
Flags: review?(dao)
Comment 38•14 years ago
|
||
Comment on attachment 477325 [details] [diff] [review]
Part 1: add a privatebrowsingmode=temporary/permanent attribute to browser.xul's doc root
>+ let docElement = document.documentElement;
> if (this._privateBrowsingService.autoStarted) {
> // Disable the menu item in auto-start mode
> document.getElementById("privateBrowsingItem")
> .setAttribute("disabled", "true");
> #ifdef MENUBAR_CAN_AUTOHIDE
> document.getElementById("appmenu_privateBrowsing")
> .setAttribute("disabled", "true");
> #endif
> document.getElementById("Tools:PrivateBrowsing")
> .setAttribute("disabled", "true");
>+ if (window.location.href == getBrowserURL()) {
>+ docElement.setAttribute("privatebrowsingmode", "permanent");
>+ }
nit: drop the braces
>+ let docElement = document.documentElement;
> if (window.location.href == getBrowserURL()) {
> // Adjust the window's title
>- let docElement = document.documentElement;
> docElement.setAttribute("title",
> docElement.getAttribute("title_normal"));
> docElement.setAttribute("titlemodifier",
> docElement.getAttribute("titlemodifier_normal"));
>- docElement.setAttribute("browsingmode", "normal");
> }
>
> // Enable the menu item in after exiting the auto-start mode
> document.getElementById("privateBrowsingItem")
> .removeAttribute("disabled");
> #ifdef MENUBAR_CAN_AUTOHIDE
> document.getElementById("appmenu_privateBrowsing")
> .removeAttribute("disabled");
> #endif
> document.getElementById("Tools:PrivateBrowsing")
> .removeAttribute("disabled");
>+ if (window.location.href == getBrowserURL()) {
>+ docElement.removeAttribute("privatebrowsingmode");
>+ }
It looks like there's no reason to shuffle this, i.e. you should just replace docElement.setAttribute("browsingmode", "normal"); with docElement.removeAttribute("privatebrowsingmode");.
Attachment #477325 -
Flags: review?(dao) → review+
Assignee | ||
Comment 39•14 years ago
|
||
With nits addressed.
Please note that the part 2 patch is still awaiting review.
Attachment #477325 -
Attachment is obsolete: true
Comment 40•14 years ago
|
||
Comment on attachment 477544 [details] [diff] [review]
Part 1: add a privatebrowsingmode=temporary/permanent attribute to browser.xul's doc root
>+ let docElement = document.documentElement;
> if (window.location.href == getBrowserURL()) {
> // Adjust the window's title
>- let docElement = document.documentElement;
> docElement.setAttribute("title",
> docElement.getAttribute("title_normal"));
> docElement.setAttribute("titlemodifier",
> docElement.getAttribute("titlemodifier_normal"));
>- docElement.setAttribute("browsingmode", "normal");
>+ docElement.removeAttribute("privatebrowsingmode");
> }
bogus change around let docElement
Assignee | ||
Comment 41•14 years ago
|
||
Ah, right. Fixed.
Attachment #477544 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Whiteboard: [needs review dao]
Assignee | ||
Comment 42•14 years ago
|
||
dao: ping?
Assignee | ||
Updated•14 years ago
|
Whiteboard: [needs review dao] → [has patch][needs review dao]
Comment 44•14 years ago
|
||
Comment on attachment 477229 [details] [diff] [review]
Part 2: actually make the button purple
>--- a/browser/themes/winstripe/browser/browser-aero.css
>+++ b/browser/themes/winstripe/browser/browser-aero.css
>+ #main-window[privatebrowsingmode=temporary] #appmenu-button {
>+ -moz-border-left-colors: rgba(255,255,255,.5) rgba(43,8,65,.9);
>+ -moz-border-bottom-colors: rgba(255,255,255,.5) rgba(43,8,65,.9);
>+ -moz-border-right-colors: rgba(255,255,255,.5) rgba(43,8,65,.9);
>+ }
>+
> #appmenu-button:-moz-window-inactive {
> -moz-border-left-colors: rgba(255,255,255,.4) rgba(0,0,0,.5);
> -moz-border-bottom-colors: rgba(255,255,255,.4) rgba(0,0,0,.5);
> -moz-border-right-colors: rgba(255,255,255,.4) rgba(0,0,0,.5);
> box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset;
> }
Does #appmenu-button:-moz-window-inactive take precedence over #main-window[privatebrowsingmode=temporary] #appmenu-button?
>--- a/browser/themes/winstripe/browser/browser.css
>+++ b/browser/themes/winstripe/browser/browser.css
>-#appmenu-button:-moz-window-inactive {
>+#main-window[privatebrowsingmode=temporary] #appmenu-button {
>+ background-image: -moz-linear-gradient(rgb(153,38,211), rgb(105,19,163) 95%);
>+ border-color: rgba(43,8,65,.9);
>+}
Can you add :not(:-moz-window-inactive) here? (Though if the answer to the above question is "yes", this may not be needed.)
>+#appmenu-button:-moz-window-inactive,
>+#main-window[privatebrowsingmode=temporary] #appmenu-button:-moz-window-inactive {
> background-image: none;
> border-color: rgba(0,0,0,.4);
> }
And drop #main-window[privatebrowsingmode=temporary] #appmenu-button:-moz-window-inactive here?
Assignee | ||
Comment 45•14 years ago
|
||
(In reply to comment #44)
> Comment on attachment 477229 [details] [diff] [review]
> --> https://bugzilla.mozilla.org/attachment.cgi?id=477229
> Part 2: actually make the button purple
>
> >--- a/browser/themes/winstripe/browser/browser-aero.css
> >+++ b/browser/themes/winstripe/browser/browser-aero.css
>
> >+ #main-window[privatebrowsingmode=temporary] #appmenu-button {
> >+ -moz-border-left-colors: rgba(255,255,255,.5) rgba(43,8,65,.9);
> >+ -moz-border-bottom-colors: rgba(255,255,255,.5) rgba(43,8,65,.9);
> >+ -moz-border-right-colors: rgba(255,255,255,.5) rgba(43,8,65,.9);
> >+ }
> >+
> > #appmenu-button:-moz-window-inactive {
> > -moz-border-left-colors: rgba(255,255,255,.4) rgba(0,0,0,.5);
> > -moz-border-bottom-colors: rgba(255,255,255,.4) rgba(0,0,0,.5);
> > -moz-border-right-colors: rgba(255,255,255,.4) rgba(0,0,0,.5);
> > box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset;
> > }
>
> Does #appmenu-button:-moz-window-inactive take precedence over
> #main-window[privatebrowsingmode=temporary] #appmenu-button?
The specificity of the former is (a=0, b=1, c=1, d=0), and the specificity of the latter is (a=0, b=2, c=1, d=0), therefore the latter takes precedence on the former.
> >--- a/browser/themes/winstripe/browser/browser.css
> >+++ b/browser/themes/winstripe/browser/browser.css
>
> >-#appmenu-button:-moz-window-inactive {
> >+#main-window[privatebrowsingmode=temporary] #appmenu-button {
> >+ background-image: -moz-linear-gradient(rgb(153,38,211), rgb(105,19,163) 95%);
> >+ border-color: rgba(43,8,65,.9);
> >+}
>
> Can you add :not(:-moz-window-inactive) here? (Though if the answer to the
> above question is "yes", this may not be needed.)
Well, the answer to the above question was no, but I don't see why the :not rule would be needed here. This selector takes precedence over #appmenu-button:-moz-window-inactive, which is what we want, right?
> >+#appmenu-button:-moz-window-inactive,
> >+#main-window[privatebrowsingmode=temporary] #appmenu-button:-moz-window-inactive {
> > background-image: none;
> > border-color: rgba(0,0,0,.4);
> > }
>
> And drop #main-window[privatebrowsingmode=temporary]
> #appmenu-button:-moz-window-inactive here?
This will cause the border-color rule from the previous selector to be applied to that case. Is that what we really want?
Comment 46•14 years ago
|
||
(In reply to comment #45)
> > And drop #main-window[privatebrowsingmode=temporary]
> > #appmenu-button:-moz-window-inactive here?
>
> This will cause the border-color rule from the previous selector to be applied
> to that case. Is that what we really want?
No, which is why I suggested adding :not(:-moz-window-inactive) there.
Assignee | ||
Comment 47•14 years ago
|
||
With comments addressed.
Attachment #477229 -
Attachment is obsolete: true
Attachment #484869 -
Flags: review?(dao)
Attachment #477229 -
Flags: review?(dao)
Comment 48•14 years ago
|
||
(In reply to comment #45)
> (In reply to comment #44)
> > Comment on attachment 477229 [details] [diff] [review]
> > --> https://bugzilla.mozilla.org/attachment.cgi?id=477229
> > Part 2: actually make the button purple
> >
> > >--- a/browser/themes/winstripe/browser/browser-aero.css
> > >+++ b/browser/themes/winstripe/browser/browser-aero.css
> >
> > >+ #main-window[privatebrowsingmode=temporary] #appmenu-button {
> > >+ -moz-border-left-colors: rgba(255,255,255,.5) rgba(43,8,65,.9);
> > >+ -moz-border-bottom-colors: rgba(255,255,255,.5) rgba(43,8,65,.9);
> > >+ -moz-border-right-colors: rgba(255,255,255,.5) rgba(43,8,65,.9);
> > >+ }
> > >+
> > > #appmenu-button:-moz-window-inactive {
> > > -moz-border-left-colors: rgba(255,255,255,.4) rgba(0,0,0,.5);
> > > -moz-border-bottom-colors: rgba(255,255,255,.4) rgba(0,0,0,.5);
> > > -moz-border-right-colors: rgba(255,255,255,.4) rgba(0,0,0,.5);
> > > box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset;
> > > }
> >
> > Does #appmenu-button:-moz-window-inactive take precedence over
> > #main-window[privatebrowsingmode=temporary] #appmenu-button?
>
> The specificity of the former is (a=0, b=1, c=1, d=0), and the specificity of
> the latter is (a=0, b=2, c=1, d=0), therefore the latter takes precedence on
> the former.
Wait... does former/latter refer to the CSS source or to what I wrote?
Assignee | ||
Comment 49•14 years ago
|
||
(In reply to comment #48)
> (In reply to comment #45)
> > (In reply to comment #44)
> > > Comment on attachment 477229 [details] [diff] [review]
> > > --> https://bugzilla.mozilla.org/attachment.cgi?id=477229
> > > Part 2: actually make the button purple
> > >
> > > >--- a/browser/themes/winstripe/browser/browser-aero.css
> > > >+++ b/browser/themes/winstripe/browser/browser-aero.css
> > >
> > > >+ #main-window[privatebrowsingmode=temporary] #appmenu-button {
> > > >+ -moz-border-left-colors: rgba(255,255,255,.5) rgba(43,8,65,.9);
> > > >+ -moz-border-bottom-colors: rgba(255,255,255,.5) rgba(43,8,65,.9);
> > > >+ -moz-border-right-colors: rgba(255,255,255,.5) rgba(43,8,65,.9);
> > > >+ }
> > > >+
> > > > #appmenu-button:-moz-window-inactive {
> > > > -moz-border-left-colors: rgba(255,255,255,.4) rgba(0,0,0,.5);
> > > > -moz-border-bottom-colors: rgba(255,255,255,.4) rgba(0,0,0,.5);
> > > > -moz-border-right-colors: rgba(255,255,255,.4) rgba(0,0,0,.5);
> > > > box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset;
> > > > }
> > >
> > > Does #appmenu-button:-moz-window-inactive take precedence over
> > > #main-window[privatebrowsingmode=temporary] #appmenu-button?
> >
> > The specificity of the former is (a=0, b=1, c=1, d=0), and the specificity of
> > the latter is (a=0, b=2, c=1, d=0), therefore the latter takes precedence on
> > the former.
>
> Wait... does former/latter refer to the CSS source or to what I wrote?
What you wrote. (I resisted the temptation of saying "the latter" again! ;-) )
Comment 50•14 years ago
|
||
It seems to me that the :-moz-window-inactive rule should take precedence, i.e. you should add :not(:-moz-window-inactive) to the other selector just like in browser.css. By the way, please add that to #appmenu-button rather than #main-window.
Assignee | ||
Comment 51•14 years ago
|
||
(In reply to comment #50)
> It seems to me that the :-moz-window-inactive rule should take precedence, i.e.
> you should add :not(:-moz-window-inactive) to the other selector just like in
> browser.css. By the way, please add that to #appmenu-button rather than
> #main-window.
I'm kind of lost what you mean here. I used the specificity of the selectors as defined in the CSS spec. And I'm not sure what we're trying to fix here... :/
Comment 52•14 years ago
|
||
(In reply to comment #51)
> (In reply to comment #50)
> > It seems to me that the :-moz-window-inactive rule should take precedence, i.e.
> > you should add :not(:-moz-window-inactive) to the other selector just like in
> > browser.css. By the way, please add that to #appmenu-button rather than
> > #main-window.
>
> I'm kind of lost what you mean here. I used the specificity of the selectors
> as defined in the CSS spec.
You're saying the privatebrowsingmode=temporary styling overrides the window-inactive styling. (Aren't you?) I'm saying we probably want it the other way around.
Assignee | ||
Comment 53•14 years ago
|
||
How about modifying #appmenu-button:-moz-window-inactive to #main-window #appmenu-button:-moz-window-inactive so that the two rules become similarly specific, and the second one would override the first one?
Comment 54•14 years ago
|
||
You think that's better than adding :not(:-moz-window-inactive) to the first selector?
Assignee | ||
Comment 55•14 years ago
|
||
(In reply to comment #54)
> You think that's better than adding :not(:-moz-window-inactive) to the first
> selector?
Adding :not(:-moz-window-inactive) to the first selector doesn't help anything, it only makes that selector more specific than it already is. Or am I missing something?
Comment 56•14 years ago
|
||
It makes the selector not match in the window-inactive case, specificity doesn't even matter then.
Assignee | ||
Comment 57•14 years ago
|
||
OK, this should address your comments.
Attachment #484869 -
Attachment is obsolete: true
Attachment #485746 -
Flags: review?(dao)
Attachment #484869 -
Flags: review?(dao)
Updated•14 years ago
|
Attachment #485746 -
Flags: review?(dao) → review+
Assignee | ||
Updated•14 years ago
|
Whiteboard: [has patch][needs review dao] → [needs landing]
Assignee | ||
Comment 58•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/a0baa33cd4ca
http://hg.mozilla.org/mozilla-central/rev/ae29792742d8
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [needs landing]
Target Milestone: --- → Firefox 4.0b8
Updated•14 years ago
|
Target Milestone: Firefox 4.0b8 → Firefox 4.0b7
Comment 59•14 years ago
|
||
Documented the API change here:
https://developer.mozilla.org/En/Supporting_private_browsing_mode#Detecting_whether_private_browsing_mode_is_permanent
Added an example of skinning the firefox button using the privatebrowsingmode attribute here:
https://developer.mozilla.org/En/Supporting_private_browsing_mode#Private_browsing_for_theme_designers
Keywords: dev-doc-needed → dev-doc-complete
Comment 60•14 years ago
|
||
Flags: in-litmus? → in-litmus+
Comment 61•11 years ago
|
||
All I know is I went to the public library where they use Windows, and hit CTRL-N which I recall had the same golden color as the non-private window. I recall there was a message inside the window saying that it was a private window. I double checked that I was using indeed the latest Firefox 27.
Isn't it a security issue, making private windows look like non-private windows?
Comment 62•11 years ago
|
||
I think I mean to say that choosing private browsing from the menus makes the same colored windows as the usual CTRL-N non-private windows.
Comment 63•11 years ago
|
||
P.S. and why have things look so different on Linux?
Comment 64•11 years ago
|
||
(In reply to Dan Jacobson from comment #61)
> All I know is I went to the public library where they use Windows, and hit
> CTRL-N which I recall had the same golden color as the non-private window. I
> recall there was a message inside the window saying that it was a private
> window. I double checked that I was using indeed the latest Firefox 27.
It is possible to set browser.privatebrowsing.autostart to true in about:config. This makes private browsing mode the default state. Could be what you were seeing.
> Isn't it a security issue, making private windows look like non-private
> windows?
Potentially a mode error, but I don't see how it is a security issue.
Comment 65•11 years ago
|
||
Well OK but I recall they were all orange color, not purple.
OK next time I go to town I will try to get more details.
If a danger signal is always on even though there is no danger, one day
when there is danger, users will ignore it.
If there is no security issue in both modes being the same color, then
one might ask why bother to distinguish them in the first place...
Comment 66•11 years ago
|
||
Confirmed no problem seen in Windows FF 7.0,1 or 12.0.
You need to log in
before you can comment on or make changes to this bug.
Description
•