From 6f58724250195d11916efe7b3f9e9aeeb75e2df6 Mon Sep 17 00:00:00 2001 From: Eugen Sawin Date: Wed, 9 Aug 2017 21:39:18 +0200 Subject: [PATCH] Bug 1389236 - [4.0] Mark URI-loading requests in the GeckoView example app handler as handled. r=snorp --- .../org/mozilla/geckoview_example/GeckoViewActivity.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java b/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java index e99351f53cfd..c1687970e2aa 100644 --- a/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java +++ b/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java @@ -282,11 +282,12 @@ public class GeckoViewActivity extends Activity { } @Override - public void onLoadUri(final GeckoView view, final String uri, - final TargetWindow where) { - Log.d(LOGTAG, "onLoadUriExternal=" + uri + + public boolean onLoadUri(final GeckoView view, final String uri, + final TargetWindow where) { + Log.d(LOGTAG, "onLoadUri=" + uri + " where=" + where); view.loadUri(uri); + return true; } } }