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

Issue 29323426: Issue 2878 - Element Hiding Helper is stuck in a bad state after a tab crash (Closed)

Created:
Aug. 10, 2015, 11:45 a.m. by Wladimir Palant
Modified:
Aug. 11, 2015, 12:41 p.m.
Reviewers:
saroyanm
Visibility:
Public.

Description

Issue 2878 - Element Hiding Helper is stuck in a bad state after a tab crash

Patch Set 1 #

Total comments: 5

Patch Set 2 : Improved comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M lib/aardvark.js View 1 2 chunks +20 lines, -2 lines 0 comments Download

Messages

Total messages: 5
Wladimir Palant
Aug. 10, 2015, 11:45 a.m. (2015-08-10 11:45:33 UTC) #1
Wladimir Palant
Ah, Thomas is on vacation. Manvel, could you take a look maybe?
Aug. 10, 2015, 11:59 a.m. (2015-08-10 11:59:24 UTC) #2
saroyanm
https://codereview.adblockplus.org/29323426/diff/29323427/lib/aardvark.js File lib/aardvark.js (right): https://codereview.adblockplus.org/29323426/diff/29323427/lib/aardvark.js#newcode257 lib/aardvark.js:257: return; // hideSelection() called quit() Nit: I think make ...
Aug. 10, 2015, 2:58 p.m. (2015-08-10 14:58:13 UTC) #3
Wladimir Palant
https://codereview.adblockplus.org/29323426/diff/29323427/lib/aardvark.js File lib/aardvark.js (right): https://codereview.adblockplus.org/29323426/diff/29323427/lib/aardvark.js#newcode400 lib/aardvark.js:400: if (this.boxElem.parentNode) On 2015/08/10 14:58:12, saroyanm wrote: > I ...
Aug. 10, 2015, 9:10 p.m. (2015-08-10 21:10:11 UTC) #4
saroyanm
Aug. 10, 2015, 9:33 p.m. (2015-08-10 21:33:28 UTC) #5
On 2015/08/10 21:10:11, Wladimir Palant wrote:
> https://codereview.adblockplus.org/29323426/diff/29323427/lib/aardvark.js
> File lib/aardvark.js (right):
> 
>
https://codereview.adblockplus.org/29323426/diff/29323427/lib/aardvark.js#new...
> lib/aardvark.js:400: if (this.boxElem.parentNode)
> On 2015/08/10 14:58:12, saroyanm wrote:
> > I wander if this is the only case where we are using CPOW when the tab is
> > crashed ? 
> 
> No, it's not, and the other places might still produce errors - but we'll
> usually get here (either via onMouseMove or quit). This is merely an
> intermediate solution until https://issues.adblockplus.org/ticket/2879 is
fixed.
> 
> > I've noticed that we also use "this.boxElem.parentNode" in selectElement,
have
> > assumption that tab crash is connected to that CPOW.
> 
>
https://codereview.adblockplus.org/29323426/diff/29323427/lib/aardvark.js#new...
> lib/aardvark.js:406: this.boxElem = {};
> On 2015/08/10 14:58:12, saroyanm wrote:
> > Shouldn't we reset this.boxElem value and paintNode in quite() function  ?
> 
> No, because quit() will call hideSelection() again - it would normally cause
> infinite recursion.

LGTM

Powered by Google App Engine
This is Rietveld