layout/tools/layout-debug/src/nsILayoutRegressionTester.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: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #include "nsISupports.idl"
     8 interface nsIDOMWindow;
     9 interface nsIFile;
    11 [scriptable, uuid(B249B2C0-EE11-11DA-8AD9-0800200C9A66)]
    12 interface nsILayoutRegressionTester : nsISupports
    13 {
    14   /**
    15    * Dumps the content of a window
    16    * @param aWindowToDump       the window to dump (may be an iframe etc)
    17    * @param aFile               the file to dump to. It will be created if necessary, otherwise
    18                                 truncated. If nil, write to stdout.
    19    * @param aFlagsMask          some flags that determine what to dump
    20    * @param aFlagsMask          some flags that determine what to dump
    21    * @param aResult             a status value indicating whether the dump happened, 
    22                                 whether the page was still loading, or whether some other error happened.
    23    */
    24   const short DUMP_FLAGS_MASK_DEFAULT        = 0;
    25   const short DUMP_FLAGS_MASK_PRINT_MODE     = 1;
    27   const long DUMP_RESULT_COMPLETED           = 0;   // loaded OK
    28   const long DUMP_RESULT_LOADING             = 1;   // still loading
    29   const long DUMP_RESULT_ERROR               = 2;   // an error occurred
    31   long dumpFrameModel(in nsIDOMWindow aWindowToDump, in nsIFile aFile, in unsigned long aFlagsMask);
    33   /**
    34    * Compares the contents of frame model files
    35    * @param aBaseFile           the baseline file, opened with read permissions
    36    * @param aVerFile            file containing the results to verify, opened with read permissions
    37    * @param aFlags              flags specifying output verbosity
    38    * @param aResult             result of the comparison: zero if the files are same, non-zero if different
    39    */
    40   const short COMPARE_FLAGS_VERBOSE        = 0;
    41   const short COMPARE_FLAGS_BRIEF          = 1;
    42   boolean compareFrameModels(in nsIFile aBaseFile, in nsIFile aVerFile, in unsigned long aFlags);
    43 };

mercurial