Bug 1735683 - Intermittent dom/security/test/https-only/browser_hsts_host.js | No header set. r=ckerschb

Differential Revision: https://phabricator.services.mozilla.com/D134941
This commit is contained in:
lyavor 2022-01-03 13:21:44 +00:00
Родитель 990e9d9558
Коммит e6f780ebd5
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -75,6 +75,11 @@ function observer(subject, topic, state) {
function onExamineResponse(subject) {
let channel = subject.QueryInterface(Ci.nsIHttpChannel);
// If message was already read or is not related to "example.com",
// don't examine it.
if (!channel.URI.spec.includes("example.com") || readMessage) {
return;
}
info("onExamineResponse with " + channel.URI.spec);
if (channel.URI.spec.includes("reset")) {
try {