Closed Bug 1494054 Opened 6 years ago Closed 6 years ago

All Payment* webidl interfaces should only be exposed to secure contexts

Categories

(Core :: DOM: Web Payments, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

See dom/tests/mochitest/general/test_interfaces_secureContext.html after enabling with bug 1481971.
Priority: P5 → P2
Whiteboard: [webpayments-reserve]
Hi Baku... weird thing here. The referenced mochitest is claiming that the various Payment Request API interfaces are showing up in insecure contexts, but the interfaces in the IDL files are clearly marked as `SecureContext` and definitely don't have ` Func="IsChromeOrXBL"` declared on them. 

I've checked in Nightly, and the interfaces don't show up for me in insecure contexts (http://) or in the browser's debug console. Any ideas?
Flags: needinfo?(amarchesini)
(In reply to Marcos Caceres [:marcosc] from comment #2)
> Hi Baku... weird thing here. The referenced mochitest is claiming that the
> various Payment Request API interfaces are showing up in insecure contexts,
> but the interfaces in the IDL files are clearly marked as `SecureContext`
> and definitely don't have ` Func="IsChromeOrXBL"` declared on them. 

White insecure contexts? It seems to me that the test is for secureContexts.
Flags: needinfo?(amarchesini)
Wait, I’ll try this again. I need to apply the patch from the other bug 🤪
Ah, sorry, I guess I misunderstood the test failure. I guess we just need to update test_interfaces_secureContext.html to add the Payment* interfaces in bug 1494054.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
Priority: P2 → --
Whiteboard: [webpayments-reserve]
(In reply to Matthew N. [:MattN] (PM me if requests are blocking you) from comment #5)
> Ah, sorry, I guess I misunderstood the test failure.

Me too. I thought it was appearing in insecure contexts! 

> I guess we just need to
> update test_interfaces_secureContext.html to add the Payment* interfaces in
> bug 1494054.

Ok cool.
You need to log in before you can comment on or make changes to this bug.