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

Issue 2855973005: Update tests for snapshot allowfullscreen behavior (Closed)

Created:
3 years, 7 months ago by iclelland
Modified:
3 years, 7 months ago
Reviewers:
ncarter (slow), alexmos
CC:
chromium-reviews, jam, darin-cc_chromium.org, foolip
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update tests for snapshot allowfullscreen behavior As part of moving the Fullscreen API to Feature Policy, the behaviour of the iframe "allowfullscreen" attribute is changing slightly -- it is now being sampled once, when the frame content loads, and that value is used when the frame tries to go fullscreen, regardless of whether it has been changed. This CL updates the tests which were depending on that behavior and introduces a new way of calling the cross-site-iframe-factory script to attach additional attributes to iframes at creation time. BUG=718155 Review-Url: https://codereview.chromium.org/2855973005 Cr-Commit-Position: refs/heads/master@{#469839} Committed: https://chromium.googlesource.com/chromium/src/+/c3c6e3d369c0d2246d3e63eec0cddd12b7eaee2a

Patch Set 1 #

Patch Set 2 : Fix iframe factory site canonicalization #

Total comments: 9

Patch Set 3 : Move parsing of attribute lists to tree_parser_util.js #

Total comments: 6

Patch Set 4 : Update docs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -46 lines) Patch
M chrome/browser/site_per_process_interactive_browsertest.cc View 5 chunks +8 lines, -24 lines 0 comments Download
M content/test/data/cross_site_iframe_factory.html View 1 2 4 chunks +51 lines, -2 lines 0 comments Download
M content/test/data/tree_parser_util.js View 1 2 3 5 chunks +80 lines, -20 lines 0 comments Download

Messages

Total messages: 33 (21 generated)
iclelland
+r alexmos, you appear to be the specific OWNER for this file, can you take ...
3 years, 7 months ago (2017-05-04 15:39:14 UTC) #10
alexmos
LGTM for the test change, and +nick@ to double-check cross_site_iframe_factory.html: Nick originally wrote it and ...
3 years, 7 months ago (2017-05-04 21:47:00 UTC) #11
alexmos
Actually adding nick@
3 years, 7 months ago (2017-05-04 21:47:20 UTC) #13
ncarter (slow)
I love this https://codereview.chromium.org/2855973005/diff/20001/content/test/data/cross_site_iframe_factory.html File content/test/data/cross_site_iframe_factory.html (right): https://codereview.chromium.org/2855973005/diff/20001/content/test/data/cross_site_iframe_factory.html#newcode23 content/test/data/cross_site_iframe_factory.html:23: cross_site_iframe_factory.html?a(b{allowfullscreen}(),c{sandbox-allow-scripts}(d)) On 2017/05/04 21:47:00, alexmos wrote: ...
3 years, 7 months ago (2017-05-04 22:06:56 UTC) #14
iclelland
https://codereview.chromium.org/2855973005/diff/20001/content/test/data/cross_site_iframe_factory.html File content/test/data/cross_site_iframe_factory.html (right): https://codereview.chromium.org/2855973005/diff/20001/content/test/data/cross_site_iframe_factory.html#newcode23 content/test/data/cross_site_iframe_factory.html:23: cross_site_iframe_factory.html?a(b{allowfullscreen}(),c{sandbox-allow-scripts}(d)) On 2017/05/04 21:47:00, alexmos wrote: > Awesome, this ...
3 years, 7 months ago (2017-05-05 14:54:28 UTC) #15
iclelland
On 2017/05/05 14:54:28, iclelland wrote: > https://codereview.chromium.org/2855973005/diff/20001/content/test/data/cross_site_iframe_factory.html > File content/test/data/cross_site_iframe_factory.html (right): > > https://codereview.chromium.org/2855973005/diff/20001/content/test/data/cross_site_iframe_factory.html#newcode23 > ...
3 years, 7 months ago (2017-05-05 15:32:43 UTC) #18
ncarter (slow)
lgtm https://codereview.chromium.org/2855973005/diff/40001/content/test/data/tree_parser_util.js File content/test/data/tree_parser_util.js (right): https://codereview.chromium.org/2855973005/diff/40001/content/test/data/tree_parser_util.js#newcode46 content/test/data/tree_parser_util.js:46: * TreeParserUtil.parse('b{red,blue}(c,d{green})'; So it turns out that I ...
3 years, 7 months ago (2017-05-05 22:34:05 UTC) #21
ncarter (slow)
https://codereview.chromium.org/2855973005/diff/20001/content/test/data/cross_site_iframe_factory.html File content/test/data/cross_site_iframe_factory.html (right): https://codereview.chromium.org/2855973005/diff/20001/content/test/data/cross_site_iframe_factory.html#newcode143 content/test/data/cross_site_iframe_factory.html:143: if (option.startsWith("sandbox-")) { On 2017/05/05 14:54:28, iclelland wrote: > ...
3 years, 7 months ago (2017-05-05 22:37:04 UTC) #22
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/2855973005/40001
3 years, 7 months ago (2017-05-05 23:33:00 UTC) #26
iclelland
https://codereview.chromium.org/2855973005/diff/40001/content/test/data/tree_parser_util.js File content/test/data/tree_parser_util.js (right): https://codereview.chromium.org/2855973005/diff/40001/content/test/data/tree_parser_util.js#newcode46 content/test/data/tree_parser_util.js:46: * TreeParserUtil.parse('b{red,blue}(c,d{green})'; On 2017/05/05 22:34:05, ncarter wrote: > So ...
3 years, 7 months ago (2017-05-06 03:03:10 UTC) #27
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/2855973005/60001
3 years, 7 months ago (2017-05-06 03:03:46 UTC) #30
commit-bot: I haz the power
3 years, 7 months ago (2017-05-06 18:44:14 UTC) #33
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c3c6e3d369c0d2246d3e63eec0cd...

Powered by Google App Engine
This is Rietveld 408576698