Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

History: Ignore initial load of about:blank #2606

Closed
pocmo opened this issue Apr 2, 2019 · 4 comments
Closed

History: Ignore initial load of about:blank #2606

pocmo opened this issue Apr 2, 2019 · 4 comments
Assignees
Labels
🐞 bug Something isn't working <engine-gecko> Component: browser-engine-gecko 🐉 Fenix Feature needed for Fenix P1 <storage> Concerning general browser storage
Milestone

Comments

@pocmo
Copy link
Contributor

pocmo commented Apr 2, 2019

Fenix issue: mozilla-mobile/fenix#1318

A GeckoSession will always start by loading about:blank and there are technical reasons why that is the case.

In GeckoEngineSession.onLocationChange() we ignore the initial load (added in #403):
https://github.com/mozilla-mobile/android-components/blob/master/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngineSession.kt#L282-L286

We don't do that for history though. And therefore every time you open a tab we track an about:blank visit.

┆Issue is synchronized with this Jira Task

@pocmo pocmo added 🐞 bug Something isn't working <engine-gecko> Component: browser-engine-gecko <storage> Concerning general browser storage labels Apr 2, 2019
@pocmo
Copy link
Contributor Author

pocmo commented Apr 2, 2019

FYI @grigoryk

@grigoryk
Copy link
Contributor

grigoryk commented Apr 4, 2019

Our HistoryDelegate is probably a good place to do this filtering.

@grigoryk
Copy link
Contributor

grigoryk commented Apr 4, 2019

We also currently insert custom home page extension URLs, e.g. moz-extension://<extension-id>/stuff.html

@grigoryk
Copy link
Contributor

Here's this logic in Fennec. We probably just want to port it over: https://dxr.mozilla.org/mozilla-central/source/mobile/android/components/build/nsAndroidHistory.cpp#326

grigoryk pushed a commit to grigoryk/android-components that referenced this issue Apr 26, 2019
grigoryk pushed a commit to grigoryk/android-components that referenced this issue Apr 26, 2019
grigoryk pushed a commit to grigoryk/android-components that referenced this issue Apr 26, 2019
grigoryk pushed a commit to grigoryk/android-components that referenced this issue Apr 26, 2019
grigoryk pushed a commit to grigoryk/android-components that referenced this issue Apr 30, 2019
grigoryk pushed a commit to grigoryk/android-components that referenced this issue Apr 30, 2019
@pocmo pocmo added this to the 0.52.0 🥖 milestone May 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working <engine-gecko> Component: browser-engine-gecko 🐉 Fenix Feature needed for Fenix P1 <storage> Concerning general browser storage
Projects
None yet
Development

No branches or pull requests

3 participants