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

Issue 11579001: Workaround for Chrome not specifying which request is main_frame under some circumstances (Closed)

Created:
Aug. 28, 2013, 12:50 p.m. by Thomas Greiner
Modified:
Sept. 11, 2013, 1:09 p.m.
Visibility:
Public.

Description

Workaround for Chrome not specifying which request is main_frame under some circumstances

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Added more checks #

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

Messages

Total messages: 13
Thomas Greiner
Aug. 28, 2013, 12:52 p.m. (2013-08-28 12:52:29 UTC) #1
Thomas Greiner
It's safer to overwrite the type value.
Aug. 28, 2013, 1:07 p.m. (2013-08-28 13:07:06 UTC) #2
Felix Dahlke
LGTM
Aug. 28, 2013, 1:14 p.m. (2013-08-28 13:14:50 UTC) #3
Wladimir Palant
Browser bugs are a PITA, just working around the issue you are seeing is definitely ...
Aug. 29, 2013, 5:57 a.m. (2013-08-29 05:57:40 UTC) #4
Felix Dahlke
On 2013/08/29 05:57:40, Wladimir Palant wrote: > From what I can tell, neither has been ...
Aug. 29, 2013, 7:29 a.m. (2013-08-29 07:29:15 UTC) #5
Wladimir Palant
On 2013/08/29 07:29:15, Felix H. Dahlke wrote: > That's true, we discussed this a bit. ...
Aug. 29, 2013, 8:15 a.m. (2013-08-29 08:15:42 UTC) #6
Wladimir Palant
On http://www.fotoplayer.com/v4/index.html I could verify that Flash links opening in current tab also get type ...
Aug. 29, 2013, 8:22 a.m. (2013-08-29 08:22:04 UTC) #7
Wladimir Palant
Actually, http://demo.testfire.net/vulnerable.swf is a better test case. Both getURL(blank) and getURL(parent) produce request type "object" ...
Aug. 29, 2013, 8:26 a.m. (2013-08-29 08:26:15 UTC) #8
Thomas Greiner
Made changes according to feedback from intraforum and added reference to the related issue report.
Aug. 30, 2013, 8:31 a.m. (2013-08-30 08:31:20 UTC) #9
Wladimir Palant
http://codereview.adblockplus.org/11579001/diff/4/webrequest.js File webrequest.js (right): http://codereview.adblockplus.org/11579001/diff/4/webrequest.js#newcode63 webrequest.js:63: if (details.frameId == 0 && !(details.tabId in frames) && ...
Aug. 30, 2013, 12:16 p.m. (2013-08-30 12:16:25 UTC) #10
Thomas Greiner
On 2013/08/30 12:16:25, Wladimir Palant wrote: > http://codereview.adblockplus.org/11579001/diff/4/webrequest.js > File webrequest.js (right): > > http://codereview.adblockplus.org/11579001/diff/4/webrequest.js#newcode63 ...
Aug. 30, 2013, 12:18 p.m. (2013-08-30 12:18:18 UTC) #11
Wladimir Palant
> This check already exists on line 55. You are right, missed that. LGTM then.
Aug. 30, 2013, 12:28 p.m. (2013-08-30 12:28:47 UTC) #12
Felix Dahlke
Aug. 30, 2013, 12:40 p.m. (2013-08-30 12:40:57 UTC) #13
LGTM

Powered by Google App Engine
This is Rietveld