# Chrome 和 Firefox 删除帖子时无响应

**URL:** https://meta.discourse.org/t/chrome-and-firefox-not-responding-when-delete-a-post-forever/208250
**Category:** Bug
**Created:** [2021年十一月4日 14:36 UTC](https://meta.discourse.org/t/chrome-and-firefox-not-responding-when-delete-a-post-forever/208250 "2021-11-04T14:36:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tachibanalolo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tachibanalolo/32/233762_2.png) [@tachibanalolo](https://meta.discourse.org/u/tachibanalolo)
#### Post date: [2021年十一月4日 14:36 UTC](https://meta.discourse.org/t/chrome-and-firefox-not-responding-when-delete-a-post-forever/208250/1 "2021-11-04T14:36:46Z")

</div>

2.8.0.beta7 中新增了一个功能： **永久删除帖子和主题** 。

但是，当我启用该功能并尝试使用时，会导致 Chrome 和 Firefox 无响应。我不知道为什么会发生这种情况。

也许在永久删除帖子时存在一些错误。

我已启用 CDN。

通过此功能可以永久删除帖子，刷新后显示“找不到”。然而，我只是不知道为什么这会导致浏览器卡死且无响应。

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/b/0b5ecf43c1b1ae481896cfdecc375b4363361eb3.jpeg)

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/e/2e53c1504cd845ced70d53124b330414fa64673a.jpeg)

---

<div class="post-metadata">

### Author: ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)
#### Post date: [2021年十一月8日 20:03 UTC](https://meta.discourse.org/t/chrome-and-firefox-not-responding-when-delete-a-post-forever/208250/3 "2021-11-08T20:03:59Z")

</div>

你好！我尝试重现该错误，但对我来说是有效的。这个问题只在你尝试删除第一个帖子时出现，还是删除任何帖子时都会出现？

我认为浏览器无响应是由某种无限循环引起的。

---

<div class="post-metadata">

### Author: ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)
#### Post date: [2021年十一月23日 17:27 UTC](https://meta.discourse.org/t/chrome-and-firefox-not-responding-when-delete-a-post-forever/208250/5 "2021-11-23T17:27:47Z")

</div>

我在 Firefox 中重现了该错误，然后在以下 PR 中修复了它：

> <https://github.com/discourse/discourse/pull/14951>
>
> After permanently deleting the first post of a topic the user was
> sometimes stu…ck on the page because of an infinite loop. This problem
> happened more often in Firefox.

感谢您的错误报告！

---

<div class="post-metadata">

### Author: ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)
#### Post date: [2021年十一月23日 17:27 UTC](https://meta.discourse.org/t/chrome-and-firefox-not-responding-when-delete-a-post-forever/208250/6 "2021-11-23T17:27:51Z")

</div>


