<div dir="ltr"><div><div><div><div><div><div>Hello,<br><br></div>I have been looking at bug <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=356831">356831</a>, which is about Firefox not querying DHCP when auto-detecting the web proxy, and have a draft patch for Windows. (An earlier comment on this bug suggested creating sub-bugs for each platform, and I think that will have to be done as the approach for Windows wouldn't translate to Linux, say.)<br><br></div>I have read the instructions in <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/How_to_Submit_a_Patch">https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/How_to_Submit_a_Patch</a> but unfortunately I don't think I have the Bugzilla permissions to follow them properly because I don't seem to be able to assign the bug to myself or submit a comment with an attachment. I'm therefore sending the attachment here. Sorry for the nuisance.<br><br></div>The approach I have tried follows the pattern of SystemProxySettings - I created an interface called nsIDHCPClient, implemented it for Windows, and injected the class into nsPACMan.<br><br></div>I'd really like some feedback on this and guidance on testing. I haven't written any tests yet. Maybe I should fake out the behaviour of the nsIDHCPClient and see whether nsPACMan behaves as expected?<br><br></div>Thanks!<br><br></div>Polly<br></div>