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

Unified Diff: popup.js

Issue 29785555: Issue 6684 - Issue Reporter Active Tab Screenshot (Closed)
Patch Set: removed checkbox.png Created June 20, 2018, 12:42 p.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
« no previous file with comments | « metadata.chrome ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: popup.js
===================================================================
--- a/popup.js
+++ b/popup.js
@@ -98,17 +98,21 @@
activateClickHide.timeout = null;
}
document.body.classList.remove("clickhide-active");
browser.tabs.sendMessage(tab.id, {type: "composer.content.finished"});
}
function reportIssue()
{
+ // the issue reporter needs to take a screenshot of the
+ // currently active tab, which is why active is explicitly
+ // set as false, in case option defaults will ever change.
browser.tabs.create({
+ active: false,
url: browser.runtime.getURL("/issue-reporter.html?" + tab.id)
}).then(() =>
{
window.close();
});
}
function toggleCollapse(event)
« no previous file with comments | « metadata.chrome ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld