Chrome Version:68.0.3440.7 (Official Build) canary (64-bit) (cohort: Clang-64)
OS: All (Blink bug)
What steps will reproduce the problem?
(1) Navigate {Chrome, Safari, Edge, Firefox} to https://ehsan-karamad.github.io/embed.html
(2) Press "Add new embed"
(3) Observe the counter.
(4) Set the text inside <input> box next to "Style" to 'float: right;' and then press "Update Style".
(5) Observe the embed frame is moved and the count might restart or continue depending on which UserAgent you are on.
What is the expected result?
Possibly the counter should continue which is the case in FireFox.
On chrome the bug is due to the call to DetachLayoutTree which has its own overridden version for HTMLPlugInElement. The call to SetEmbeddedContentView and then load/redirecting the frame will basically reload the content.
The same issue does not seem to exist with some other plugins such as PDF since
it is stored as a persistent plugin during the style update.
Comment 1 by ekaramad@chromium.org
, May 31 2018