Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Issue 2191443002: Ensure the permissions DOMTokenList is initialized before access (Closed)

Created:
4 years, 4 months ago by raymes
Modified:
4 years, 4 months ago
Reviewers:
esprehn
CC:
blink-reviews, blink-reviews-html_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure the permissions DOMTokenList is initialized before access The permissions DOMTokenList in the HTMLIFrameElement is lazily initialized but we weren't initializing it before it was accessed through its accessor. This caused the code not to work correctly in cases where the attribute is initially accessed via JS. BUG=614608 Committed: https://crrev.com/c94140a3b3e85c7fb622a75338ec4c60e3425dd9 Cr-Commit-Position: refs/heads/master@{#408305}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Ensure the permissions DOMTokenList is initialized before access #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -2 lines) Patch
M third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLIFrameElementTest.cpp View 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
raymes
4 years, 4 months ago (2016-07-27 05:59:25 UTC) #2
esprehn
https://codereview.chromium.org/2191443002/diff/1/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp File third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp (right): https://codereview.chromium.org/2191443002/diff/1/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp#newcode66 third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp:66: if (!initializePermissionsAttribute()) How can this fail? Does the spec ...
4 years, 4 months ago (2016-07-27 06:05:57 UTC) #3
raymes
https://codereview.chromium.org/2191443002/diff/1/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp File third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp (right): https://codereview.chromium.org/2191443002/diff/1/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp#newcode66 third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp:66: if (!initializePermissionsAttribute()) On 2016/07/27 06:05:56, esprehn wrote: > How ...
4 years, 4 months ago (2016-07-27 06:13:45 UTC) #6
esprehn
lgtm
4 years, 4 months ago (2016-07-27 06:32:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2191443002/20001
4 years, 4 months ago (2016-07-27 23:45:01 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-07-28 01:21:57 UTC) #11
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 01:24:00 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c94140a3b3e85c7fb622a75338ec4c60e3425dd9
Cr-Commit-Position: refs/heads/master@{#408305}

Powered by Google App Engine
This is Rietveld 408576698