[Pkg-mozext-commits] [personasplus] 62/76: Don't check footer dimensions

David Prévot taffit at moszumanska.debian.org
Fri Aug 4 21:45:09 UTC 2017


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository personasplus.

commit 2888a6c2d7045616ec82bf3ce3b5857836f36c26
Author: Andreas Wagner <mail at andreaswagner.org>
Date:   Mon Dec 5 11:08:14 2016 -1000

    Don't check footer dimensions
---
 extension/content/customPersonaEditor.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/extension/content/customPersonaEditor.js b/extension/content/customPersonaEditor.js
index 3ea865f..f47e6f9 100644
--- a/extension/content/customPersonaEditor.js
+++ b/extension/content/customPersonaEditor.js
@@ -212,7 +212,7 @@ var CustomPersonaEditor = {
     let control = button.previousSibling;
     let property = control.id;
     let restrictionPromptFirstSentence = this._strings.get("restrictionPromptFirstSentence");
-    let restrictionPromptSecondSentence = this._strings.get("restrictionPromptSecondSentence");    
+    let restrictionPromptSecondSentence = this._strings.get("restrictionPromptSecondSentence");
 
     let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
     fp.appendFilter("Images", "*.png; *.jpg; *.jpeg");
@@ -225,7 +225,7 @@ var CustomPersonaEditor = {
       var img = new Image();
       img.src = fp.fileURL.spec;
       img.onload = function() {
-          if (img.naturalWidth !== 3000 || img.naturalHeight !== 200) {
+          if (control.id === "headerURL" && (img.naturalWidth !== 3000 || img.naturalHeight !== 200)) {
               var prompt = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);
               if (prompt.confirm(null, "Personas Plus", restrictionPromptFirstSentence + "\n\n" + restrictionPromptSecondSentence)) {
                   window.open("https://developer.mozilla.org/en-US/Add-ons/Themes/Background", '_blank');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/personasplus.git



More information about the Pkg-mozext-commits mailing list