Closed Bug 1839303 Opened 1 year ago Closed 11 months ago

URL constructor only works properly with http/https urls

Categories

(Web Compatibility :: Site Reports, defect)

Firefox 114
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1326394

People

(Reporter: hammeradam894, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/114.0

Steps to reproduce:

I tried to create a new URL from a string that has a protocol other than http/https in javascript.
Eg: "amqp://guest:guest@127.0.0.1:5672/test"

Actual results:

The url that was created was not parsed correctly. Can't get the information about the protocol, port etc. used.

Expected results:

Doing the same in safari, node js or bun parses the url correctly.

This may be a duplicate of bug 1326394, but moving across to Web Compatibility in the first instance for their awareness/checking.

Component: Untriaged → Desktop
Product: Firefox → Web Compatibility
See Also: → 1326394
Status: UNCONFIRMED → RESOLVED
Closed: 11 months ago
Duplicate of bug: 1326394
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: