editor/libeditor/html/crashtests/759748.html

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.

michael@0 1 <!doctype html>
michael@0 2 <body>
michael@0 3 <script>
michael@0 4 var cmds = {
michael@0 5 bold: "",
michael@0 6 italic: "",
michael@0 7 underline: "",
michael@0 8 strikethrough: "",
michael@0 9 subscript: "",
michael@0 10 superscript: "",
michael@0 11 cut: "",
michael@0 12 copy: "",
michael@0 13 paste: "",
michael@0 14 delete: "",
michael@0 15 forwarddelete: "",
michael@0 16 selectall: "",
michael@0 17 undo: "",
michael@0 18 redo: "",
michael@0 19 indent: "",
michael@0 20 outdent: "",
michael@0 21 backcolor: "#888888",
michael@0 22 forecolor: "#888888",
michael@0 23 hilitecolor: "#888888",
michael@0 24 fontname: "Courier",
michael@0 25 fontsize: "6",
michael@0 26 increasefontsize: "",
michael@0 27 decreasefontsize: "",
michael@0 28 inserthorizontalrule: "",
michael@0 29 createlink: "foo",
michael@0 30 insertimage: "foo",
michael@0 31 inserthtml: "foo",
michael@0 32 inserttext: "foo",
michael@0 33 insertparagraph: "",
michael@0 34 gethtml: "",
michael@0 35 justifyleft: "",
michael@0 36 justifyright: "",
michael@0 37 justifycenter: "",
michael@0 38 justifyfull: "",
michael@0 39 removeformat: "",
michael@0 40 unlink: "",
michael@0 41 insertorderedlist: "",
michael@0 42 insertunorderedlist: "",
michael@0 43 formatblock: "h1",
michael@0 44 heading: "h1",
michael@0 45 stylewithcss: "true",
michael@0 46 usecss: "true",
michael@0 47 contentreadonly: "true",
michael@0 48 readonly: "true",
michael@0 49 insertbronreturn: "true",
michael@0 50 enableobjectresizing: "true",
michael@0 51 enableinlinetableediting: "true",
michael@0 52 };
michael@0 53 for (var k in cmds) {
michael@0 54 document.body.innerHTML = "<div contenteditable>abc</div>";
michael@0 55 getSelection().removeAllRanges();
michael@0 56 try { document.execCommand(k, false, cmds[k]) } catch(e) {}
michael@0 57 }
michael@0 58 </script>

mercurial