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

Issue 5589897452716032: Implemented ext.contextMenus for Safari (Closed)

Created:
Jan. 7, 2014, 11:57 a.m. by Thomas Greiner
Modified:
Jan. 18, 2014, 12:37 p.m.
Visibility:
Public.

Description

Implemented ext.contextMenus for Safari and changed current implementation in Chrome to make it compatible with Safari. This review also includes a change that made "shouldShowBlockElementMenu" and "hidePlaceholders" use Prefs to allow listening to changes made to it.

Patch Set 1 #

Total comments: 10

Patch Set 2 : Moved code to safari/content.js #

Patch Set 3 : Corrected width and height of clickhide popup #

Total comments: 18

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -44 lines) Patch
M background.js View 1 2 3 4 chunks +22 lines, -31 lines 0 comments Download
M block.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/background.js View 1 2 3 2 chunks +35 lines, -4 lines 0 comments Download
M include.postload.js View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M lib/prefs.js View 1 chunk +3 lines, -1 line 0 comments Download
M options.js View 1 chunk +2 lines, -2 lines 0 comments Download
M safari/background.js View 1 2 3 1 chunk +61 lines, -3 lines 1 comment Download
M safari/content.js View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 11
Thomas Greiner
http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js File include.postload.js (right): http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js#newcode566 include.postload.js:566: clickHideFiltersDialog.style.height = (msg.height + 15) + "px"; This was ...
Jan. 7, 2014, 12:13 p.m. (2014-01-07 12:13:11 UTC) #1
Sebastian Noack
http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js File include.postload.js (right): http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js#newcode566 include.postload.js:566: clickHideFiltersDialog.style.height = (msg.height + 15) + "px"; On 2014/01/07 ...
Jan. 7, 2014, 2:13 p.m. (2014-01-07 14:13:13 UTC) #2
Thomas Greiner
http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js File include.postload.js (right): http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js#newcode566 include.postload.js:566: clickHideFiltersDialog.style.height = (msg.height + 15) + "px"; On 2014/01/07 ...
Jan. 7, 2014, 3:01 p.m. (2014-01-07 15:01:39 UTC) #3
Sebastian Noack
http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js File include.postload.js (right): http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js#newcode566 include.postload.js:566: clickHideFiltersDialog.style.height = (msg.height + 15) + "px"; On 2014/01/07 ...
Jan. 7, 2014, 3:42 p.m. (2014-01-07 15:42:27 UTC) #4
Thomas Greiner
http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js File include.postload.js (right): http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js#newcode566 include.postload.js:566: clickHideFiltersDialog.style.height = (msg.height + 15) + "px"; On 2014/01/07 ...
Jan. 7, 2014, 4:15 p.m. (2014-01-07 16:15:51 UTC) #5
Sebastian Noack
http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js File include.postload.js (right): http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js#newcode566 include.postload.js:566: clickHideFiltersDialog.style.height = (msg.height + 15) + "px"; On 2014/01/07 ...
Jan. 7, 2014, 4:28 p.m. (2014-01-07 16:28:34 UTC) #6
Thomas Greiner
http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js File include.postload.js (right): http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js#newcode566 include.postload.js:566: clickHideFiltersDialog.style.height = (msg.height + 15) + "px"; Sorry, I ...
Jan. 7, 2014, 5:39 p.m. (2014-01-07 17:39:42 UTC) #7
Sebastian Noack
LGTM http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js File include.postload.js (right): http://codereview.adblockplus.org/5589897452716032/diff/5629499534213120/include.postload.js#newcode566 include.postload.js:566: clickHideFiltersDialog.style.height = (msg.height + 15) + "px"; On ...
Jan. 7, 2014, 5:42 p.m. (2014-01-07 17:42:20 UTC) #8
Wladimir Palant
http://codereview.adblockplus.org/5589897452716032/diff/5676830073815040/chrome/background.js File chrome/background.js (right): http://codereview.adblockplus.org/5589897452716032/diff/5676830073815040/chrome/background.js#newcode373 chrome/background.js:373: var contextMenu = []; Nit: Would contextMenuItems be a ...
Jan. 17, 2014, 3:36 p.m. (2014-01-17 15:36:55 UTC) #9
Thomas Greiner
http://codereview.adblockplus.org/5589897452716032/diff/5676830073815040/chrome/background.js File chrome/background.js (right): http://codereview.adblockplus.org/5589897452716032/diff/5676830073815040/chrome/background.js#newcode373 chrome/background.js:373: var contextMenu = []; On 2014/01/17 15:36:55, Wladimir Palant ...
Jan. 18, 2014, 10:32 a.m. (2014-01-18 10:32:05 UTC) #10
Wladimir Palant
Jan. 18, 2014, 11:13 a.m. (2014-01-18 11:13:38 UTC) #11
LGTM (one nit remaining)

http://codereview.adblockplus.org/5589897452716032/diff/6252742238535680/safa...
File safari/background.js (right):

http://codereview.adblockplus.org/5589897452716032/diff/6252742238535680/safa...
safari/background.js:560: var context = event.userInfo.tagName.toLowerCase();
Nit: toLowerCase() is no longer necessary now that you are using localName.

Powered by Google App Engine
This is Rietveld