TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

New in Chrome 120 back button detection

48 pointsby clementmasover 1 year ago

7 comments

snailmailmanover 1 year ago
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 未加载
akerstenover 1 year ago
The &lt;details&gt; name attribute example doesn&#x27;t actually use the name attribute? Am I missing something?
评论 #38539939 未加载
评论 #38540461 未加载
评论 #38540661 未加载
评论 #38539931 未加载
评论 #38540070 未加载
ggregoireover 1 year ago
&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 未加载
chrismorganover 1 year ago
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.
clementmasover 1 year ago
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
raszover 1 year ago
&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?
tuatoruover 1 year ago
Yet another reason to use something other than Chrome.
评论 #38540308 未加载