Bugzilla
Quick Search
Browse
Advanced Search
Reports
Quick Search Help
Documentation
New Account
Log In
Login with GitHub
Remember
Forgot Password
Mozilla Home
Privacy
Cookies
Legal
Attachment 9092090 Details for
Bug 1580496
testcase.html
testcase.html (text/html), 1.09 KB, created by
Jason Kratzer [:jkratzer]
(
hide
)
Description:
testcase.html
Filename:
MIME Type:
Creator:
Jason Kratzer [:jkratzer]
Size:
1.09 KB
patch
obsolete
><html> ><head> > <script> > const supportedPaymentMethods = [{ supportedMethods: 'basic-card' }] > const paymentDetails = { > total: { > label: 'Total', > amount: { > currency: 'USD', > value: 0 > } > } > } > > function start () { > const xhr = new XMLHttpRequest() > const frame = document.createElement('frame') > document.documentElement.appendChild(frame) > xhr.open('POST', '1', false) > xhr.send() > frame.contentWindow.eval(`w=new PaymentRequest(${supportedPaymentMethods.toSource()}, ${paymentDetails.toSource()})`) > > const idb = indexedDB.open('', {}) > idb.onsuccess = () => window.close() > document.addEventListener('DOMAttrModified', () => { > xhr.open('P', '', false) > xhr.send() > }, {}) > const form = document.createElementNS('http://www.w3.org/1999/xhtml', 'form') > document.documentElement.appendChild(form) > form.method = '' > } > > document.addEventListener('DOMContentLoaded', start) > </script> ></head> ></html>
<html> <head> <script> const supportedPaymentMethods = [{ supportedMethods: 'basic-card' }] const paymentDetails = { total: { label: 'Total', amount: { currency: 'USD', value: 0 } } } function start () { const xhr = new XMLHttpRequest() const frame = document.createElement('frame') document.documentElement.appendChild(frame) xhr.open('POST', '1', false) xhr.send() frame.contentWindow.eval(`w=new PaymentRequest(${supportedPaymentMethods.toSource()}, ${paymentDetails.toSource()})`) const idb = indexedDB.open('', {}) idb.onsuccess = () => window.close() document.addEventListener('DOMAttrModified', () => { xhr.open('P', '', false) xhr.send() }, {}) const form = document.createElementNS('http://www.w3.org/1999/xhtml', 'form') document.documentElement.appendChild(form) form.method = '' } document.addEventListener('DOMContentLoaded', start) </script> </head> </html>
Actions:
View
Attachments on
bug 1580496
:
9092089
| 9092090 |
9092091
|
9093015