• Rouslan Solomakhin's avatar
    [PH][Desktop] Block unsecure pages. · 99a348cf
    Rouslan Solomakhin authored
    Before this patch, a payment handler page could be unsecure.
    
    This patch checks for the following conditions:
    - Unsecure origin.
    - Non-cryptographic scheme.
    - Invalid certificate.
    - Flagged in safe browsing database.
    If any of these conditions are hit, Chrome aborts payment by closing the
    payment handler page and showing an error message.
    
    After this patch, if a payment handler page is detected to be unsecure,
    Chrome closes the payment handler page and shows an error message.
    
    Bug: 828431
    Change-Id: Ifdc5a3e3ebf9c511f21aa03dee2d8d3230ac8b88
    Reviewed-on: https://chromium-review.googlesource.com/1012451Reviewed-by: default avataranthonyvd <anthonyvd@chromium.org>
    Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#550987}
    99a348cf
BUILD.gn 174 KB