Closed Bug 902170 Opened 11 years ago Closed 11 years ago

Suppress 'PAC file installed' message when running tests

Categories

(Core :: Networking: DNS, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: ttaubert, Assigned: mcmanus)

References

Details

Attachments

(1 file)

There currently is a *huge* message printed by ProxyAutoConfig at the start of every test run. This gets really annoying when trying to debug and run tests on your machine. Can we maybe only show this message in debug mode? Or maybe not at all?

Here is what this message looks like: http://pastebin.mozilla.org/2797063
Flags: needinfo?(mcmanus)
ha! - data: URIs as PAC URIs - what a hack.

Anyhow - can you confirm the builds here satisfy your needs?
https://tbpl.mozilla.org/?tree=Try&rev=3acaae2b1f48
Flags: needinfo?(mcmanus)
Assignee: nobody → mcmanus
Status: NEW → ASSIGNED
Flags: needinfo?(ttaubert)
\o/ This works great, thank you.
Flags: needinfo?(ttaubert)
Attachment #789539 - Flags: review?(jduell.mcbugs)
Comment on attachment 789539 [details] [diff] [review]
don't log data: PAC URIs to JS console

Review of attachment 789539 [details] [diff] [review]:
-----------------------------------------------------------------

A thing of beauty is a joy forever :)

::: netwerk/base/src/ProxyAutoConfig.cpp
@@ +601,5 @@
>    JSAutoRequest ar(mJSRuntime->Context());
>    JSAutoCompartment ac(mJSRuntime->Context(), mJSRuntime->Global());
>  
> +  // this is not on the main thread, so it can't use nsIRUI scheme methods
> +  bool isDataURI = nsDependentCSubstring(mPACURI, 0, 5).LowerCaseEqualsASCII("data:", 5);

maybe add comment?

  // we don't want to print data:: URIs to the console as they can be long.
Attachment #789539 - Flags: review?(jduell.mcbugs) → review+
https://hg.mozilla.org/mozilla-central/rev/26373e95498d
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: