Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Set display CSS property on iframes #4256

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions addon/webextension/onboarding/slides.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ this.slides = (function() {
iframe.src = browser.extension.getURL("blank.html");
iframe.id = "firefox-screenshots-onboarding-iframe";
iframe.style.zIndex = "99999999999";
iframe.style.display = "block";
iframe.style.border = "none";
iframe.style.position = "fixed";
iframe.style.top = "0";
Expand Down
8 changes: 4 additions & 4 deletions addon/webextension/selector/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ this.ui = (function() { // eslint-disable-line no-unused-vars

unhide() {
this.updateElementSize();
this.element.style.display = "";
this.element.style.display = "block";
catcher.watchPromise(callBackground("sendEvent", "internal", "unhide-selection-frame"));
if (highContrastCheck(this.element.contentWindow)) {
this.element.contentDocument.body.classList.add("hcm");
Expand Down Expand Up @@ -222,7 +222,7 @@ this.ui = (function() { // eslint-disable-line no-unused-vars
}
}
if (force && visible) {
this.element.style.display = "";
this.element.style.display = "block";
}
},

Expand Down Expand Up @@ -344,7 +344,7 @@ this.ui = (function() { // eslint-disable-line no-unused-vars
unhide() {
window.addEventListener("scroll", watchFunction(assertIsTrusted(this.onScroll)));
window.addEventListener("resize", this.onResize, true);
this.element.style.display = "";
this.element.style.display = "block";
catcher.watchPromise(callBackground("sendEvent", "internal", "unhide-preselection-frame"));
if (highContrastCheck(this.element.contentWindow)) {
this.element.contentDocument.body.classList.add("hcm");
Expand Down Expand Up @@ -458,7 +458,7 @@ this.ui = (function() { // eslint-disable-line no-unused-vars
},

unhide() {
this.element.style.display = "";
this.element.style.display = "block";
catcher.watchPromise(callBackground("sendEvent", "internal", "unhide-preview-frame"));
this.element.focus();
},
Expand Down