Skip to content

PaymentRequest: Use [SecureContext] instead of manual check - #8648

Merged
marcoscaceres merged 1 commit into
masterfrom
chromium-export-cl-818594
Mar 23, 2018
Merged

marcoscaceres merged 1 commit into
masterfrom
chromium-export-cl-818594

Conversation

@chromium-wpt-export-bot

@chromium-wpt-export-bot chromium-wpt-export-bot commented Dec 11, 2017 •

Copy link
Copy Markdown
Collaborator

Until now, we had to use IsSecureContext() to check whether an execution
context is a secure context manually. But we can use [SecureContext]
instead of the manual check now. After this change, all related APIs
including PaymentRequest will not be exposed in non-secure context.

Bug: none
Change-Id: Ie5b3fc6641e882cc2844595fea350b6adb3425db

Reviewed-on: https://chromium-review.googlesource.com/818594
WPT-Export-Revision: 2c38d5478806268c23be2edfee31c1a19b881560


This change is Reviewable

Until now, we had to use IsSecureContext() to check whether an execution
context is a secure context manually. But we can use [SecureContext]
instead of the manual check now. After this change, all related APIs
including PaymentRequest will not be exposed in non-secure context.

Bug: none
Change-Id: Ie5b3fc6641e882cc2844595fea350b6adb3425db

@wpt-pr-bot wpt-pr-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already reviewed downstream.

@ghost

ghost commented Dec 11, 2017 •

Copy link
Copy Markdown

Build PASSED

Started: 2017-12-11 10:53:07
Finished: 2017-12-11 10:59:26

View more information about this build on:

@marcoscaceres

Copy link
Copy Markdown
Contributor

@sideshowbarker, for these tests coming from Chromium that are labeled as "don't merge yet" - if they are ok, should I remove the label and merge them?

@sideshowbarker

Copy link
Copy Markdown
Member

@sideshowbarker, for these tests coming from Chromium that are labeled as "don't merge yet" - if they are ok, should I remove the label and merge them?

As far as I know, yes. Otherwise there’s no way I know of that’ll cause the “do not merge yet” label to get removed. The expectation appears to be that whoever reviews it either needs to remove it after reviewing — or else just merge it without removing the label, since the presence of that label doesn’t actually make the system block it from being merged. But manually removing it before merging seems to the better thing to do.

@marcoscaceres

Copy link
Copy Markdown
Contributor

Ok, cool. Thanks for the clarification.

@marcoscaceres
marcoscaceres merged commit a1ec330 into master Mar 23, 2018
@marcoscaceres
marcoscaceres deleted the chromium-export-cl-818594 branch March 23, 2018 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants