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

Commit

Permalink
Bump GeckoView to 76.0.20200323092419 (#3033)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin authored Mar 23, 2020
1 parent d50fa7d commit 41a5df3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,10 @@ public void setActive(boolean aActive) {
}
}

public void reload() {
reload(GeckoSession.LOAD_FLAGS_NONE);
}

public void reload(final int flags) {
if (mState.mSession != null) {
mState.mSession.reload(flags);
Expand Down Expand Up @@ -861,9 +865,7 @@ public void setUaMode(int mode) {
if (overrideUri != null) {
mState.mSession.loadUri(overrideUri, GeckoSession.LOAD_FLAGS_BYPASS_CACHE | GeckoSession.LOAD_FLAGS_REPLACE_HISTORY);
} else {
// mState.mSession.reload(GeckoSession.LOAD_FLAGS_BYPASS_CACHE);
mState.mSession.loadUri(mState.mUri, GeckoSession.LOAD_FLAGS_BYPASS_CACHE);

mState.mSession.reload(GeckoSession.LOAD_FLAGS_BYPASS_CACHE);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,8 @@ private void updateUI() {
if (mViewModel.getIsLoading().getValue().get()) {
getSession().stop();
} else {
if (SettingsStore.getInstance(mAppContext).isBypassCacheOnReloadEnabled()) {
getSession().loadUri(getSession().getCurrentUri(), GeckoSession.LOAD_FLAGS_BYPASS_CACHE);
} else {
// int flags = SettingsStore.getInstance(mAppContext).isBypassCacheOnReloadEnabled() ? GeckoSession.LOAD_FLAGS_BYPASS_CACHE : GeckoSession.LOAD_FLAGS_NONE;
// getSession().reload(flags);
getSession().reload(GeckoSession.LOAD_FLAGS_NONE);
}
int flags = SettingsStore.getInstance(mAppContext).isBypassCacheOnReloadEnabled() ? GeckoSession.LOAD_FLAGS_BYPASS_CACHE : GeckoSession.LOAD_FLAGS_NONE;
getSession().reload(flags);
}
if (mAudio != null) {
mAudio.playSound(AudioEngine.Sound.CLICK);
Expand All @@ -220,8 +215,7 @@ private void updateUI() {
if (mViewModel.getIsLoading().getValue().get()) {
getSession().stop();
} else {
// getSession().reload(GeckoSession.LOAD_FLAGS_BYPASS_CACHE);
getSession().loadUri(getSession().getCurrentUri(), GeckoSession.LOAD_FLAGS_BYPASS_CACHE);
getSession().reload(GeckoSession.LOAD_FLAGS_BYPASS_CACHE);
}
if (mAudio != null) {
mAudio.playSound(AudioEngine.Sound.CLICK);
Expand Down Expand Up @@ -1181,14 +1175,14 @@ private void showQuickPermission(UIButton target, @SitePermission.Category int a
public void onBlock() {
SessionStore.get().setPermissionAllowed(uri, aCategory, false);
mQuickPermissionWidget.onDismiss();
mAttachedWindow.getSession().reload(GeckoSession.LOAD_FLAGS_NONE);
mAttachedWindow.getSession().reload();
}

@Override
public void onAllow() {
SessionStore.get().setPermissionAllowed(uri, aCategory, true);
mQuickPermissionWidget.onDismiss();
mAttachedWindow.getSession().reload(GeckoSession.LOAD_FLAGS_NONE);
mAttachedWindow.getSession().reload();
}
});
mQuickPermissionWidget.getPlacement().parentHandle = getHandle();
Expand Down
2 changes: 1 addition & 1 deletion versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ext.deps = [:]
def versions = [:]
// GeckoView versions can be found here:
// https://maven.mozilla.org/?prefix=maven2/org/mozilla/geckoview/
versions.gecko_view = "76.0.20200319094444"
versions.gecko_view = "76.0.20200323092419"
versions.android_components = "28.0.1"
// Note that android-components also depends on application-services,
// and in fact is our main source of appservices-related functionality.
Expand Down

0 comments on commit 41a5df3

Please sign in to comment.