mozilla

Compare Revisions

Supporting per-window private browsing

Change Revisions

Revision 347021:

Revision 347021 by jdm on

Revision 347023:

Revision 347023 by jdm on

Title:
Supporting per-window private browsing
Supporting per-window private browsing
Slug:
Supporting_per-window_private_browsing
Supporting_per-window_private_browsing
Content:

Revision 347021
Revision 347023
t64    <pre>t64    <pre class="brush: js">
65<code>var channel = Services.io.newChannel("http://example.org", 65<code>var channel = Services.io.newChannel("http://example.org", 
>null, null);>null, null);</code>
66channel.QueryInterface(Components.interfaces.nsIPrivateBrowsingCh66<code>channel.QueryInterface(Components.interfaces.nsIPrivateBrow
>annel);>singChannel);
67channel.setPrivate(true); // force the channel to be loaded in pr67</code><code>channel.setPrivate(true); // force the channel to be
>ivate mode> loaded in private mode</code>
68</code>

Back to History