xpcom/tests/TestScriptable.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.

     2 [scriptable, uuid(76d74662-0eae-404c-9d1f-697c0e321c0a)]
     3 interface testScriptableInterface {
     4   readonly attribute long scriptable_attr1;
     5   attribute long scriptable_attr2;
     6   [noscript] readonly attribute long notscriptable_attr1;
     7   [noscript] attribute long notscriptable_attr2;
     9   void scriptable_method1();
    10   [noscript] void notscriptable_method1();
    11   [notxpcom] void notscriptable_method2();
    12   [noscript, notxpcom] void notscriptable_method3();
    13 };
    15 [uuid(76d74662-0eae-404c-9d1f-697c0e321c0a)]
    16 interface testNotscriptableInterface {
    17   readonly attribute long notscriptable_attr1;
    18   attribute long notscriptable_attr2;
    20   void notscriptable_method1();
    21 };

mercurial