• Rouslan Solomakhin's avatar
    [Web Payment] Single HTTP GET for colocated SW manifests. · 1f162d50
    Rouslan Solomakhin authored
    Before this patch, if both payment method manifest and the web app
    manifest of a payment app were located in the same file, then Chrome
    would retrieve the same file twice with two separate HTTP GET requests,
    when looking for installable service worker based payment handlers.
    
    This patch compares the URL of the payment method manifest and the web
    app manifest and, if the two are the same, uses the in-memory copy of
    the payment method manifest content as the web app manifest content
    instead of re-downloading it again.
    
    After this patch, when Chrome is looking for installable service worker
    based payment handlers, if the web app manifest and the payment method
    manifest files are located in the same file, then Chrome performs only
    one HTTP GET request to retrieve it.
    
    This patch does not modify Android payment app signature verification,
    which always makes two separate HTTP GET requests for the payment method
    manifest and the web app manifest, without comparing the two URLs for
    equivalence.
    
    Bug: 1069954
    Change-Id: I83f82058caf3153e8ab2807acea05d350abd9b32
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2148114Reviewed-by: default avatarDanyao Wang <danyao@chromium.org>
    Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#759213}
    1f162d50
BUILD.gn 2.45 KB