Open Bug 908398 Opened 11 years ago Updated 2 years ago

Add performance warning for use of nsITraceableChannel

Categories

(Core :: Networking, defect, P5)

defect

Tracking

()

People

(Reporter: sworkman, Unassigned)

Details

(Whiteboard: [necko-would-take])

When nsITraceableChannel is used to insert JS-based nsIStreamListener's, off main thread delivery of OnDataAvailable is disabled. This is a potential performance consideration, and as such, users of nsITraceableChannel should be warned.

This bug tracks the following:

-- Adding a warning comment in nsITraceableChannel.idl.
-- Add a warning to the console when nsITraceableChannel is used and disables off main thread delivery of OnDataAvailable.
-- Add warnings to nsITraceableChannel documentation on the web, e.g.
   -> https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/NsITraceableChannel,
   -> http://www.softwareishard.com/blog/firebug/nsitraceablechannel-intercept-http-traffic/

Note: Firebug is a popular user of this IDL, most notably for the Net panel. Since this is used for debugging mostly, and doesn't affect regular performance, console warnings can be disabled for Firebug.
Whiteboard: [necko-would-take]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P5
Assignee: sjhworkman → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.