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

Issue 29482663: Issue 5386 - Ignore messages from content scripts in devtools panel (Closed)

Created:
July 7, 2017, 3:11 p.m. by Manish Jethani
Modified:
Aug. 16, 2017, 10:47 a.m.
Base URL:
https://hg.adblockplus.org/adblockpluschrome/
Visibility:
Public.

Description

Issue 5386 - Ignore messages from content scripts in devtools panel

Patch Set 1 #

Patch Set 2 : Check for chrome.devtools instead #

Total comments: 6

Patch Set 3 : Use consistent style for checking for availability of API #

Total comments: 3

Patch Set 4 : Use includes instead of indexOf #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -3 lines) Patch
M ext/content.js View 1 2 3 1 chunk +11 lines, -3 lines 0 comments Download

Messages

Total messages: 16
Manish Jethani
July 7, 2017, 3:11 p.m. (2017-07-07 15:11:53 UTC) #1
Manish Jethani
Patch Set 1 devtools.js sets ext.onMessage to port.onMessage In Firefox 55, the browser is sending ...
July 7, 2017, 3:16 p.m. (2017-07-07 15:16:45 UTC) #2
Manish Jethani
On 2017/07/07 15:16:45, Manish Jethani wrote: > The fix is to ignore any messages coming ...
July 7, 2017, 3:19 p.m. (2017-07-07 15:19:14 UTC) #3
Sebastian Noack
I agree to this solution. If the message is sent by a content script sender.tab ...
July 19, 2017, 9:45 a.m. (2017-07-19 09:45:39 UTC) #4
Manish Jethani
Patch Set 2: Check for chrome.devtools instead I've modified the fix a bit. Even if ...
July 25, 2017, 12:52 p.m. (2017-07-25 12:52:29 UTC) #5
Wladimir Palant
https://codereview.adblockplus.org/29482663/diff/29497558/ext/content.js File ext/content.js (right): https://codereview.adblockplus.org/29482663/diff/29497558/ext/content.js#newcode14 ext/content.js:14: }); I might be missing something here, but this ...
Aug. 16, 2017, 8:56 a.m. (2017-08-16 08:56:44 UTC) #6
Manish Jethani
https://codereview.adblockplus.org/29482663/diff/29497558/ext/content.js File ext/content.js (right): https://codereview.adblockplus.org/29482663/diff/29497558/ext/content.js#newcode14 ext/content.js:14: }); On 2017/08/16 08:56:44, Wladimir Palant wrote: > I ...
Aug. 16, 2017, 9:18 a.m. (2017-08-16 09:18:55 UTC) #7
Manish Jethani
Patch Set 3: Use consistent style for checking for availability of API
Aug. 16, 2017, 9:25 a.m. (2017-08-16 09:25:01 UTC) #8
Wladimir Palant
https://codereview.adblockplus.org/29482663/diff/29497558/ext/content.js File ext/content.js (right): https://codereview.adblockplus.org/29482663/diff/29497558/ext/content.js#newcode14 ext/content.js:14: }); On 2017/08/16 09:18:54, Manish Jethani wrote: > You ...
Aug. 16, 2017, 9:28 a.m. (2017-08-16 09:28:34 UTC) #9
Manish Jethani
https://codereview.adblockplus.org/29482663/diff/29497558/ext/content.js File ext/content.js (right): https://codereview.adblockplus.org/29482663/diff/29497558/ext/content.js#newcode14 ext/content.js:14: }); On 2017/08/16 09:28:33, Wladimir Palant wrote: > On ...
Aug. 16, 2017, 9:42 a.m. (2017-08-16 09:42:43 UTC) #10
Wladimir Palant
LGTM https://codereview.adblockplus.org/29482663/diff/29497558/ext/content.js File ext/content.js (right): https://codereview.adblockplus.org/29482663/diff/29497558/ext/content.js#newcode14 ext/content.js:14: }); On 2017/08/16 09:42:43, Manish Jethani wrote: > ...
Aug. 16, 2017, 10:05 a.m. (2017-08-16 10:05:19 UTC) #11
Sebastian Noack
https://codereview.adblockplus.org/29482663/diff/29517559/ext/content.js File ext/content.js (right): https://codereview.adblockplus.org/29482663/diff/29517559/ext/content.js#newcode12 ext/content.js:12: return ext.onMessage._dispatch(message, {}, sendResponse).indexOf(true) != While changing this code ...
Aug. 16, 2017, 10:15 a.m. (2017-08-16 10:15:00 UTC) #12
Manish Jethani
Patch Set 4: Use includes instead of indexOf https://codereview.adblockplus.org/29482663/diff/29517559/ext/content.js File ext/content.js (right): https://codereview.adblockplus.org/29482663/diff/29517559/ext/content.js#newcode12 ext/content.js:12: return ...
Aug. 16, 2017, 10:30 a.m. (2017-08-16 10:30:36 UTC) #13
Sebastian Noack
LGTM https://codereview.adblockplus.org/29482663/diff/29517559/ext/content.js File ext/content.js (right): https://codereview.adblockplus.org/29482663/diff/29517559/ext/content.js#newcode12 ext/content.js:12: return ext.onMessage._dispatch(message, {}, sendResponse).indexOf(true) != On 2017/08/16 10:30:36, ...
Aug. 16, 2017, 10:34 a.m. (2017-08-16 10:34:56 UTC) #14
Wladimir Palant
LGTM
Aug. 16, 2017, 10:37 a.m. (2017-08-16 10:37:00 UTC) #15
Manish Jethani
Aug. 16, 2017, 10:47 a.m. (2017-08-16 10:47:34 UTC) #16

Powered by Google App Engine
This is Rietveld