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

Unified Diff: third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js

Issue 2657023005: [webnfc] Allow access to WebNFC API only from main frame (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js
diff --git a/third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js b/third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js
index ff8f03ebc150f3917f11acdef311b02fd0f01446..6ff37788b473e047a1f376f81309dcb97942b41c 100644
--- a/third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js
+++ b/third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js
@@ -406,7 +406,13 @@ function nfc_mocks(mojo) {
});
return Promise.resolve({
+ // Interface instance bound to main frame.
mockNFC: mockNFC,
+ // Constructor for mock NFC class.
+ MockNFC: MockNFC,
+ // Loaded mojom interface.
+ NFC: nfc.NFC,
+ // Helper functions for comparing WebNFC structures.
assertNFCMessagesEqual: assertNFCMessagesEqual,
assertNFCPushOptionsEqual: assertNFCPushOptionsEqual,
assertWebNFCMessagesEqual: assertWebNFCMessagesEqual,

Powered by Google App Engine
This is Rietveld 408576698