TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

New in Chrome 120 back button detection

48 点作者 clementmas超过 1 年前

7 条评论

snailmailman超过 1 年前
Does this mean websites can now hijack android’s OS-level back button? In addition to hijacking the browser level one?<p>I hate when I hit back, but instantly redirect to the same page. This is so frustrating when it happens. And it happens even on major sites. (Microsoft’s official community “answers” forums have given me this issue lately. Fills up search results and then traps you there)
评论 #38540133 未加载
评论 #38540269 未加载
评论 #38539982 未加载
评论 #38539915 未加载
akersten超过 1 年前
The &lt;details&gt; name attribute example doesn&#x27;t actually use the name attribute? Am I missing something?
评论 #38539939 未加载
评论 #38540461 未加载
评论 #38540661 未加载
评论 #38539931 未加载
评论 #38540070 未加载
ggregoire超过 1 年前
&gt; CloseWatcher API<p>&gt; Chrome 120 brings the solution with CloseWatcher, a new API for directly listening and responding to close requests.<p>&gt; watcher.addEventListener(&quot;close&quot;, () =&gt; document.querySelector(&quot;#sidebar&quot;).classList.remove(&quot;open&quot;));<p>Couldn&#x27;t they add an HTML attribute onCloseRequest?<p>Slightly related, I wish there was an attribute &quot;onClickOutside&quot; so we could close modals and dropdown menus without manually adding an event listener on the window and checking if the click wasn&#x27;t inside the element.
评论 #38551861 未加载
chrismorgan超过 1 年前
I don’t think I <i>ever</i> like accordions where you can only have one item open at a time. So often I just want to open them <i>all</i>, and probably wish you hadn’t collapsed them in the first place. Well, at least if people start doing it this way I can make a simple user script to just remove name attributes from &lt;details&gt; elements.
clementmas超过 1 年前
I wish I&#x27;ll be able to use the CloseWatcher API to replace my history API hack to close dialogs. As always, we&#x27;re now waiting for browser support
rasz超过 1 年前
&gt;Permission policy violation reports<p>How about my User Agent working for me instead? and doing exactly what I want and not some web page?
tuatoru超过 1 年前
Yet another reason to use something other than Chrome.
评论 #38540308 未加载