Bug 729140 - Add de-XPCOMed getter for private browsing status on nsILoadContext. r=bz
authorJosh Matthews <josh@joshmatthews.net>
Tue, 21 Feb 2012 12:08:22 -0500
changeset 87729 4facf0c60bddc6d4c4e1cd1eeb76db7bd0bc76aa
parent 87728 15461fddfe455656a16f69c3df65fac07ede4777
child 87730 7dce5c5c9654dd6475ebf3fc921abf1d2b95e114
push id6482
push userjosh@joshmatthews.net
push dateSat, 25 Feb 2012 21:58:18 +0000
treeherdermozilla-inbound@4facf0c60bdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs729140
milestone13.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 729140 - Add de-XPCOMed getter for private browsing status on nsILoadContext. r=bz
docshell/base/nsILoadContext.idl
--- a/docshell/base/nsILoadContext.idl
+++ b/docshell/base/nsILoadContext.idl
@@ -83,9 +83,20 @@ interface nsILoadContext : nsISupports
    * on any URIs that might be around.
    */
   readonly attribute boolean isContent;
 
   /*
    * Attribute that determines if private browsing should be used.
    */
   attribute boolean usePrivateBrowsing;
+
+%{C++
+  /**
+   * De-XPCOMed getter to make call-sites cleaner.
+   */
+  bool UsePrivateBrowsing() {
+    bool usingPB;
+    GetUsePrivateBrowsing(&usingPB);
+    return usingPB;
+  }
+%}
 };