layout/tools/layout-debug/src/nsILayoutDebuggingTools.idl

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     2 // vim:cindent:tabstop=4:expandtab:shiftwidth=4:
     3 /* This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this
     5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     7 #include "nsISupports.idl"
     9 interface nsIDOMWindow;
    11 /**
    12  * A series of hooks into non-IDL-ized layout code to allow all the
    13  * layout debugging functions to be used from chrome.
    14  */
    16 [scriptable, uuid(4b968d4b-9c08-4635-a7e0-55084843f0fd)]
    17 interface nsILayoutDebuggingTools : nsISupports
    18 {
    20     /*
    21      * Initialize debugger object to act on a docshell.
    22      */
    23     void init(in nsIDOMWindow win);
    25     /*
    26      * Notify the debugger that the docshell has been told to load a new
    27      * URI.
    28      */
    29     void newURILoaded();
    31     /* Toggle various debugging states */
    32     attribute boolean visualDebugging;
    33     attribute boolean visualEventDebugging;
    34     attribute boolean paintFlashing;
    35     attribute boolean paintDumping;
    36     attribute boolean invalidateDumping;
    37     attribute boolean eventDumping;
    38     attribute boolean motionEventDumping;
    39     attribute boolean crossingEventDumping;
    40     attribute boolean reflowCounts;
    42     /* Run various tests. */
    43     void dumpWebShells();
    44     void dumpContent();
    45     void dumpFrames();
    46     void dumpViews();
    48     void dumpStyleSheets();
    49     void dumpStyleContexts();
    51     void dumpReflowStats();
    52 };

mercurial