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

Delta Between Two Patch Sets: messageResponder.js

Issue 29727613: Issue 6386 - Add Requests and Filters data to the Report data
Left Patch Set: Rebased Created April 6, 2018, 4:46 p.m.
Right Patch Set: Created April 6, 2018, 5:01 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « locale/en_US/issue-reporter.json ('k') | skin/issue-reporter.css » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 devToolsPanel: info.platform == "chromium" || 193 devToolsPanel: info.platform == "chromium" ||
194 info.application == "firefox" && 194 info.application == "firefox" &&
195 parseInt(info.applicationVersion, 10) >= 54 195 parseInt(info.applicationVersion, 10) >= 54
196 }; 196 };
197 } 197 }
198 198
199 if (message.what == "senderId") 199 if (message.what == "senderId")
200 return sender.page.id; 200 return sender.page.id;
201 201
202 return info[message.what]; 202 return info[message.what];
203 });
204
205 port.on("app.listen", (message, sender) =>
206 {
207 getListenerFilters(sender.page).app = message.filter;
208 }); 203 });
209 204
210 port.on("app.collectHits", (message, sender) => 205 port.on("app.collectHits", (message, sender) =>
211 { 206 {
212 const logRequest = (log) => 207 const logRequest = (log) =>
213 { 208 {
214 let {filter, request} = log; 209 let {filter, request} = log;
215 let subscriptions = []; 210 let subscriptions = [];
216 if (filter) 211 if (filter)
217 { 212 {
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 // "*.listen" messages to tackle #6440 511 // "*.listen" messages to tackle #6440
517 if (action == "listen") 512 if (action == "listen")
518 { 513 {
519 listen(type, filters, message.filter); 514 listen(type, filters, message.filter);
520 } 515 }
521 }); 516 });
522 } 517 }
523 518
524 browser.runtime.onConnect.addListener(onConnect); 519 browser.runtime.onConnect.addListener(onConnect);
525 })(this); 520 })(this);
LEFTRIGHT

Powered by Google App Engine
This is Rietveld