Selected text in conversations should have same colours as in input box

NEW
Unassigned

Status

Instantbird
Conversation
--
minor
4 years ago
4 years ago

People

(Reporter: Instantbot, Unassigned)

Tracking

Details

(Reporter)

Description

4 years ago
*** Original post on bio 1908 by Etienne Folio <ornthalas AT gmail.com> at 2013-03-23 22:48:00 UTC ***

When you select some text in a conversation, the selection is colored in gray (as it is only supposed to be when the conversation window is out of focus), not in blue (as a normal selection should be).

I guess this behaviour not only is not normal and might be involved in the bug #955343 (bio 1907)

Updated

4 years ago
Severity: major → minor
Hardware: x86 → All
Summary: Selected text color issue → Selected text in conversations should have same colours as in input box
*** Original post on bio 1908 at 2013-03-26 10:54:40 UTC ***

Confirming (for Windows at least).
Status: UNCONFIRMED → NEW
Ever confirmed: true
*** Original post on bio 1908 at 2013-03-26 13:11:39 UTC ***

Happens on all platforms (I tested on Mac and Quentin tested on Linux).
*** Original post on bio 1908 at 2013-04-07 19:26:08 UTC ***

Adding a CSS rule with

::-moz-selection {color: orange; background-color: yellow;}

in a new style tag in the head of the conversation content didn't have any effect. That's strange since in Firefox doing the same on any webpage works as expected. I used DOMi for that in both cases, to make sure the results are comparable.

I also tried a rule with :-moz-window-inactive to see if it's maybe thinking that the window is inactive all the time but that's also not the case.
*** Original post on bio 1908 at 2013-04-07 19:28:42 UTC ***

Of course I used "!important" on the attributes too.
*** Original post on bio 1908 at 2013-05-31 22:09:44 UTC ***

Just a reminder for next time I want to look into this:

This code in convbrowser.xml can force the window to act "active":
this.docShell
    .QueryInterface(Ci.nsIInterfaceRequestor)
    .getInterface(Ci.nsISelectionDisplay)
    .QueryInterface(Ci.nsISelectionController)
    .setDisplaySelection(Ci.nsISelectionController.SELECTION_ON);
You need to log in before you can comment on or make changes to this bug.