зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1772851 - Fix devtools tests to not rely on ambient XUL. r=devtools-reviewers,nchevobbe
Instead, explicitly add permissions for the domain that needs it. Also browser_bug331772_xul_tooltiptext_in_html.js. Differential Revision: https://phabricator.services.mozilla.com/D148406
This commit is contained in:
Родитель
e8f0e4a86a
Коммит
be6bd6a9b2
|
@ -9,6 +9,10 @@
|
|||
const TEST_URL = URL_ROOT + "doc_markup_xul.xhtml";
|
||||
|
||||
add_task(async function() {
|
||||
await SpecialPowers.pushPermissions([
|
||||
{ type: "allowXULXBL", allow: true, context: URL_ROOT },
|
||||
]);
|
||||
|
||||
const { inspector } = await openInspectorForURL(TEST_URL);
|
||||
|
||||
const panelFront = await getNodeFront("#test", inspector);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
// Test inactive css properties in XUl documents.
|
||||
// Test inactive css properties in XUL documents.
|
||||
|
||||
const TEST_URI = URL_ROOT + "doc_inactive_css_xul.xhtml";
|
||||
|
||||
|
@ -29,6 +29,10 @@ const TEST_DATA = [
|
|||
];
|
||||
|
||||
add_task(async () => {
|
||||
await SpecialPowers.pushPermissions([
|
||||
{ type: "allowXULXBL", allow: true, context: URL_ROOT },
|
||||
]);
|
||||
|
||||
info("Open a url to a XUL document");
|
||||
await addTab(TEST_URI);
|
||||
|
||||
|
|
|
@ -11,6 +11,10 @@ const TEST_URL_2 =
|
|||
"data:text/html;charset=utf-8,<h1 style='color:red'>HTML test page</h1>";
|
||||
|
||||
add_task(async function() {
|
||||
await SpecialPowers.pushPermissions([
|
||||
{ type: "allowXULXBL", allow: true, context: URL_ROOT },
|
||||
]);
|
||||
|
||||
const { inspector } = await openInspectorForURL(TEST_URL);
|
||||
|
||||
info("Check the inspector toolbar");
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
// Test for Bug 777674
|
||||
|
||||
add_task(async function() {
|
||||
await SpecialPowers.pushPermissions([
|
||||
{ type: "allowXULXBL", allow: true, context: MAIN_DOMAIN },
|
||||
]);
|
||||
|
||||
const { walker } = await initInspectorFront(
|
||||
MAIN_DOMAIN + "inspector-traversal-data.html"
|
||||
);
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
* Tests that the tooltiptext attribute is used for XUL elements in an HTML doc.
|
||||
*/
|
||||
add_task(async function() {
|
||||
await SpecialPowers.pushPermissions([
|
||||
{ type: "allowXULXBL", allow: true, context: "http://mochi.test:8888" },
|
||||
]);
|
||||
|
||||
await BrowserTestUtils.withNewTab(
|
||||
{
|
||||
gBrowser,
|
||||
|
|
Загрузка…
Ссылка в новой задаче