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

Issue 29363476: Issue 2879 - Move element selection into the content process (Closed)

Created:
Nov. 17, 2016, 1:17 p.m. by Wladimir Palant
Modified:
Dec. 1, 2016, 9:40 a.m.
Reviewers:
saroyanm
Base URL:
https://hg.adblockplus.org/elemhidehelper
Visibility:
Public.

Description

This is mostly done, only the view source commands haven`t been updated and won`t work.

Patch Set 1 #

Total comments: 64

Patch Set 2 : Addressed comments and marked extension as E10S-compatible #

Unified diffs Side-by-side diffs Delta from patch set Stats (+674 lines, -504 lines) Patch
M lib/aardvark.js View 1 4 chunks +87 lines, -478 lines 0 comments Download
A lib/child/commands.js View 1 chunk +147 lines, -0 lines 0 comments Download
M lib/child/main.js View 1 chunk +2 lines, -1 line 0 comments Download
M lib/child/nodeInfo.js View 1 chunk +0 lines, -18 lines 0 comments Download
A lib/child/selection.js View 1 1 chunk +315 lines, -0 lines 0 comments Download
A lib/child/utils.js View 1 1 chunk +119 lines, -0 lines 0 comments Download
M lib/main.js View 2 chunks +2 lines, -1 line 0 comments Download
M lib/windowWrapper.js View 2 chunks +2 lines, -5 lines 0 comments Download
M metadata.gecko View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 5
Wladimir Palant
Nov. 17, 2016, 1:17 p.m. (2016-11-17 13:17:14 UTC) #1
Wladimir Palant
Unfortunately, even if I copied aardvark.js to child/selection.js the resulting diff wouldn't be of much ...
Nov. 17, 2016, 1:54 p.m. (2016-11-17 13:54:47 UTC) #2
saroyanm
> only the view source commands haven`t been updated and won`t work I assume I ...
Nov. 23, 2016, 5:44 p.m. (2016-11-23 17:44:39 UTC) #3
Wladimir Palant
https://codereview.adblockplus.org/29363476/diff/29363477/lib/aardvark.js File lib/aardvark.js (right): https://codereview.adblockplus.org/29363476/diff/29363477/lib/aardvark.js#newcode2 lib/aardvark.js:2: * This Source Code is subject to the terms ...
Nov. 24, 2016, 2:02 p.m. (2016-11-24 14:02:02 UTC) #4
saroyanm
Nov. 25, 2016, 4:18 p.m. (2016-11-25 16:18:13 UTC) #5
Thanks for detailed answers, I've acknowledged all your comments.
LGTM

https://codereview.adblockplus.org/29363476/diff/29363477/lib/aardvark.js
File lib/aardvark.js (right):

https://codereview.adblockplus.org/29363476/diff/29363477/lib/aardvark.js#new...
lib/aardvark.js:217: if (event.keyCode == event.DOM_VK_ESCAPE)
On 2016/11/24 14:02:01, Wladimir Palant wrote:
> On 2016/11/23 17:44:38, saroyanm wrote:
> > Note: keyCode is a deprecated property.
> > You want me to file a separate issue for that ?
> 
> Yes, definitely.

Done -> #4666

https://codereview.adblockplus.org/29363476/diff/29363477/lib/child/selection.js
File lib/child/selection.js (right):

https://codereview.adblockplus.org/29363476/diff/29363477/lib/child/selection...
lib/child/selection.js:169: state.boxElement.style.left = Math.min(pos.left - 1,
wndWidth - 2) + "px";
On 2016/11/24 14:02:01, Wladimir Palant wrote:
> On 2016/11/23 17:44:38, saroyanm wrote:
> > Is this approach even working with RTL websites ?
> > seems like we are only considering the LTR direction.
> 
> Well, it works with RTL websites. Our UI is always displayed in LTR direction
> however, even if extension locale (which is what's relevant here, not the
> webpage) is Hebrew. We probably want to file an issue on that, not trivial to
> fix however.

Here you go: #4665

Powered by Google App Engine
This is Rietveld