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

Issue 29357576: Issue 4483 - Update page structure when sitekey is received (Closed)

Created:
Oct. 17, 2016, 10:16 a.m. by kzar
Modified:
Oct. 19, 2016, 5:33 p.m.
Visibility:
Public.

Description

Issue 4483 - Update page structure when sitekey is received

Patch Set 1 #

Patch Set 2 : Avoid updating the page structure twice #

Total comments: 2

Patch Set 3 : Create page on one line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -26 lines) Patch
M chrome/ext/background.js View 1 2 1 chunk +33 lines, -21 lines 0 comments Download
M lib/whitelisting.js View 1 4 chunks +27 lines, -5 lines 0 comments Download

Messages

Total messages: 7
kzar
Patch Set 1 I'm not too happy with this solution, it means that the page ...
Oct. 17, 2016, 10:19 a.m. (2016-10-17 10:19:46 UTC) #1
kzar
Patch Set 2 : Avoid updating the page structure twice
Oct. 17, 2016, 11:04 a.m. (2016-10-17 11:04:46 UTC) #2
Sebastian Noack
From the top of my head, I don't have any better idea. I put Wladimir ...
Oct. 18, 2016, 1:20 p.m. (2016-10-18 13:20:11 UTC) #3
kzar
Patch Set 3 : Create page on one line https://codereview.adblockplus.org/29357576/diff/29357584/chrome/ext/background.js File chrome/ext/background.js (right): https://codereview.adblockplus.org/29357576/diff/29357584/chrome/ext/background.js#newcode139 chrome/ext/background.js:139: ...
Oct. 19, 2016, 12:36 p.m. (2016-10-19 12:36:58 UTC) #4
Wladimir Palant
On 2016/10/18 13:20:11, Sebastian Noack wrote: > From the top of my head, I don't ...
Oct. 19, 2016, 3:04 p.m. (2016-10-19 15:04:52 UTC) #5
Sebastian Noack
On 2016/10/19 15:04:52, Wladimir Palant wrote: > On 2016/10/18 13:20:11, Sebastian Noack wrote: > > ...
Oct. 19, 2016, 3:12 p.m. (2016-10-19 15:12:40 UTC) #6
Sebastian Noack
Oct. 19, 2016, 4:02 p.m. (2016-10-19 16:02:32 UTC) #7
I have a suspicion that this issue might be caused by the fact that we don't
keep track of the whitelisted frame's IDs but of their URL at the time the
sitekey was seen. This was necessary for compatibility with Safari, but once we
stop supporting Safari with the upstream code, we should cleanup this code and
use frame IDs again.

So I guess this workaround is good enough for the time being. LGTM.

Powered by Google App Engine
This is Rietveld