Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome 100 以降でコメントが表示されない #20

Closed
kphrx opened this issue Feb 28, 2022 · 1 comment
Closed

Chrome 100 以降でコメントが表示されない #20

kphrx opened this issue Feb 28, 2022 · 1 comment
Labels

Comments

@kphrx
Copy link
Owner

kphrx commented Feb 28, 2022

Originally posted by @kphrx in #10 (reply in thread)

@kphrx kphrx changed the title Chrome 100以降でコメントが表示されない Chrome 100 以降でコメントが表示されない Feb 28, 2022
@kphrx
Copy link
Owner Author

kphrx commented Feb 28, 2022

Chromium だけの問題なのでコメントレイヤー周りで処理が分岐してる以下が怪しい

Chrome 98

srcdocElement.removeAttribute() してもしなくても表示は正常。 開発者ツールの Elements で <iframe> が折り畳まれていても srcdoc が完全に表示されるから Element.removeAttribute() していた?

Chrome Canary 101

srcdocElement.removeAttribute() すると <iframe> の document が初期化される

NicoCommentCss3PlayerViewElement.removeAttribute() せずに処理を進めるとコメントが見える。高さの情報は OffscreenLayer で計算してるので、こちらでも Element.removeAttribute() しないようにすることで正常に表示される

Firefox Nightly 99.0a1

srcdocElement.removeAttribute() するとコメントが表示されない。 Element.removeAttribute() しなくても開発者ツールの Inspector では srcdoc のような長い属性は一部だけ表示されて大部分が省略されてるので邪魔にならない

@kphrx kphrx added the bug label Feb 28, 2022
@kphrx kphrx closed this as completed in 47fd74c Feb 28, 2022
@kphrx kphrx pinned this issue Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant