https://github.com/web-platform-tests/wpt
Raw File
Tip revision: bf7cc00ba4855d78175d162308b5c59c6bed197d authored by Andy Paicu on 23 May 2018, 13:12:21 UTC
Prevent sandboxed documents from reusing the default window
Tip revision: bf7cc00
payment-request-not-exposed.https.worker.js
importScripts("/resources/testharness.js");

test(() => {
  assert_true(isSecureContext);
  assert_false('PaymentRequest' in self);
}, "PaymentRequest constructor must not be exposed in worker global scope");
done();
back to top