mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 19:55:39 +00:00
Bug 1505707 - Sandbox the template frame for payment mochitests to prevent JS execution errors. r=jaws
We only want the frame to be able to share markup, we don't need JS to execute and the JS was causing an unhandled rejection error. Differential Revision: https://phabricator.services.mozilla.com/D11330 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
c4436f280b
commit
993a88ccc2
@ -21,6 +21,7 @@ Test the basic-card-form element
|
|||||||
<body>
|
<body>
|
||||||
<p id="display" style="height: 100vh; margin: 0;">
|
<p id="display" style="height: 100vh; margin: 0;">
|
||||||
<iframe id="templateFrame" src="paymentRequest.xhtml" width="0" height="0"
|
<iframe id="templateFrame" src="paymentRequest.xhtml" width="0" height="0"
|
||||||
|
sandbox="allow-same-origin"
|
||||||
style="float: left;"></iframe>
|
style="float: left;"></iframe>
|
||||||
</p>
|
</p>
|
||||||
<div id="content" style="display: none">
|
<div id="content" style="display: none">
|
||||||
|
@ -20,7 +20,9 @@ Test the paymentOptions address-picker
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p id="display" style="height: 100vh; margin: 0;">
|
<p id="display" style="height: 100vh; margin: 0;">
|
||||||
<iframe id="templateFrame" src="../../res/paymentRequest.xhtml" width="0" height="0"></iframe>
|
<iframe id="templateFrame" src="../../res/paymentRequest.xhtml" width="0" height="0"
|
||||||
|
sandbox="allow-same-origin"
|
||||||
|
style="float: left;"></iframe>
|
||||||
</p>
|
</p>
|
||||||
<div id="content" style="display: none">
|
<div id="content" style="display: none">
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ Test the payment-dialog custom element
|
|||||||
<body>
|
<body>
|
||||||
<p id="display" style="height: 100vh; margin: 0;">
|
<p id="display" style="height: 100vh; margin: 0;">
|
||||||
<iframe id="templateFrame" src="paymentRequest.xhtml" width="0" height="0"
|
<iframe id="templateFrame" src="paymentRequest.xhtml" width="0" height="0"
|
||||||
|
sandbox="allow-same-origin"
|
||||||
style="float: left;"></iframe>
|
style="float: left;"></iframe>
|
||||||
</p>
|
</p>
|
||||||
<div id="content" style="display: none">
|
<div id="content" style="display: none">
|
||||||
|
@ -20,6 +20,7 @@ Test the payment-dialog custom element
|
|||||||
<body>
|
<body>
|
||||||
<p id="display" style="height: 100vh; margin: 0;">
|
<p id="display" style="height: 100vh; margin: 0;">
|
||||||
<iframe id="templateFrame" src="paymentRequest.xhtml" width="0" height="0"
|
<iframe id="templateFrame" src="paymentRequest.xhtml" width="0" height="0"
|
||||||
|
sandbox="allow-same-origin"
|
||||||
style="float: left;"></iframe>
|
style="float: left;"></iframe>
|
||||||
</p>
|
</p>
|
||||||
<div id="content" style="display: none">
|
<div id="content" style="display: none">
|
||||||
|
Loading…
Reference in New Issue
Block a user