browser/devtools/webaudioeditor/test/doc_complex-context.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 <!-- Any copyright is dedicated to the Public Domain.
michael@0 2 http://creativecommons.org/publicdomain/zero/1.0/ -->
michael@0 3 <!doctype html>
michael@0 4
michael@0 5 <html>
michael@0 6 <head>
michael@0 7 <meta charset="utf-8"/>
michael@0 8 <title>Web Audio Editor test page</title>
michael@0 9 </head>
michael@0 10
michael@0 11 <body>
michael@0 12
michael@0 13 <script type="text/javascript;version=1.8">
michael@0 14 "use strict";
michael@0 15
michael@0 16 /*
michael@0 17 ↱ proc
michael@0 18 osc → gain →
michael@0 19 osc → gain → destination
michael@0 20 buffer →↳ filter →
michael@0 21 */
michael@0 22 let ctx = new AudioContext();
michael@0 23 let osc1 = ctx.createOscillator();
michael@0 24 let gain1 = ctx.createGain();
michael@0 25 let proc = ctx.createScriptProcessor();
michael@0 26 osc1.connect(gain1);
michael@0 27 osc1.connect(proc);
michael@0 28 gain1.connect(ctx.destination);
michael@0 29
michael@0 30 let osc2 = ctx.createOscillator();
michael@0 31 let gain2 = ctx.createGain();
michael@0 32 osc2.connect(gain2);
michael@0 33 gain2.connect(ctx.destination);
michael@0 34
michael@0 35 let buf = ctx.createBufferSource();
michael@0 36 let filter = ctx.createBiquadFilter();
michael@0 37 buf.connect(filter);
michael@0 38 osc2.connect(filter);
michael@0 39 filter.connect(ctx.destination);
michael@0 40
michael@0 41 </script>
michael@0 42 </body>
michael@0 43
michael@0 44 </html>

mercurial