Auto merge of #27534 - jdm:badcert-buttons, r=asajeffrey

Move action buttons above invalid certificate details.

Since the certificate details can fill the screen and require scrolling, let's move the user's choices so they're always in view when the SSL error page first loads.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #27520
This commit is contained in:
bors-servo 2020-08-08 02:48:22 -04:00 committed by GitHub
commit 589ab01be4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,9 +4,9 @@
</head>
<body>
<p>${reason}</p>
<pre id="bytes">${bytes}</pre>
<button id="leave" onclick="history.back()">Go back (recommended)</button>
<button id="allow">Allow certificate temporarily</button>
<pre id="bytes">${bytes}</pre>
<script>
let bytes = document.getElementById('bytes').textContent;
let button = document.getElementById('allow');