Closed Bug 1215880 Opened 9 years ago Closed 7 years ago

Allow registering async proxy filter

Categories

(Core :: Networking, defect, P5)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1152332
Tracking Status
firefox44 --- affected

People

(Reporter: xidorn, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-would-take])

Currently, the only mechanism for addon to change proxy (apart from modifying the prefs) is adding proxy filter, and the interface of proxy filter is designed that it can only return proxy info synchronously.

However, proxy decision may rely on the IP address of the target instead of only the url. In that case, the filter have to synchronously resolve the address because of the limitation above, which can block the requesting thread. It is undesired.

OTOH, for PAC file, we do that in a separate thread, and make the dnsResolve() function be handled asynchronously. It is funny that something we can do in pac file cannot be done via internal interface for addon.

So I suggest we add API to allow having async proxy filter.
Whiteboard: [necko-would-take]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P5
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.