mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +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
|
|
@ -92,18 +92,6 @@ var gTests = [
|
|||
ref: "",
|
||||
relativeURI: "data/text/plain,2",
|
||||
nsIURL: true, nsINestedURI: false },
|
||||
{ spec: "ftp://",
|
||||
scheme: "ftp",
|
||||
prePath: "ftp://",
|
||||
path: "/",
|
||||
ref: "",
|
||||
nsIURL: true, nsINestedURI: false },
|
||||
{ spec: "ftp:///",
|
||||
scheme: "ftp",
|
||||
prePath: "ftp://",
|
||||
path: "/",
|
||||
ref: "",
|
||||
nsIURL: true, nsINestedURI: false },
|
||||
{ spec: "ftp://ftp.mozilla.org/pub/mozilla.org/README",
|
||||
scheme: "ftp",
|
||||
prePath: "ftp://ftp.mozilla.org",
|
||||
|
|
@ -135,18 +123,6 @@ var gTests = [
|
|||
path: "//mozilla.org/",
|
||||
ref: "",
|
||||
nsIURL: false, nsINestedURI: false },
|
||||
{ spec: "http://",
|
||||
scheme: "http",
|
||||
prePath: "http://",
|
||||
path: "/",
|
||||
ref: "",
|
||||
nsIURL: true, nsINestedURI: false },
|
||||
{ spec: "http:///",
|
||||
scheme: "http",
|
||||
prePath: "http://",
|
||||
path: "/",
|
||||
ref: "",
|
||||
nsIURL: true, nsINestedURI: false },
|
||||
{ spec: "http://www.example.com/",
|
||||
scheme: "http",
|
||||
prePath: "http://www.example.com",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue