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

Issue 29423612: Issue 4586 - Prevent access to shadowRoot via contentWindow (Closed)

Created:
April 27, 2017, 9:04 p.m. by Manish Jethani
Modified:
May 10, 2017, 9:19 a.m.
Reviewers:
Sebastian Noack, kzar
CC:
Wladimir Palant
Base URL:
https://hg.adblockplus.org/adblockpluschrome/
Visibility:
Public.

Description

Issue 4586 - Prevent access to shadowRoot via contentWindow This improves on Dave's previous fix for this issue. Currently we're wrapping Element.prototype.shadowRoot. With this fix we also wrap HTMLIFrameElement.prototype.contentWindow to prevent access to the original shadowRoot via that route. We also have to hold on to references to certain APIs like Object.defineProperty and HTMLIFrameElement.prototype.sandbox, just in case those are overridden by the site to bypass us. I have tested this on Chrome 49 as well as the latest Chrome and it works fine.

Patch Set 1 : Prevent access to shadowRoot via contentWindow #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -8 lines) Patch
M include.preload.js View 1 chunk +41 lines, -8 lines 0 comments Download

Messages

Total messages: 5
Manish Jethani
April 27, 2017, 9:04 p.m. (2017-04-27 21:04:08 UTC) #1
Manish Jethani
Patch Set 1: Prevent access to shadowRoot via contentWindow Please see the description.
April 27, 2017, 9:19 p.m. (2017-04-27 21:19:50 UTC) #2
kzar
Uh this issue is assigned to me and I'm actually working on it at the ...
April 28, 2017, 9:01 a.m. (2017-04-28 09:01:11 UTC) #3
Manish Jethani
On 2017/04/28 09:01:11, kzar wrote: > Uh this issue is assigned to me and I'm ...
April 28, 2017, 10:42 a.m. (2017-04-28 10:42:46 UTC) #4
Manish Jethani
May 10, 2017, 9:19 a.m. (2017-05-10 09:19:42 UTC) #5
Message was sent while issue was closed.
Closed.

Powered by Google App Engine
This is Rietveld