зеркало из https://github.com/mozilla/gecko-dev.git
Bug 822367 - With nsMixedContentBlocker.cpp, mixed content XHR calls are considered mixed active content and yield to a security state of STATE_IS_BROKEN. This fixes this mixed content todo-test to test that passes. r=bsmith
This commit is contained in:
Родитель
578f6d3c10
Коммит
8195c3a033
|
@ -152,11 +152,6 @@ function todo(a, message)
|
||||||
postMsg("TODO: " + message);
|
postMsg("TODO: " + message);
|
||||||
}
|
}
|
||||||
|
|
||||||
function todoSecurityState(expectedState, message)
|
|
||||||
{
|
|
||||||
isSecurityState(expectedState, message, todo);
|
|
||||||
}
|
|
||||||
|
|
||||||
function isSecurityState(expectedState, message, test)
|
function isSecurityState(expectedState, message, test)
|
||||||
{
|
{
|
||||||
if (!test)
|
if (!test)
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
req.send(null);
|
req.send(null);
|
||||||
|
|
||||||
// Change should be immediate, the request was sent synchronously
|
// Change should be immediate, the request was sent synchronously
|
||||||
todoSecurityState("broken", "security broken after insecure XHR");
|
isSecurityState("broken", "security broken after insecure XHR");
|
||||||
}
|
}
|
||||||
catch (ex)
|
catch (ex)
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче