addon-sdk/source/test/test-context-menu.html

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <!-- This Source Code Form is subject to the terms of the Mozilla Public
     2    - License, v. 2.0. If a copy of the MPL was not distributed with this
     3    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     5 <html>
     6   <head>
     7     <meta charset="UTF-8">
     8     <title>Context menu test</title>
     9     <style>
    10       p { display: inline-block; }
    11     </style>
    12   </head>
    13   <body>
    14     <p>
    15       <img id="image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHWSURBVHjaYvz//z8DJQAggJiQOe/fv2fv7Oz8rays/N+VkfG/iYnJfyD/1+rVq7ffu3dPFpsBAAHEAHIBCJ85c8bN2Nj4vwsDw/8zQLwKiO8CcRoQu0DxqlWrdsHUwzBAAIGJmTNnPgYa9j8UqhFElwPxf2MIDeIrKSn9FwSJoRkAEEAM0DD4DzMAyPi/G+QKY4hh5WAXGf8PDQ0FGwJ22d27CjADAAIIrLmjo+MXA9R2kAHvGBA2wwx6B8W7od6CeQcggKCmCEL8bgwxYCbUIGTDVkHDBia+CuotgACCueD3TDQN75D4xmAvCoK9ARMHBzAw0AECiBHkAlC0Mdy7x9ABNA3obAZXIAa6iKEcGlMVQHwWyjYuL2d4v2cPg8vZswx7gHyAAAK7AOif7SAbOqCmn4Ha3AHFsIDtgPq/vLz8P4MSkJ2W9h8ggBjevXvHDo4FQUQg/kdypqCg4H8lUIACnQ/SOBMYI8bAsAJFPcj1AAEEjwVQqLpAbXmH5BJjqI0gi9DTAAgDBBCcAVLkgmQ7yKCZxpCQxqUZhAECCJ4XgMl493ug21ZD+aDAXH0WLM4A9MZPXJkJIIAwTAR5pQMalaCABQUULttBGCCAGCnNzgABBgAMJ5THwGvJLAAAAABJRU5ErkJggg==">
    16     </p>
    18     <p>
    19       <a id="link" href="">
    20         A simple link.
    21       </a>
    22     </p>
    24     <p>
    25       <a href="">
    26         <span id="span-link">
    27           A span inside a link.
    28         </span>
    29       </a>
    30     </p>
    32     <p id="text">
    33       Some text.
    34     </p>
    36     <p>
    37       <textarea id="textfield">
    38         A text field,
    39         with some text.
    40       </textarea>
    41     </p>
    43     <p>
    44       <iframe id="iframe" src="data:text/html;charset=utf-8,<p id='text'>An iframe</p>."
    45               width="200" height="100">
    46       </iframe>
    47     </p>
    49     <p>
    50       <a id="targetlink" target="_blank" href="">
    51         A targetted link.
    52       </a>
    53     </p>
    55     <p>
    56       <input type="submit" id="button">
    57     </p>
    59     <p>
    60       <a class="predicate-test-a" href="#test">
    61         A link with no ID and an anchor, used by PredicateContext tests.
    62       </a>
    63     </p>
    65     <p>
    66       <input type="text" id="textbox" value="test value">
    67     </p>
    69     <p>
    70       <input type="text" id="readonly-textbox" readonly="true" value="readonly value">
    71     </p>
    73     <p>
    74       <input type="text" id="disabled-textbox" disabled="true" value="disabled value">
    75     </p>
    77     <p>
    78       <p contenteditable="true" id="editable">This content is editable.</p>
    79     </p>
    80   </body>
    81 </html>

mercurial