Bug 1691935 - Fix and test context menu Save Image As. r=mkmelin

Replaces two fields that were only set by setTarget and removes setTarget, which is now unused.

Differential Revision: https://phabricator.services.mozilla.com/D105258

--HG--
rename : mail/components/extensions/test/browser/data/tb-logo.png => mail/base/test/browser/files/tb-logo.png
extra : amend_source : 7da62929e76db457f59b483e786a0b723142f690
This commit is contained in:
Geoff Lankow 2021-02-16 12:12:36 +02:00
Родитель a0622c7ff4
Коммит 00ea9380c8
5 изменённых файлов: 217 добавлений и 175 удалений

Просмотреть файл

@ -478,7 +478,8 @@ class nsContextMenu {
this.onCanvas ||
this.onLink ||
this.onImage ||
this.onPlayableMedia ||
this.onAudio ||
this.onVideo ||
this.onTextInput
);
// Ensure these commands are updated with their current status.
@ -740,179 +741,6 @@ class nsContextMenu {
this.checkLastSeparator(this.xulMenu);
}
/* eslint-disable complexity */
/**
* Set the nsContextMenu properties based on the selected node and
* its ancestors.
*/
setTarget(aNode) {
// Clear any old spellchecking items from the menu, this used to
// be in the menu hiding code but wasn't getting called in all
// situations. Here, we can ensure it gets cleaned up any time the
// menu is shown. Note: must be before uninit because that clears the
// internal vars
// We also need to do that before we possibly bail because we just clicked
// on some XUL node. Otherwise, dictionary choices just accumulate until we
// right-click on some HTML element again.
gSpellChecker.clearSuggestionsFromMenu();
gSpellChecker.clearDictionaryListFromMenu();
gSpellChecker.uninit();
if (
aNode.namespaceURI ==
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
) {
if (aNode.localName == "treecol") {
// The column header was clicked, show the column picker.
let treecols = aNode.parentNode;
let treeColPicker = treecols.querySelector("treecolpicker");
let popup = treeColPicker.querySelector(`menupopup[anonid="popup"]`);
treeColPicker.buildPopup(popup);
popup.openPopup(aNode, "before_start", 0, 0, true);
this.shouldDisplay = false;
}
return;
}
this.onImage = false;
this.onLoadedImage = false;
this.onMetaDataItem = false;
this.onTextInput = false;
this.onEditable = false;
this.imageURL = "";
this.onLink = false;
this.onVideo = false;
this.onAudio = false;
this.mediaURL = "";
this.linkURL = "";
this.linkURI = null;
this.linkProtocol = null;
this.onMathML = false;
this.target = aNode;
// Set up early the right flags for editable / not editable.
let editFlags = SpellCheckHelper.isEditable(this.target, window);
this.onTextInput = (editFlags & SpellCheckHelper.TEXTINPUT) !== 0;
this.onEditable = (editFlags & SpellCheckHelper.EDITABLE) !== 0;
// First, do checks for nodes that never have children.
if (this.target.nodeType == Node.ELEMENT_NODE) {
if (
this.target instanceof Ci.nsIImageLoadingContent &&
this.target.currentURI
) {
this.onImage = true;
this.onMetaDataItem = true;
var request = this.target.getRequest(
Ci.nsIImageLoadingContent.CURRENT_REQUEST
);
if (request && request.imageStatus & request.STATUS_SIZE_AVAILABLE) {
this.onLoadedImage = true;
}
this.imageURL = this.target.currentURI.spec;
} else if (this.target instanceof HTMLInputElement) {
this.onTextInput = this.isTargetATextBox(this.target);
} else if (
editFlags &
(SpellCheckHelper.INPUT | SpellCheckHelper.TEXTAREA)
) {
if (!this.target.readOnly) {
this.onEditable = true;
gSpellChecker.init(this.target.editor);
gSpellChecker.initFromEvent(
document.popupRangeParent,
document.popupRangeOffset
);
}
} else if (editFlags & SpellCheckHelper.CONTENTEDITABLE) {
let targetWin = this.target.ownerGlobal;
let editingSession = targetWin
?.getInterface(Ci.nsIWebNavigation)
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIEditingSession);
gSpellChecker.init(editingSession.getEditorForWindow(targetWin));
gSpellChecker.initFromEvent(
document.popupRangeParent,
document.popupRangeOffset
);
} else if (this.target instanceof HTMLCanvasElement) {
this.onCanvas = true;
} else if (this.target instanceof HTMLVideoElement) {
this.onVideo = true;
this.onPlayableMedia = true;
this.mediaURL = this.target.currentSrc || this.target.src;
} else if (this.target instanceof HTMLAudioElement) {
this.onAudio = true;
this.onPlayableMedia = true;
this.mediaURL = this.target.currentSrc || this.target.src;
// Browser supports background images here but we don't need to.
}
}
// Second, bubble out, looking for items of interest that might be
// parents of the click target, picking the innermost of each.
const XMLNS = "http://www.w3.org/XML/1998/namespace";
var elem = this.target;
while (elem) {
if (elem.nodeType == Node.ELEMENT_NODE) {
// Link?
if (
!this.onLink &&
((elem instanceof HTMLAnchorElement && elem.href) ||
(elem instanceof HTMLAreaElement && elem.href) ||
elem instanceof HTMLLinkElement ||
elem.getAttributeNS("http://www.w3.org/1999/xlink", "type") ==
"simple")
) {
// Target is a link or a descendant of a link.
this.onLink = true;
this.onMetaDataItem = true;
// Remember corresponding element.
this.link = elem;
this.linkURL = this.getLinkURL();
this.linkURI = this.getLinkURI();
this.linkProtocol = this.getLinkProtocol();
this.onMailtoLink = this.linkProtocol == "mailto";
this.onSaveableLink = this.isLinkSaveable();
}
// Text input?
if (!this.onTextInput) {
this.onTextInput = this.isTargetATextBox(elem);
}
// Metadata item?
if (!this.onMetaDataItem) {
if (
(elem instanceof HTMLQuoteElement && elem.cite) ||
(elem instanceof HTMLTableElement && elem.summary) ||
(elem instanceof HTMLModElement && (elem.cite || elem.dateTime)) ||
(elem instanceof HTMLElement && (elem.title || elem.lang)) ||
elem.getAttributeNS(XMLNS, "lang")
) {
this.onMetaDataItem = true;
}
}
// Browser supports background images here but we don't need to.
}
elem = elem.parentNode;
}
// See if the user clicked on MathML.
const NS_MathML = "http://www.w3.org/1998/Math/MathML";
if (
(this.target.nodeType == Node.TEXT_NODE &&
this.target.parentNode.namespaceURI == NS_MathML) ||
this.target.namespaceURI == NS_MathML
) {
this.onMathML = true;
}
}
/* eslint-enable complexity */
setMessageTargets() {
if (this.browser) {
this.inAMessage = ["imap", "mailbox", "news", "snews"].includes(
@ -1003,7 +831,7 @@ class nsContextMenu {
*/
saveImage() {
saveURL(
this.imageURL,
this.imageInfo.currentSrc,
null,
"SaveImageTitle",
false,

Просмотреть файл

@ -16,9 +16,26 @@ var { MessageGenerator } = ChromeUtils.import(
const TEST_DOCUMENT_URL =
"http://mochi.test:8888/browser/comm/mail/base/test/browser/files/sampleContent.html";
const TEST_MESSAGE_URL =
"http://mochi.test:8888/browser/comm/mail/base/test/browser/files/sampleContent.eml";
const TEST_IMAGE_URL =
"http://mochi.test:8888/browser/comm/mail/base/test/browser/files/tb-logo.png";
let testFolder;
async function getImageArrayBuffer() {
let response = await fetch(TEST_IMAGE_URL);
let blob = await response.blob();
return new Promise((resolve, reject) => {
let reader = new FileReader();
reader.addEventListener("loadend", event => {
resolve(event.target.result);
});
reader.readAsArrayBuffer(blob);
});
}
function checkMenuitems(menu, ...expectedItems) {
if (expectedItems.length == 0) {
// Menu should not be shown.
@ -47,6 +64,8 @@ async function checkABrowser(browser) {
let mailContext = browser.ownerDocument.getElementById("mailContext");
// Just some text.
let shownPromise = BrowserTestUtils.waitForEvent(mailContext, "popupshown");
await BrowserTestUtils.synthesizeMouseAtCenter(
"p",
@ -62,6 +81,8 @@ async function checkABrowser(browser) {
);
mailContext.hidePopup();
// A link.
shownPromise = BrowserTestUtils.waitForEvent(mailContext, "popupshown");
await BrowserTestUtils.synthesizeMouseAtCenter(
"a",
@ -78,6 +99,8 @@ async function checkABrowser(browser) {
);
mailContext.hidePopup();
// A text input widget.
await BrowserTestUtils.synthesizeMouseAtCenter("input", {}, browser);
shownPromise = BrowserTestUtils.waitForEvent(mailContext, "popupshown");
await BrowserTestUtils.synthesizeMouseAtCenter(
@ -96,6 +119,37 @@ async function checkABrowser(browser) {
"mailContext-spell-check-enabled"
);
mailContext.hidePopup();
// An image. Also checks Save Image As works.
shownPromise = BrowserTestUtils.waitForEvent(mailContext, "popupshown");
await BrowserTestUtils.synthesizeMouseAtCenter(
"img",
{ type: "contextmenu" },
browser
);
await shownPromise;
checkMenuitems(
mailContext,
"mailContext-selectall",
"mailContext-copyimage",
"mailContext-saveimage"
);
let pickerPromise = new Promise(resolve => {
SpecialPowers.MockFilePicker.init(window);
SpecialPowers.MockFilePicker.showCallback = picker => {
resolve(picker.defaultString);
return Ci.nsIFilePicker.returnCancel;
};
});
EventUtils.synthesizeMouseAtCenter(
browser.ownerDocument.getElementById("mailContext-saveimage"),
{},
browser.ownerGlobal
);
Assert.equal(await pickerPromise, "tb-logo.png");
SpecialPowers.MockFilePicker.cleanup();
}
add_task(async function testMessagePane() {
@ -107,6 +161,8 @@ add_task(async function testMessagePane() {
testFolder = rootFolder
.getChildNamed("test")
.QueryInterface(Ci.nsIMsgLocalMailFolder);
let message = await fetch(TEST_MESSAGE_URL).then(r => r.text());
testFolder.addMessageBatch([message]);
let messages = new MessageGenerator().makeMessages({ count: 5 });
let messageStrings = messages.map(message => message.toMboxString());
testFolder.addMessageBatch(messageStrings);
@ -279,6 +335,7 @@ add_task(async function testExtensionPopupWindow() {
"sampleContent.html": await fetch(TEST_DOCUMENT_URL).then(response =>
response.text()
),
"tb-logo.png": await getImageArrayBuffer(),
},
});
@ -300,6 +357,7 @@ add_task(async function testExtensionBrowserAction() {
"sampleContent.html": await fetch(TEST_DOCUMENT_URL).then(response =>
response.text()
),
"tb-logo.png": await getImageArrayBuffer(),
},
manifest: {
applications: {
@ -338,6 +396,7 @@ add_task(async function testExtensionComposeAction() {
"sampleContent.html": await fetch(TEST_DOCUMENT_URL).then(response =>
response.text()
),
"tb-logo.png": await getImageArrayBuffer(),
},
manifest: {
applications: {
@ -391,6 +450,7 @@ add_task(async function testExtensionMessageDisplayAction() {
"sampleContent.html": await fetch(TEST_DOCUMENT_URL).then(response =>
response.text()
),
"tb-logo.png": await getImageArrayBuffer(),
},
manifest: {
applications: {

Просмотреть файл

@ -0,0 +1,153 @@
From andy@anway.invalid
Content-Type: multipart/related;
boundary="--------------CHOPCHOP0"
Subject: Big Meeting Today
From: "Andy Anway" <andy@anway.invalid>
To: "Bob Bell" <bob@bell.invalid>
Message-Id: <0@made.up.invalid>
Date: Tue, 01 Feb 2000 00:00:00 +1300
This is a multi-part message in MIME format.
----------------CHOPCHOP0
Content-Type: text/html; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
<p>This is a page of sample content for tests.</p>
<p><a href="https://www.thunderbird.net/">Link to a web page</a></p>
<form>
<input type="text" />
</form>
<p><img src="cid:logo" width="304" height="84" /></p>
----------------CHOPCHOP0
Content-Type: image/png; charset=ISO-8859-1; format=flowed;
name="tb-logo.png"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="tb-logo.png"
Content-ID: <logo>
iVBORw0KGgoAAAANSUhEUgAAATAAAABUCAMAAAAyN5s5AAAC91BMVEVMaXErLDVPU1wYFx1O
T1RPT1RNT1MTExoFBwZNTlNOTlNNT1RNTlNMTFRNTlMGBgoDBgYFBQZNTlQGBgdOTlNNTlMA
AwMEBQVNTlNOUFRMTFUAAABNTlMEBgdNT1QFBwoEBAZOTlNNTlMuOoNNTlQACghNTlRNTlNO
T1RNTlMTDytNT1N/qs1NTlMxPolNTlSZydyfmI8pMHosPIYaFSFNTlMdEkRNUFVNTlMrM38U
EBczT5hNTlMtNX8UDy8+XqIqN4AkGmCTiIEwN4JHaKgRCygnLHdzmsNYdq2Fd3N2nMRvlL8g
G00RCi0TCzAsQYsqHGJMbq5pjLsWDj9HYqV/qdh6nsxpYFljhsL////7+PL38+z59u////z8
+/f8+vT28ufz7+UoG2D+/fnx7ODu6NvRyb3g2c7k39bSzcXr5NbIvq/Z0si9sqLJw7jDuKjb
0cCJhYHOxbbn3s/n5eGjn5mtqKPY1M+0r6rl2MS9ubVwbW54dXZgXl5HREZnZWHHxcJWVlU/
PjevpJXazbR/fX0cJGV/d29UaaFPTka5rZx0b2P/++T77c9UVEphW01BQFtXTl6QnavN3exg
hcBIa65bgL0rS5dOcbGKt9NKZ6dPdLZdhbk8ZKlDcbNVd7RWe7l0pcszX6c5WpyKvN5EYaI9
aK8yWaNJdrRff7OBsdc0RZUvUppukr8xN3knRZItLXkoUqFiisUoPIlsnMVpirxKfcdekL+Z
yusoQY4EAQktOIQOBVVWicRBaqgqMmp3msRTgr40VJ1SiLhAbrFwmc1glc5DWaEqMoBRcKtp
kMh0ntRMfrlHdronKVek1vYVCzd/ptg7aaEYGG83UZM6X6JDc6taea1cZXwkIUJDV5kLAyW3
6P2PwOlh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ApMiVGMd2vuOJirV4pJevaKIr8BkxzNOidmiIDMQLzkkJwznrt
9kElDlPPJNF/B7YdG5CBGE4PKthX2Woncacq2ykx8JXXv8G2Y6u/nF7SacdxYlFi7e8ngWdi
gj1/6/W/lw0Mh9NQ9zRqE9PwMI6A65bzuBWDIqyCB2gB123z2r7Mmm9mk19z3eK1FQMylQ/B
w3gfrq3Zpvfm2qo1Ia37G8S93Ux/GSLZAAAAAElFTkSuQmCC
----------------CHOPCHOP0--

Просмотреть файл

@ -10,5 +10,6 @@
<form>
<input type="text" />
</form>
<p><img src="tb-logo.png" width="304" height="84" /></p>
</body>
</html>

Двоичные данные
mail/base/test/browser/files/tb-logo.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 6.3 KiB