Revision e9f36aa0be6522db24e0d27b293a78ba68214d02 authored by Ehsan Karamad on 25 April 2018, 15:35:03 UTC, committed by Blink WPT Bot on 25 April 2018, 15:45:19 UTC
If 'vertical-scroll' is disabled for an <iframe>, then it should not be
able to affect the vertical scroll position. One way to block is to use
scripted scrolling by calling "element.scrollIntoView()".

To block such frames (whose feature's disabled), programmatic recursive
scroll calls are not forwarded to parent frames. This means if a given
<iframe> is blocked, then all the calls to scrollIntoView() are limited
to the scope of frame (i.e., elements becoming visible in the frame).
This applies to all the nested <iframe>'s of a disabled frame as well
since they would have the feature disabled as part of propagating the
container policy.

Link to explainer/design document for "vertical-scroll":
https://docs.google.com/document/d/1qiWelnMlsOHuT_CQ0Zm_qEAf54HS5DhoIvEDHBlfqps/edit?usp=sharing

Bug: 611982
Change-Id: I0e06b399ad890e263128b997cfbb04eb3bdd1494
Reviewed-on: https://chromium-review.googlesource.com/1014191
Reviewed-by: Ian Clelland <iclelland@chromium.org>
Reviewed-by: Ehsan Karamad <ekaramad@chromium.org>
Reviewed-by: David Bokan <bokan@chromium.org>
Commit-Queue: Ehsan Karamad <ekaramad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553561}
1 parent 6c62c5b
History
File Mode Size
legacy-mb-japanese
legacy-mb-korean
legacy-mb-tchinese
resources
OWNERS -rw-r--r-- 24 bytes
api-basics.html -rw-r--r-- 2.1 KB
api-invalid-label.html -rw-r--r-- 919 bytes
api-replacement-encodings.html -rw-r--r-- 690 bytes
api-surrogates-utf8.html -rw-r--r-- 1.5 KB
big5-encoder.html -rw-r--r-- 1.8 KB
eof-shift_jis-ref.html -rw-r--r-- 141 bytes
eof-shift_jis.html -rw-r--r-- 188 bytes
eof-utf-8-one-ref.html -rw-r--r-- 142 bytes
eof-utf-8-one.html -rw-r--r-- 181 bytes
eof-utf-8-three-ref.html -rw-r--r-- 146 bytes
eof-utf-8-three.html -rw-r--r-- 189 bytes
eof-utf-8-two-ref.html -rw-r--r-- 142 bytes
eof-utf-8-two.html -rw-r--r-- 182 bytes
gb18030-encoder.html -rw-r--r-- 777 bytes
gbk-encoder.html -rw-r--r-- 769 bytes
idlharness.any.js -rw-r--r-- 436 bytes
iso-2022-jp-decoder.html -rw-r--r-- 3.2 KB
iso-2022-jp-encoder.html -rw-r--r-- 731 bytes
replacement-encodings.html -rw-r--r-- 862 bytes
single-byte-decoder.html -rw-r--r-- 17.8 KB
textdecoder-byte-order-marks.html -rw-r--r-- 1.6 KB
textdecoder-copy.any.js -rw-r--r-- 442 bytes
textdecoder-fatal-single-byte.html -rw-r--r-- 2.9 KB
textdecoder-fatal-streaming.html -rw-r--r-- 1.6 KB
textdecoder-fatal.html -rw-r--r-- 4.1 KB
textdecoder-ignorebom.html -rw-r--r-- 1.9 KB
textdecoder-labels.html -rw-r--r-- 1.5 KB
textdecoder-streaming.html -rw-r--r-- 1.7 KB
textdecoder-utf16-surrogates.html -rw-r--r-- 1.3 KB
textencoder-constructor-non-utf.html -rw-r--r-- 817 bytes
textencoder-utf16-surrogates.html -rw-r--r-- 1.3 KB
unsupported-encodings.html -rw-r--r-- 1.5 KB
utf-32.html -rw-r--r-- 1.4 KB

back to top