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

Side by Side Diff: messageResponder.js

Issue 29595588: Issue 5952 - Clicking Cancel in the issue reporter doesn't close the tab (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Created Nov. 2, 2017, 11:39 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« issue-reporter.js ('K') | « issue-reporter.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 if (message.what == "features") 201 if (message.what == "features")
202 { 202 {
203 return { 203 return {
204 devToolsPanel: info.platform == "chromium" || 204 devToolsPanel: info.platform == "chromium" ||
205 info.application == "firefox" && 205 info.application == "firefox" &&
206 parseInt(info.applicationVersion, 10) >= 54 206 parseInt(info.applicationVersion, 10) >= 54
207 }; 207 };
208 } 208 }
209 209
210 if (message.what == "senderId")
211 return sender.page.id;
212
210 return info[message.what]; 213 return info[message.what];
211 }); 214 });
212 215
213 port.on("app.listen", (message, sender) => 216 port.on("app.listen", (message, sender) =>
214 { 217 {
215 getListenerFilters(sender.page).app = message.filter; 218 getListenerFilters(sender.page).app = message.filter;
216 }); 219 });
217 220
218 port.on("app.open", (message, sender) => 221 port.on("app.open", (message, sender) =>
219 { 222 {
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 if (message.url) 456 if (message.url)
454 subscriptions = [Subscription.fromURL(message.url)]; 457 subscriptions = [Subscription.fromURL(message.url)];
455 458
456 for (let subscription of subscriptions) 459 for (let subscription of subscriptions)
457 { 460 {
458 if (subscription instanceof DownloadableSubscription) 461 if (subscription instanceof DownloadableSubscription)
459 Synchronizer.execute(subscription, true); 462 Synchronizer.execute(subscription, true);
460 } 463 }
461 }); 464 });
462 })(this); 465 })(this);
OLDNEW
« issue-reporter.js ('K') | « issue-reporter.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld