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

Issue 5095280043098112: Issue 375 - Make context menus per page (Closed)

Created:
April 24, 2014, 1:22 p.m. by Sebastian Noack
Modified:
April 25, 2014, 12:11 p.m.
Reviewers:
Wladimir Palant
Visibility:
Public.

Description

The context menus are hidden/shown globally, when a page is loaded dependent on whether Adblock Plus is active on that page. So when you switch from a page with Adblock Plus enabled to a page with Adblock Plus disabled, the context menu entry still shows up, and vice versa. In order to fix this, I made context menus per page, similar to browserActions.

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -123 lines) Patch
M background.js View 4 chunks +24 lines, -27 lines 0 comments Download
M chrome/ext/background.js View 3 chunks +69 lines, -53 lines 2 comments Download
M safari/ext/background.js View 3 chunks +37 lines, -43 lines 2 comments Download

Messages

Total messages: 4
Sebastian Noack
April 24, 2014, 1:31 p.m. (2014-04-24 13:31:27 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/5095280043098112/diff/5629499534213120/chrome/ext/background.js File chrome/ext/background.js (right): http://codereview.adblockplus.org/5095280043098112/diff/5629499534213120/chrome/ext/background.js#newcode221 chrome/ext/background.js:221: updateContextMenu(); How many unnecessary updates will this trigger when ...
April 25, 2014, 11:35 a.m. (2014-04-25 11:35:50 UTC) #2
Sebastian Noack
http://codereview.adblockplus.org/5095280043098112/diff/5629499534213120/chrome/ext/background.js File chrome/ext/background.js (right): http://codereview.adblockplus.org/5095280043098112/diff/5629499534213120/chrome/ext/background.js#newcode221 chrome/ext/background.js:221: updateContextMenu(); On 2014/04/25 11:35:50, Wladimir Palant wrote: > How ...
April 25, 2014, 11:48 a.m. (2014-04-25 11:48:03 UTC) #3
Wladimir Palant
April 25, 2014, 12:07 p.m. (2014-04-25 12:07:35 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld