xpcom/tests/TestScriptable.idl

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     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