Closed Bug 799470 Opened 14 years ago Closed 14 years ago

pac file dnsResolve() should return null on fail

Categories

(Core :: Networking: HTTP, defect)

18 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19
Tracking Status
firefox18 --- fixed
firefox19 --- fixed

People

(Reporter: mcmanus, Assigned: mcmanus)

References

Details

Attachments

(1 file)

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.
Attached patch patch 0 — — Splinter Review
Assignee: nobody → mcmanus
Status: NEW → ASSIGNED
Attachment #669609 - Flags: review?(cbiesinger)
Attachment #669609 - Flags: review?(cbiesinger) → review+
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?
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
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+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: