1. 21 Dec, 2019 6 commits
    • Khushal's avatar
      blink/images: Avoid painting invalid images. · fc67ce7b
      Khushal authored
      If the frame count of an image decreases after appending more data to
      it, the image is assumed to be broken. Avoid painting such images. This
      can result in fatal errors in the downstream code.
      
      And also miscellaneous cleanups.
      
      R=pdr@chromium.org
      
      Bug: 867479
      Change-Id: I90b5c7030f80076fdc44beb88910667c6182cb8b
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1972904
      Commit-Queue: Khushal <khushalsagar@chromium.org>
      Auto-Submit: Khushal <khushalsagar@chromium.org>
      Reviewed-by: default avatarEric Karl <ericrk@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#726994}
      fc67ce7b
    • Nate Fischer's avatar
      AW: fetch flag overrides via ContentProvider · 34df84d5
      Nate Fischer authored
      This CL completes the basic implementation of the flags UI. During
      startup, the embedded WebView implementation will check if the user has
      enabled developer mode, and if so, fetch the flag overrides from the
      service.
      
      This uses a ContentProvider instead of an aidl method on the service
      interface for the sake of a simple synchronous IPC. Although aidl itself
      supports synchronous IPC, the Android framework only supports binding to
      the service asynchronously. We require fully synchronous IPC so we can
      block startup while we fetch the flags.
      
      Now that we've settled on using a ContentProvider to plumb information
      from the developer UI to embedded WebViews, this changes "developer
      mode" to be defined by the ContentProvider's state rather than the
      Service's state, which has the side benefit of simplifying some of the
      Activity/Service code.
      
      We rely on PackageManager APIs to check if developer mode is enabled.
      The check itself should have very little impact to startup time, since
      PackageManager caches its state in RAM. I benchmarked this check (when
      developer mode is disabled) at 0ms on my Google Pixel 2 device. For
      simplicity, we do not care about performance when developer mode is
      enabled, as this is not the usual user experience.
      
      Bug: 981143
      Test: Manual - toggle debug border flag, start WebView shell, see borders
      Test: Benchmark isDeveloperModeEnabled() with System.currentTimeMillis()
      Test: run_android_webview_junit_tests -f *ServiceNamesTest*
      Change-Id: I7cc67d1bdf8f0f2ce0fce714fb359160899354a7
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1977828
      Commit-Queue: Nate Fischer <ntfschr@chromium.org>
      Reviewed-by: default avatarRichard Coles <torne@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#726993}
      34df84d5
    • Jordan Bayles's avatar
      Roll src/third_party/openscreen/src/ 2c5e3d4c9..8b5e9a483 (4 commits) · 606e6049
      Jordan Bayles authored
      https://chromium.googlesource.com/openscreen/+log/2c5e3d4c9d60..8b5e9a4830ef
      
      $ git log 2c5e3d4c9..8b5e9a483 --date=short --no-merges --format='%ad %ae %s'
      2019-12-20 jophba Fix build issues in Chrome causing unit tests build to fail
      2019-12-18 rwkeane mDNS: Add Known Answer Suppression to Querier
      2019-12-20 rwkeane mDNS: Responder Known Answer Suppression
      2019-12-19 btolsch Clear fqdn in mDNSResponder setup
      
      Created with:
        roll-dep src/third_party/openscreen/src
      
      TBR=mfoltz@chromium.org
      
      Change-Id: Ic815d00d8e490271c395b9caaba56e454471fa25
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1978845Reviewed-by: default avatarYuri Wiitala <miu@chromium.org>
      Commit-Queue: Jordan Bayles <jophba@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#726992}
      606e6049
    • Balazs Engedy's avatar
      Name Permissions.Action.WithDisposition.* that in code too. · c55e1cfe
      Balazs Engedy authored
      These histograms were recorded under the incorrect name:
        Permissions.Prompt.Disposition.*
      
      Bug: 986737, 1036520
      Change-Id: I6d27725257bbc96d1b18ec20c67d7e28533b6ac4
      TBR: andypaicu@chromium.org
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1978692
      Commit-Queue: Balazs Engedy <engedy@chromium.org>
      Reviewed-by: default avatarBalazs Engedy <engedy@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#726991}
      c55e1cfe
    • Chris Harrelson's avatar
      Only invoke text and element fragment anchors after layout. · e6b10ae2
      Chris Harrelson authored
      Previously, they could be invoked directly by load events (which would
      sometimes force layout first, and sometimes not). This is
      problematic because layout may not be clean, and forcing layout
      is not straightforward or desirable in these cases.
      
      Now the fragment anchors can only be invoked during the main lifecycle
      or a forced layout (*), and in both cases after layout is done. In order
      to make sure that one of these occurs during page load, queue an
      animation frame after finishing load of the document (this is where
      previously it would have synchronously invoked the fragment anchor),
      or setting a fragment anchor.
      
      (*) We still need fragment anchors to be invoked by forced layouts,
      because script is allowed to change anchors and read back their results
      synchronously, and this is necessary for web compatibility.
      
      Bug: 1018632
      
      Change-Id: I6121962e12e50913a58a80330a3b5de96fef5f4f
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1935508
      Commit-Queue: Chris Harrelson <chrishtr@chromium.org>
      Reviewed-by: default avatarDavid Bokan <bokan@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#726990}
      e6b10ae2
    • Manas Verma's avatar
      [Autofill Auth Refactor] Wrapping all base::Value with base::Optional · 73162207
      Manas Verma authored
      This will allow to replace ".is_dict()" or ".is_none()" checks to ".has_value()"
      checks.
      
      Bug: 949269
      Change-Id: I5cfd37515cdbed4f765b80bfc213877a2458d0db
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1972948
      Commit-Queue: Jared Saul <jsaul@google.com>
      Reviewed-by: default avatarJared Saul <jsaul@google.com>
      Reviewed-by: default avatarSiyu An <siyua@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#726989}
      73162207
  2. 20 Dec, 2019 34 commits