Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Fixes #617 #738 - Do not refresh URL bar on load request (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and bluemarvin committed Nov 16, 2018
1 parent 803f618 commit 6c5e28e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,18 +491,6 @@ public String getCurrentUri() {
return result;
}

public String getPreviousUri() {
String result = "";
if (mCurrentSession != null) {
State state = mSessions.get(mCurrentSession.hashCode());
if (state == null) {
return result;
}
result = state.mPreviousUri;
}
return result;
}

public Media getFullScreenVideo() {
Media result = null;
if (mCurrentSession != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,6 @@ else if (aURL.startsWith("resource:") || SessionStore.get().isHomeUri(aURL))
aURL = "";
else if (aURL.startsWith("data:") && SessionStore.get().isCurrentSessionPrivate())
aURL = "";
else if (aURL.startsWith("javascript:") &&
aURL.contains(SessionStore.get().getHomeUri()) &&
SessionStore.get().getPreviousUri().equals(SessionStore.get().getHomeUri()))
aURL = "";
else
index = aURL.indexOf("://");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -600,11 +600,6 @@ public void onCanGoForward(GeckoSession aSession, boolean canGoForward) {

@Override
public @Nullable GeckoResult<AllowOrDeny> onLoadRequest(GeckoSession aSession, @NonNull LoadRequest aRequest) {
if (mURLBar != null) {
Log.d(LOGTAG, "Got onLoadUri");
mURLBar.setURL(aRequest.uri);
}

final GeckoResult<AllowOrDeny> result = new GeckoResult<>();

Uri uri = Uri.parse(aRequest.uri);
Expand Down

0 comments on commit 6c5e28e

Please sign in to comment.