Closed Bug 683722 Opened 13 years ago Closed 13 years ago

Workers cannot be created on URLs with IP addresses or localhost

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 683280

People

(Reporter: azakai, Unassigned)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
For example, to see this you can do new Worker('x') in the web console here on bugzilla. The result is |Script file not found|, as expected. But if you connect to an IP address, for example run a local webserver and connect to 127.0.0.1:8000, the same command gives |Error: Could not get domain!|. The cause is that WorkerPrivate::Create tries to get the domain. But an IP address or localhost are not valid inputs for tldService->GetBaseDomain. The attached patch fixes things for IP addresses. I'm not sure what the right way to fix things for localhost is (but localhost is a much smaller problem I think).
Attachment #557316 - Flags: review?(bent.mozilla)
Actually, let's dup to bug 683280 and use the thirdpartyutil code there for both fixes?
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Attachment #557316 - Flags: review?(bent.mozilla) → review-
Sounds good.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: