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.
1 <!DOCTYPE html>
2 <title>The getRangeAt method</title>
3 <div id=log></div>
4 <script src=/resources/testharness.js></script>
5 <script src=/resources/testharnessreport.js></script>
6 <script>
7 test(function() {
8 var sel = getSelection();
9 var range = document.createRange();
10 sel.addRange(range);
11 assert_throws("INDEX_SIZE_ERR", function() { sel.getRangeAt(-1); })
12 assert_throws("INDEX_SIZE_ERR", function() { sel.getRangeAt(1); })
13 });
14 </script>