Closed
Bug 799470
Opened 14 years ago
Closed 14 years ago
pac file dnsResolve() should return null on fail
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: mcmanus, Assigned: mcmanus)
References
Details
Attachments
(1 file)
|
3.75 KB,
patch
|
Biesinger
:
review+
bajaj
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
in bug 795597 matti provides this pac file that isn't working for two reasons.
function FindProxyForURL(url, host){
if (isResolvable("nonexistant.lan"))
{
return "DIRECT";
}
else {
alert(myIpAddress());
return "SOCKS5 127.0.0.1:8080";
}
}
one reason is that isResolvable(foo) calls dnsResolve(foo) which was, when unable to resolve foo, was returning a function failure instead of null which is the backwards compatible thing to do.
| Assignee | ||
Comment 1•14 years ago
|
||
Updated•14 years ago
|
Attachment #669609 -
Flags: review?(cbiesinger) → review+
| Assignee | ||
Comment 2•14 years ago
|
||
| Assignee | ||
Comment 3•14 years ago
|
||
Comment on attachment 669609 [details] [diff] [review]
patch 0
[Approval Request Comment]
Bug caused by (feature/regressing bug #): jank killing proxy rewrite 769764
User impact if declined: PAC files relying on negative dnsResolve() or isHostResolvable() behavior will have compatibility problems
Testing completed (on m-c, etc.): manual testing, xpcshell coverage, confirmation with a handful of in the wild examples
Risk to taking this patch (and alternatives if risky): extremely low.
String or UUID changes made by this patch: none
Attachment #669609 -
Flags: approval-mozilla-aurora?
| Assignee | ||
Updated•14 years ago
|
status-firefox18:
--- → affected
status-firefox19:
--- → fixed
Comment 4•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Comment 5•14 years ago
|
||
Comment on attachment 669609 [details] [diff] [review]
patch 0
Approving for aurora as the latest nightly with this patch confirms to fix bug 795597 tracked for 18 and the patch itself is low risk .
Attachment #669609 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
| Assignee | ||
Comment 6•14 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•