зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1905278 - Remove intervention for personalizedplates.revenue.tn.gov; r=twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D221864
This commit is contained in:
Родитель
d033a176ec
Коммит
bb2e1f5c55
|
@ -1175,20 +1175,6 @@ const AVAILABLE_INJECTIONS = [
|
|||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "bug1905278",
|
||||
platform: "all",
|
||||
domain: "personalizedplates.revenue.tn.gov",
|
||||
bug: "1905278",
|
||||
contentScripts: {
|
||||
matches: ["*://personalizedplates.revenue.tn.gov/*"],
|
||||
css: [
|
||||
{
|
||||
file: "injections/css/bug1905278-personalizedplates.revenue.tn.gov-pointer-events.css",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
module.exports = AVAILABLE_INJECTIONS;
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/**
|
||||
* personalizedplates.revenue.tn.gov - popup for personalizing plates not opening
|
||||
* Bug #1905278 - https://bugzilla.mozilla.org/show_bug.cgi?id=1905278
|
||||
*
|
||||
* The page uses an object tag for an img that is swallowing mouse events,
|
||||
* therefore a click on a parent element is not registered. This is being tracked
|
||||
* in https://bugzilla.mozilla.org/show_bug.cgi?id=1909584.
|
||||
* Adding pointer-events: none temporarily fixes the issue.
|
||||
*/
|
||||
|
||||
#plateDiv {
|
||||
pointer-events: none;
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
"manifest_version": 2,
|
||||
"name": "Web Compatibility Interventions",
|
||||
"description": "Urgent post-release fixes for web compatibility.",
|
||||
"version": "130.2.0",
|
||||
"version": "130.3.0",
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
"id": "webcompat@mozilla.org",
|
||||
|
|
|
@ -75,7 +75,6 @@ FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["injections"]["css"] += [
|
|||
"injections/css/bug1884842-foodora.cz-height-fix.css",
|
||||
"injections/css/bug1895994-softtrans.ro-unlock-scrolling.css",
|
||||
"injections/css/bug1896571-gracobaby.ca-unlock-scrolling.css",
|
||||
"injections/css/bug1905278-personalizedplates.revenue.tn.gov-pointer-events.css",
|
||||
]
|
||||
|
||||
FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["injections"]["js"] += [
|
||||
|
|
|
@ -1175,20 +1175,6 @@ const AVAILABLE_INJECTIONS = [
|
|||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "bug1905278",
|
||||
platform: "all",
|
||||
domain: "personalizedplates.revenue.tn.gov",
|
||||
bug: "1905278",
|
||||
contentScripts: {
|
||||
matches: ["*://personalizedplates.revenue.tn.gov/*"],
|
||||
css: [
|
||||
{
|
||||
file: "injections/css/bug1905278-personalizedplates.revenue.tn.gov-pointer-events.css",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
module.exports = AVAILABLE_INJECTIONS;
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/**
|
||||
* personalizedplates.revenue.tn.gov - popup for personalizing plates not opening
|
||||
* Bug #1905278 - https://bugzilla.mozilla.org/show_bug.cgi?id=1905278
|
||||
*
|
||||
* The page uses an object tag for an img that is swallowing mouse events,
|
||||
* therefore a click on a parent element is not registered. This is being tracked
|
||||
* in https://bugzilla.mozilla.org/show_bug.cgi?id=1909584.
|
||||
* Adding pointer-events: none temporarily fixes the issue.
|
||||
*/
|
||||
|
||||
#plateDiv {
|
||||
pointer-events: none;
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
"manifest_version": 2,
|
||||
"name": "Web Compatibility Interventions",
|
||||
"description": "Urgent post-release fixes for web compatibility.",
|
||||
"version": "130.2.0",
|
||||
"version": "130.3.0",
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
"id": "webcompat@mozilla.org",
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
import pytest
|
||||
|
||||
URL = "https://personalizedplates.revenue.tn.gov/#/"
|
||||
TYPE_OPTION_XPATH = "//select[@class='swal2-select']/option[2]"
|
||||
CONFIRM_CSS = ".swal2-confirm"
|
||||
PLATE_CSS = ".plateCont"
|
||||
PLATE_DETAILS_CSS = "#plateDetails"
|
||||
|
||||
|
||||
async def select_plate(client):
|
||||
client.await_xpath(TYPE_OPTION_XPATH).click()
|
||||
client.await_css(CONFIRM_CSS).click()
|
||||
client.await_css(PLATE_CSS).click()
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.with_interventions
|
||||
async def test_enabled(client):
|
||||
await client.navigate(URL)
|
||||
await select_plate(client)
|
||||
dialog = client.await_css(PLATE_DETAILS_CSS)
|
||||
assert client.is_displayed(dialog)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.without_interventions
|
||||
async def test_disabled(client):
|
||||
await client.navigate(URL)
|
||||
await select_plate(client)
|
||||
assert not client.find_css(PLATE_DETAILS_CSS)
|
Загрузка…
Ссылка в новой задаче