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