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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
DUPLICATE
of bug 683280
People
(Reporter: azakai, Unassigned)
Details
Attachments
(1 file)
921 bytes,
patch
|
bent.mozilla
:
review-
|
Details | Diff | Splinter 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)
We have bug 683280 for localhost.
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
Updated•13 years ago
|
Attachment #557316 -
Flags: review?(bent.mozilla) → review-
Reporter | ||
Comment 3•13 years ago
|
||
Sounds good.
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•