Closed Bug 785673 Opened 12 years ago Closed 12 years ago

nsprotocolproxyservice::asyncresolve double applies filters

Categories

(Core :: Networking, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: mcmanus, Assigned: mcmanus)

References

Details

Attachments

(1 file)

DoCallback() means to apply the filters after processing the PAC string, but it applies them in all cases. Unfortunately the in the case of no PAC being used that means the filters are applied twice, and as the original list is actually an input into each ->filter() call this can change the result.

the existing xpcshell test_protocolproxyservice.js actually triggers this if you change filter test 2 to be asynchronous from its current sync implementation. I've added the async version as test 3 to the test.
Attached patch patch 0Splinter Review
Assignee: nobody → mcmanus
Status: NEW → ASSIGNED
Attachment #655396 - Flags: review?(cbiesinger)
Attachment #655396 - Flags: review?(cbiesinger) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/03dce8e94aa9

(the pushlog comment says 758673 - 2 digits transposed)
mozilla central 03dce8e94aa9
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: