mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
moebius#130: URL parser - fix: don't allow empty host name
https://github.com/MoonchildProductions/moebius/issues/130
This commit is contained in:
parent
aa1df43166
commit
196fddddb6
14 changed files with 51 additions and 72 deletions
|
|
@ -143,7 +143,7 @@ add_test(function serverErrorResponse () {
|
|||
|
||||
add_test(function networkErrorResponse () {
|
||||
let client = new FxAccountsOAuthGrantClient({
|
||||
serverURL: "http://",
|
||||
serverURL: "http://domain.dummy",
|
||||
client_id: "abc123"
|
||||
});
|
||||
Services.prefs.setBoolPref("identity.fxaccounts.skipDeviceRegistration", true);
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ add_test(function server401ResponsePersists () {
|
|||
|
||||
add_test(function networkErrorResponse () {
|
||||
let client = new FxAccountsProfileClient({
|
||||
serverURL: "http://",
|
||||
serverURL: "http://domain.dummy",
|
||||
fxa: mockFxa,
|
||||
});
|
||||
client.fetchProfile()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue