diff --git a/browser/devtools/webaudioeditor/test/browser.ini b/browser/devtools/webaudioeditor/test/browser.ini index 4090858f844f..69afc93ec23c 100644 --- a/browser/devtools/webaudioeditor/test/browser.ini +++ b/browser/devtools/webaudioeditor/test/browser.ini @@ -12,6 +12,7 @@ support-files = doc_iframe-context.html doc_automation.html doc_bug_1125817.html + doc_bug_1130901.html 440hz_sine.ogg head.js @@ -29,21 +30,17 @@ skip-if = true # bug 1092571 [browser_audionode-actor-get-automation-data-01.js] [browser_audionode-actor-get-automation-data-02.js] [browser_audionode-actor-get-automation-data-03.js] +[browser_callwatcher-01.js] [browser_webaudio-actor-simple.js] [browser_webaudio-actor-destroy-node.js] [browser_webaudio-actor-connect-param.js] [browser_webaudio-actor-automation-event.js] -[browser_wa_destroy-node-01.js] - -[browser_wa_first-run.js] -[browser_wa_reset-01.js] -[browser_wa_reset-02.js] -[browser_wa_reset-03.js] -[browser_wa_reset-04.js] -[browser_wa_navigate.js] +[browser_wa_automation-view-01.js] +[browser_wa_automation-view-02.js] [browser_wa_controller-01.js] - +[browser_wa_destroy-node-01.js] +[browser_wa_first-run.js] [browser_wa_graph-click.js] [browser_wa_graph-markers.js] [browser_wa_graph-render-01.js] @@ -54,11 +51,10 @@ skip-if = true # bug 1092571 skip-if = true # bug 1092571 [browser_wa_graph-selected.js] [browser_wa_graph-zoom.js] - [browser_wa_inspector.js] [browser_wa_inspector-toggle.js] [browser_wa_inspector-bypass-01.js] - +[browser_wa_navigate.js] [browser_wa_properties-view.js] [browser_wa_properties-view-edit-01.js] skip-if = true # bug 1010423 @@ -67,6 +63,7 @@ skip-if = true # bug 1010423 [browser_wa_properties-view-media-nodes.js] [browser_wa_properties-view-params.js] [browser_wa_properties-view-params-objects.js] - -[browser_wa_automation-view-01.js] -[browser_wa_automation-view-02.js] +[browser_wa_reset-01.js] +[browser_wa_reset-02.js] +[browser_wa_reset-03.js] +[browser_wa_reset-04.js] diff --git a/browser/devtools/webaudioeditor/test/browser_callwatcher-01.js b/browser/devtools/webaudioeditor/test/browser_callwatcher-01.js new file mode 100644 index 000000000000..a3dc801c6264 --- /dev/null +++ b/browser/devtools/webaudioeditor/test/browser_callwatcher-01.js @@ -0,0 +1,26 @@ +/* Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ */ + +/** + * Bug 1130901 + * Tests to ensure that calling call/apply on methods wrapped + * via CallWatcher do not throw a security permissions error: + * "Error: Permission denied to access property 'call'" + */ + +const BUG_1130901_URL = EXAMPLE_URL + "doc_bug_1130901.html"; + +add_task(function*() { + let { target, panel } = yield initWebAudioEditor(BUG_1130901_URL); + let { panelWin } = panel; + let { gFront, $, $$, EVENTS, gAudioNodes } = panelWin; + + reload(target); + + yield waitForGraphRendered(panelWin, 3, 0); + + ok(true, "Successfully created a node from AudioContext via `call`."); + ok(true, "Successfully created a node from AudioContext via `apply`."); + + yield teardown(target); +}); diff --git a/browser/devtools/webaudioeditor/test/doc_bug_1130901.html b/browser/devtools/webaudioeditor/test/doc_bug_1130901.html new file mode 100644 index 000000000000..1ce1ebf5514a --- /dev/null +++ b/browser/devtools/webaudioeditor/test/doc_bug_1130901.html @@ -0,0 +1,22 @@ + + + + +
+ +