After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 642403 - Selecting text in URL bar doesn't highlight if page is encrypted
Selecting text in URL bar doesn't highlight if page is encrypted
Status: RESOLVED INVALID
Product: epiphany
Classification: Core
Component: [obsolete] URL bar
2.91.x
Other Linux
: Normal minor
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
[gnome3-important]
: 545662 647906 648007 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-02-15 17:44 UTC by Bruce Cowan
Modified: 2011-06-07 14:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix for bug 642403: Selecting text in URL bar doesn't highlight if page is encrypted (4.66 KB, patch)
2011-03-16 12:44 UTC, Alexandre Mazari
none Details | Review

Description Bruce Cowan 2011-02-15 17:44:43 UTC
When a page is encrypted, the text in the URL bar doesn't highlight when it is selected. It still selects in the normal way, it just doesn't highlight as it should.

Epiphany 2.91.6, GTK+ 3.0.0.
Comment 1 Stefano Facchini 2011-03-13 21:40:27 UTC
Still present with Epiphany 2.91.91, GTK+ 3.0.2
Comment 2 Alexandre Mazari 2011-03-16 12:44:45 UTC
Created attachment 183534 [details] [review]
Fix for bug 642403: Selecting text in URL bar doesn't highlight if page is encrypted
Comment 3 Diego Escalante Urrelo (not reading bugmail) 2011-03-17 07:39:55 UTC
Review of attachment 183534 [details] [review]:

Looks simple, I'd just ask if this wasn't supposed to be a GTK+ bug?
Anyway, looks simple, I'm just confused by the color lookup I commented.

Thanks for the patch storm btw :-)

::: lib/widgets/ephy-location-entry.c
@@ +190,3 @@
+	{
+		gtk_style_context_lookup_color (style, "selected_bg_color", &priv->secure_selected_bg_color);
+	}

I'm a bit confused with this one... so if there's nothing returned by gtk_style_context_get_style in the previous block, then it asks again?

@@ +352,1 @@
+        g_type_class_add_private (object_class, sizeof (EphyLocationEntryPrivate));

Is this an intentional re-indent? It's ok if it's so, I think. But just double-checking, sometimes editors play tricks.
Comment 4 Gustavo Noronha (kov) 2011-03-22 12:40:59 UTC
*** Bug 545662 has been marked as a duplicate of this bug. ***
Comment 5 Frederic Peters 2011-03-30 07:52:14 UTC
When there is agreement on a patch, could you ask the release team for a freeze break?
Comment 6 Reinout van Schouwen 2011-04-11 09:00:32 UTC
Alexandre, Diego?
Comment 7 Frederic Peters 2011-04-11 09:08:26 UTC
FYI I noted the same issue in rhythmbox search entry; so maybe, if possible, the fix should be in gtk+ to benefit all.
Comment 8 Xan Lopez 2011-04-16 04:26:25 UTC
*** Bug 647906 has been marked as a duplicate of this bug. ***
Comment 9 Xan Lopez 2011-04-17 14:46:41 UTC
*** Bug 648007 has been marked as a duplicate of this bug. ***
Comment 10 Danilo Segan 2011-04-18 20:17:11 UTC
Diego, regarding a question if this is a bug in Gtk+.

From http://developer.gnome.org/gtk3/unstable/GtkWidget.html#gtk-widget-override-color

"Note that for complex widgets this may bring in undesired results (such as uniform background color everywhere), in these cases it is better to fully style such widgets through a GtkCssProvider with the GTK_STYLE_PROVIDER_PRIORITY_APPLICATION priority."

So, it is at least documented to work like this, so it must be designed in such a way.

In my opinion, it would be nice to make this themeable as well using a CSS class, but it is a tricky deal: if it's not something generic that all themes would have, then it shouldn't be in a theme. But, any pre-selected colour scheme will not work with all themes, so it seems we've got a no-win situation.
Comment 11 Xan Lopez 2011-04-25 22:30:36 UTC
(In reply to comment #3)
> Review of attachment 183534 [details] [review]:
> 
> Looks simple, I'd just ask if this wasn't supposed to be a GTK+ bug?
> Anyway, looks simple, I'm just confused by the color lookup I commented.
> 
> Thanks for the patch storm btw :-)
> 
> ::: lib/widgets/ephy-location-entry.c
> @@ +190,3 @@
> +    {
> +        gtk_style_context_lookup_color (style, "selected_bg_color",
> &priv->secure_selected_bg_color);
> +    }
> 
> I'm a bit confused with this one... so if there's nothing returned by
> gtk_style_context_get_style in the previous block, then it asks again?

He's asking for the not secure bg/fg color when the secure one is not found, not for the same one again. So that part looks sane to me.
Comment 12 Xan Lopez 2011-04-25 22:39:50 UTC
Let's ship this in 3.0.1, I'm not committing in master in case we want to come up with a better solution.
Comment 13 Xan Lopez 2011-06-07 14:34:51 UTC
We don't paint stuff in yellow in master anymore, closing.