Bug 1610353 - [5.1] Update API changelog. r=geckoview-reviewers,agi
authorEugen Sawin <esawin@mozilla.com>
Thu, 23 Jan 2020 20:04:10 +0000
changeset 511532 6a2d19e7cdf24bbe2ee1ff05f00730281b0189a6
parent 511531 d0a06daef257a64e1c761035784e623106d5cbb4
child 511533 93b81b2495cdccac2c8e42b8ba5a839cf09d479c
push id37049
push userrmaries@mozilla.com
push dateFri, 24 Jan 2020 03:50:24 +0000
treeherdermozilla-central@e05793f68994 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgeckoview-reviewers, agi
bugs1610353
milestone74.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1610353 - [5.1] Update API changelog. r=geckoview-reviewers,agi Differential Revision: https://phabricator.services.mozilla.com/D60666
mobile/android/geckoview/api.txt
mobile/android/geckoview/src/main/java/org/mozilla/geckoview/doc-files/CHANGELOG.md
--- a/mobile/android/geckoview/api.txt
+++ b/mobile/android/geckoview/api.txt
@@ -1218,16 +1218,17 @@ package org.mozilla.geckoview {
 
   public class LoginStorage {
     ctor public LoginStorage();
   }
 
   public static interface LoginStorage.Delegate {
     method @UiThread @Nullable default public GeckoResult<LoginStorage.LoginEntry[]> onLoginFetch(@NonNull String);
     method @UiThread default public void onLoginSave(@NonNull LoginStorage.LoginEntry);
+    method @UiThread default public void onLoginUsed(@NonNull LoginStorage.LoginEntry, int);
   }
 
   public static class LoginStorage.LoginEntry {
     ctor @AnyThread protected LoginEntry();
     field @Nullable public final String formActionOrigin;
     field @Nullable public final String guid;
     field @Nullable public final String httpRealm;
     field @NonNull public final String origin;
@@ -1241,16 +1242,21 @@ package org.mozilla.geckoview {
     method @AnyThread @NonNull public LoginStorage.LoginEntry.Builder formActionOrigin(@Nullable String);
     method @AnyThread @NonNull public LoginStorage.LoginEntry.Builder guid(@Nullable String);
     method @AnyThread @NonNull public LoginStorage.LoginEntry.Builder httpRealm(@Nullable String);
     method @AnyThread @NonNull public LoginStorage.LoginEntry.Builder origin(@NonNull String);
     method @AnyThread @NonNull public LoginStorage.LoginEntry.Builder password(@NonNull String);
     method @AnyThread @NonNull public LoginStorage.LoginEntry.Builder username(@NonNull String);
   }
 
+  public static class LoginStorage.UsedField {
+    ctor public UsedField();
+    field public static final int PASSWORD = 1;
+  }
+
   @AnyThread public class MediaElement {
     method @Nullable public MediaElement.Delegate getDelegate();
     method public void pause();
     method public void play();
     method public void seek(double);
     method public void setDelegate(@Nullable MediaElement.Delegate);
     method public void setMuted(boolean);
     method public void setPlaybackRate(double);
--- a/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/doc-files/CHANGELOG.md
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/doc-files/CHANGELOG.md
@@ -29,27 +29,32 @@ exclude: true
 - Added ['WebRequestError#certificate'][74.6], which is the server certificate used in the
   failed request, if any.
   ([bug 1508730]({{bugzilla}}1508730))
 - ⚠️ Updated [`ContentBlockingController`][74.7] to use new representation for content blocking
   exceptions and to add better support for removing exceptions. This deprecates [`ExceptionList`][74.8]
   and [`restoreExceptionList`][74.9] with the intent to remove them in 76.
   ([bug 1587552]({{bugzilla}}1587552))
 - Added [`GeckoSession.ContentDelegate.onMetaViewportFitChange`][74.10]. This exposes `viewport-fit` value that is CSS Round Display Level 1. ([bug 1574307]({{bugzilla}}1574307))
+- Extended [`LoginStorage.Delegate`][74.11] with [`onLoginUsed`][74.12] to
+  report when existing login entries are used for autofill.
+  ([bug 1610353]({{bugzilla}}1610353))
 
 [74.1]: {{javadoc_uri}}/WebExtensionController.html#enable-org.mozilla.geckoview.WebExtension-int-
 [74.2]: {{javadoc_uri}}/WebExtensionController.html#disable-org.mozilla.geckoview.WebExtension-int-
 [74.3]: {{javadoc_uri}}/GeckoSession.ProgressDelegate.SecurityInformation.html#certificate
 [74.4]: {{javadoc_uri}}/WebResponse.html#isSecure
 [74.5]: {{javadoc_uri}}/WebResponse.html#certificate
 [74.6]: {{javadoc_uri}}/WebRequestError.html#certificate
 [74.7]: {{javadoc_uri}}/ContentBlockingController.html
 [74.8]: {{javadoc_uri}}/ContentBlockingController.ExceptionList.html
 [74.9]: {{javadoc_uri}}/ContentBlockingController.html#restoreExceptionList-org.mozilla.geckoview.ContentBlockingController.ExceptionList-
 [74.10]: {{javadoc_uri}}/GeckoSession.ContentDelegate.html#onMetaViewportFitChange-org.mozilla.geckoview.GeckoSession-java.lang.String-
+[74.11]: {{javadoc_uri}}/LoginStorage.Delegate.html
+[74.12]: {{javadoc_uri}}/LoginStorage.Delegate.html#onLoginUsed-org.mozilla.geckoview.LoginStorage.LoginEntry-int-
 
 ## v73
 - Added [`WebExtensionController.install`][73.1] and [`uninstall`][73.2] to
   manage installed extensions
 - ⚠️ Renamed `ScreenLength.VIEWPORT_WIDTH`, `ScreenLength.VIEWPORT_HEIGHT`,
   `ScreenLength.fromViewportWidth` and `ScreenLength.fromViewportHeight` to
   [`ScreenLength.VISUAL_VIEWPORT_WIDTH`][73.3],
   [`ScreenLength.VISUAL_VIEWPORT_HEIGHT`][73.4],
@@ -550,9 +555,9 @@ exclude: true
 [65.19]: {{javadoc_uri}}/GeckoSession.NavigationDelegate.LoadRequest.html#isRedirect
 [65.20]: {{javadoc_uri}}/GeckoSession.html#LOAD_FLAGS_BYPASS_CLASSIFIER
 [65.21]: {{javadoc_uri}}/GeckoSession.ContentDelegate.ContextElement.html
 [65.22]: {{javadoc_uri}}/GeckoSession.ContentDelegate.html#onContextMenu-org.mozilla.geckoview.GeckoSession-int-int-org.mozilla.geckoview.GeckoSession.ContentDelegate.ContextElement-
 [65.23]: {{javadoc_uri}}/GeckoSession.FinderResult.html
 [65.24]: {{javadoc_uri}}/CrashReporter.html#sendCrashReport-android.content.Context-android.os.Bundle-java.lang.String-
 [65.25]: {{javadoc_uri}}/GeckoResult.html
 
-[api-version]: 5342560e4c467a1f3d363748ebb20a077d2e8385
+[api-version]: aad1f21bb13244e937db3391643efe7a5fd46366