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

Commit

Permalink
use a moz-extension src for the overlay iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
dannycoates committed Apr 12, 2017
1 parent 7d8c5d8 commit da19766
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions addon/webextension/blank.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<html></html>
1 change: 1 addition & 0 deletions addon/webextension/manifest.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
}
],
"web_accessible_resources": [
"blank.html",
"icons/cancel.svg",
"icons/download.svg",
"icons/icon-256.png",
Expand Down
1 change: 1 addition & 0 deletions addon/webextension/onboarding/slides.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ this.slides = (function () {
callbacks = addCallbacks;
// FIXME: a lot of this iframe logic is in ui.js; maybe move to util.js
iframe = document.createElement("iframe");
iframe.src = browser.extension.getURL("blank.html");
iframe.id = "firefox-screenshots-onboarding-iframe";
iframe.style.zIndex = "99999999999";
iframe.style.border = "none";
Expand Down
2 changes: 2 additions & 0 deletions addon/webextension/selector/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ this.ui = (function () { // eslint-disable-line no-unused-vars
return new Promise((resolve, reject) => {
if (! this.element) {
this.element = document.createElement("iframe");
this.element.src = browser.extension.getURL("blank.html");
this.element.id = "firefox-screenshots-selection-iframe";
this.element.style.display = "none";
this.element.style.zIndex = "99999999999";
Expand Down Expand Up @@ -207,6 +208,7 @@ this.ui = (function () { // eslint-disable-line no-unused-vars
return new Promise((resolve, reject) => {
if (! this.element) {
this.element = document.createElement("iframe");
this.element.src = browser.extension.getURL("blank.html");
this.element.id = "firefox-screenshots-preselection-iframe";
this.element.style.zIndex = "99999999999";
this.element.style.border = "none";
Expand Down

0 comments on commit da19766

Please sign in to comment.