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

Unified Diff: ext/popup.js

Issue 29532767: Issue 5593 - Use messaging in popup for prefs, whitelisting, and stats (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Refactor whenPageReady Created Sept. 19, 2017, 6:01 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 | « dependencies ('k') | lib/filterComposer.js » ('j') | notification.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ext/popup.js
===================================================================
--- a/ext/popup.js
+++ b/ext/popup.js
@@ -2,29 +2,29 @@
(function()
{
if (typeof chrome == "undefined" || typeof chrome.extension == "undefined")
window.chrome = browser;
const backgroundPage = chrome.extension.getBackgroundPage();
window.ext = Object.create(backgroundPage.ext);
- window.ext.closePopup = () =>
- {
- window.close();
- };
Sebastian Noack 2017/09/20 18:57:02 It seems you need to rebase. There is no closePopu
Manish Jethani 2017/09/21 06:11:16 OK, I'll rebase on master instead once next has be
Sebastian Noack 2017/09/21 22:57:16 Why not rebasing against "next" now? If the patch
Manish Jethani 2017/09/24 21:25:32 Done.
-
// Calling i18n.getMessage from the background page causes Edge to throw an
// exception.
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12793975/
window.ext.i18n = chrome.i18n;
// We have to override ext.backgroundPage, because in order
// to send messages the local "chrome" namespace must be used.
window.ext.backgroundPage = {
sendMessage: chrome.runtime.sendMessage,
getWindow()
{
return backgroundPage;
}
};
+
+ window.ext.closePopup = () =>
+ {
+ window.close();
+ };
}());
« no previous file with comments | « dependencies ('k') | lib/filterComposer.js » ('j') | notification.js » ('J')

Powered by Google App Engine
This is Rietveld