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

Issue 28067007: Construct frame hierarchy using first request originating from it (Closed)

Created:
Nov. 6, 2013, 2:33 p.m. by Thomas Greiner
Modified:
Nov. 14, 2013, 11:27 a.m.
Reviewers:
Wladimir Palant
Visibility:
Public.

Description

The initial idea was to fall back to the parent frame when the current frame is not inside the frame hierarchy. The approach in this review, however, tries to add missing frames to the hierarchy to avoid it alltogether. It does that by adding a frame when the first request that is referencing it is being made.

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
M webrequest.js View 1 2 chunks +11 lines, -0 lines 1 comment Download

Messages

Total messages: 4
Thomas Greiner
Nov. 6, 2013, 3:06 p.m. (2013-11-06 15:06:19 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/28067007/diff/1/webrequest.js File webrequest.js (right): http://codereview.adblockplus.org/28067007/diff/1/webrequest.js#newcode70 webrequest.js:70: recordFrame(details.tabId, details.frameId, details.parentFrameId, isFrame ? details.url : null); Frame ...
Nov. 6, 2013, 3:23 p.m. (2013-11-06 15:23:13 UTC) #2
Thomas Greiner
No objections
Nov. 13, 2013, 11:52 a.m. (2013-11-13 11:52:42 UTC) #3
Wladimir Palant
Nov. 13, 2013, 12:03 p.m. (2013-11-13 12:03:03 UTC) #4
LGTM with the nit addressed.

http://codereview.adblockplus.org/28067007/diff/5629499534213120/webrequest.js
File webrequest.js (right):

http://codereview.adblockplus.org/28067007/diff/5629499534213120/webrequest.j...
webrequest.js:155: if (tabId in frames && parentFrameId in frames[tabId])
No point for the |tabId in frames| part of the check - it is already known to be
there (see if block above).

Powered by Google App Engine
This is Rietveld