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 728143 - Location bar is cleared when overview finishes loading
Location bar is cleared when overview finishes loading
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Overview
3.12.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-04-14 02:07 UTC by Michael Catanzaro
Modified: 2014-05-12 13:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (1019 bytes, patch)
2014-05-05 07:28 UTC, Robert Roth
rejected Details | Review
ephy-web-view: do not clear typed address on first load (2.07 KB, patch)
2014-05-12 12:55 UTC, Claudio Saavedra
committed Details | Review

Description Michael Catanzaro 2014-04-14 02:07:17 UTC
In Epiphany 3.12.0, press Ctrl+T to create a new tab, then quickly start typing in the location bar.  There will be a small delay between opening the new tab and the appearance of the grid with webpage thumbnails. As soon as the pages appear, everything typed into the location bar is deleted.

On my computer, the delay is significant enough (0.5-2.5 seconds) to be annoying.
Comment 1 Claudio Saavedra 2014-04-14 08:40:09 UTC
Yes. We also need to improve that delay, though that's a different issue.
Comment 2 Robert Roth 2014-05-05 07:28:12 UTC
Created attachment 275868 [details] [review]
Proposed patch

Do not clear user-entered text from the locationbar while loading the overview.
Comment 3 Carlos Garcia Campos 2014-05-05 08:08:38 UTC
I wonder if we should stop an ongoing load when user starts typing in the url bar. This problem is not specific to the overview, I guess.
Comment 4 Claudio Saavedra 2014-05-07 13:20:43 UTC
Review of attachment 275868 [details] [review]:

::: embed/ephy-web-view.c
@@ +818,3 @@
 
+  if (ephy_web_view_is_loading (view) && priv->typed_address != NULL
+      && !strcmp (address, "about:overview"))

This is not the right fix. This bug is unrelated to it being the overview.

@@ -819,1 @@
     ephy_web_view_set_typed_address (view, NULL);

The problem is actually that this is assuming that if there is a typed address when the webview is in loading state, then this text was typed for the previous contents of the view. In reality, there is a very brief moment in which, upon creation of the webview, the user can already type something in the address bar before the webview starts its load.

So, IMO, the right fix would be to remove this from here and handle it somewhere else, possibly in the calling methods that relate to this.
Comment 5 Claudio Saavedra 2014-05-12 12:55:38 UTC
Created attachment 276379 [details] [review]
ephy-web-view: do not clear typed address on first load

Previously, the first page loaded in a webview would be done with
before the user had any chance to type an address, so it was safe to
assume that any typed address could be cleared during page loads,
as they would always come from previously loaded pages.

Now that the process of creating a webview is different and
involves spawning a web process that needs to be ready before
the initial page can be loaded, it might be possible for users
to type an address before this is ready. This breaks the previous
assumption and needs to be dealt with, in order to avoid
cleaning up typed text during the initial page load.

Additionally, it makes sense to make set_address() a no-op if
the given address is the same as the currently loaded.
Comment 6 Carlos Garcia Campos 2014-05-12 13:15:46 UTC
Review of attachment 276379 [details] [review]:

Ok, it sounds reasonbale, let's try this way. Thanks!
Comment 7 Claudio Saavedra 2014-05-12 13:26:42 UTC
Attachment 276379 [details] pushed as 0c3938f - ephy-web-view: do not clear typed address on first load