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

Commit

Permalink
Set display CSS property on iframes. (#4148) (#4256)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenba authored and jaredhirsch committed Mar 22, 2018
1 parent 9a5699b commit ba4073f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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

0 comments on commit ba4073f

Please # to comment.