Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: chrome/test/data/extensions/api_test/service_worker/payments/page.js

Issue 2880133002: PaymentHandler: Should not allow accessing PaymentManager in Extension.
Patch Set: PaymentHandler: Should not allow accessing PaymentManager in Extension. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 window.runServiceWorker = function() {
6 navigator.serviceWorker.register('sw.js').then(function() {
7 return navigator.serviceWorker.ready;
8 }).then(function(registration) {
9 console.log(registration.paymentManager);
10 return registration.active;
11 }).then(function(paymentManager) {
lazyboy 2017/05/15 20:38:44 The param is not a paymentManager, but it is an ac
12 window.domAutomationController.send(paymentManager);
13 }).catch(function(error) {
14 window.domAutomationController.send(error.name);
15 });
16 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698