mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1180330 - http auth prompt shown when opening browser if prompt canceled/dismissed earlier. r=fabrice
This commit is contained in:
parent
cf8e523d4f
commit
cdcdb55832
@ -462,6 +462,7 @@ BrowserElementParent.prototype = {
|
|||||||
/* username and password */
|
/* username and password */
|
||||||
let detail = {
|
let detail = {
|
||||||
host: authDetail.host,
|
host: authDetail.host,
|
||||||
|
path: authDetail.path,
|
||||||
realm: authDetail.realm,
|
realm: authDetail.realm,
|
||||||
isProxy: authDetail.isProxy
|
isProxy: authDetail.isProxy
|
||||||
};
|
};
|
||||||
|
@ -381,6 +381,7 @@ BrowserElementAuthPrompt.prototype = {
|
|||||||
let [hostname, httpRealm] = this._getAuthTarget(channel, authInfo);
|
let [hostname, httpRealm] = this._getAuthTarget(channel, authInfo);
|
||||||
return {
|
return {
|
||||||
host: hostname,
|
host: hostname,
|
||||||
|
path: channel.URI.path,
|
||||||
realm: httpRealm,
|
realm: httpRealm,
|
||||||
username: authInfo.username,
|
username: authInfo.username,
|
||||||
isProxy: !!(authInfo.flags & Ci.nsIAuthInformation.AUTH_PROXY),
|
isProxy: !!(authInfo.flags & Ci.nsIAuthInformation.AUTH_PROXY),
|
||||||
|
@ -49,6 +49,9 @@ function testHttpAuthCancel(e) {
|
|||||||
|
|
||||||
is(e.detail.realm, 'http_realm', 'expected realm matches');
|
is(e.detail.realm, 'http_realm', 'expected realm matches');
|
||||||
is(e.detail.host, 'http://test', 'expected host matches');
|
is(e.detail.host, 'http://test', 'expected host matches');
|
||||||
|
is(e.detail.path,
|
||||||
|
'/tests/dom/browser-element/mochitest/file_http_401_response.sjs',
|
||||||
|
'expected path matches');
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
SimpleTest.executeSoon(function() {
|
SimpleTest.executeSoon(function() {
|
||||||
@ -71,6 +74,9 @@ function testHttpAuth(e) {
|
|||||||
|
|
||||||
is(e.detail.realm, 'http_realm', 'expected realm matches');
|
is(e.detail.realm, 'http_realm', 'expected realm matches');
|
||||||
is(e.detail.host, 'http://test', 'expected host matches');
|
is(e.detail.host, 'http://test', 'expected host matches');
|
||||||
|
is(e.detail.path,
|
||||||
|
'/tests/dom/browser-element/mochitest/file_http_401_response.sjs',
|
||||||
|
'expected path matches');
|
||||||
is(e.detail.isProxy, false, 'expected isProxy is false');
|
is(e.detail.isProxy, false, 'expected isProxy is false');
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
@ -98,6 +104,9 @@ function testProxyAuth(e) {
|
|||||||
|
|
||||||
is(e.detail.realm, 'http_realm', 'expected realm matches');
|
is(e.detail.realm, 'http_realm', 'expected realm matches');
|
||||||
is(e.detail.host, mozproxy, 'expected host matches');
|
is(e.detail.host, mozproxy, 'expected host matches');
|
||||||
|
is(e.detail.path,
|
||||||
|
'/tests/dom/browser-element/mochitest/file_http_407_response.sjs',
|
||||||
|
'expected path matches');
|
||||||
is(e.detail.isProxy, true, 'expected isProxy is true');
|
is(e.detail.isProxy, true, 'expected isProxy is true');
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user