Closed
Bug 799470
Opened 12 years ago
Closed 12 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•12 years ago
|
||
Updated•12 years ago
|
Attachment #669609 -
Flags: review?(cbiesinger) → review+
Assignee | ||
Comment 2•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/1c6b5cae9dc1
Assignee | ||
Comment 3•12 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•12 years ago
|
status-firefox18:
--- → affected
status-firefox19:
--- → fixed
Comment 4•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/1c6b5cae9dc1
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Comment 5•12 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•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/561916b7f5f1
You need to log in
before you can comment on or make changes to this bug.
Description
•