Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/filterComposer.js

Issue 29370947: Issue 3138 - Improve how context menu "block element" handles iframes (Closed)
Patch Set: Created Jan. 10, 2017, 6:36 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« composer.postload.js ('K') | « composer.postload.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/filterComposer.js
diff --git a/lib/filterComposer.js b/lib/filterComposer.js
index 10390f9f3be7462ec52da3639872fa1df757b2a8..8f1494e70e8f6fc64041dc53ebf7cc996aceb1e1 100644
--- a/lib/filterComposer.js
+++ b/lib/filterComposer.js
@@ -156,9 +156,11 @@ function composeFilters(details)
let contextMenuItem = {
title: ext.i18n.getMessage("block_element"),
contexts: ["image", "video", "audio"],
- onclick: page =>
+ onclick: (page, info) =>
{
- page.sendMessage({type: "composer.content.contextMenuClicked"});
+ page.sendMessage(
+ {type: "composer.content.contextMenuClicked"}, undefined, info.frameId
+ );
}
};
« composer.postload.js ('K') | « composer.postload.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld