sox icon indicating copy to clipboard operation
sox copied to clipboard

Clicking "Edit" on a question freezes the tab.

Open crackwitz opened this issue 2 months ago • 4 comments

Describe the bug Hit 'Edit' on any question, then the tab freezes from some infinite loop.

To Reproduce Steps to reproduce the behaviour:

  1. Go to any question (pick from questions page)
  2. Click on 'Edit' which is right under the question
  3. Throbber animation next to the 'Edit' appears, but the entire tab refuses to respond to any input, including mouse hovers and attempts to close the tab in some ways

SOX errors logged in console I managed to grab part of the log. This here repeats hundreds of times a second:

userscript.html?name=Stack-Overflow-Extras-SOX.user.js&id=01210d23-bf2a-430b-ab67-11d264c6a0e1:269 SOX: sox-edit-window event triggered
05:03:40.660 userscript.html?name=Stack-Overflow-Extras-SOX.user.js&id=01210d23-bf2a-430b-ab67-11d264c6a0e1:269 SOX: fire: target
05:03:40.661 userscript.html?name=Stack-Overflow-Extras-SOX.user.js&id=01210d23-bf2a-430b-ab67-11d264c6a0e1:269 SOX: w.fn.init {0: textarea#wmd-input-79777399.wmd-input.s-input.bar0.js-post-body-field, 1: textarea#wmd-input.wmd-input.s-input.bar0.js-post-body-field.processed, length: 2, prevObject: w.fn.init}
05:03:40.661 userscript.html?name=Stack-Overflow-Extras-SOX.user.js&id=01210d23-bf2a-430b-ab67-11d264c6a0e1:269 SOX: sox-edit-window event triggered
05:03:40.667 userscript.html?name=Stack-Overflow-Extras-SOX.user.js&id=01210d23-bf2a-430b-ab67-11d264c6a0e1:269 SOX: fire: target
05:03:40.668 userscript.html?name=Stack-Overflow-Extras-SOX.user.js&id=01210d23-bf2a-430b-ab67-11d264c6a0e1:269 SOX: w.fn.init {0: textarea#wmd-input-79777399.wmd-input.s-input.bar0.js-post-body-field, 1: textarea#wmd-input.wmd-input.s-input.bar0.js-post-body-field.processed, length: 2, prevObject: w.fn.init}
05:03:40.669 userscript.html?name=Stack-Overflow-Extras-SOX.user.js&id=01210d23-bf2a-430b-ab67-11d264c6a0e1:269 SOX: sox-edit-window event triggered
05:03:40.675 userscript.html?name=Stack-Overflow-Extras-SOX.user.js&id=01210d23-bf2a-430b-ab67-11d264c6a0e1:269 SOX: fire: target
05:03:40.676 userscript.html?name=Stack-Overflow-Extras-SOX.user.js&id=01210d23-bf2a-430b-ab67-11d264c6a0e1:269 SOX: w.fn.init {0: textarea#wmd-input-79777399.wmd-input.s-input.bar0.js-post-body-field, 1: textarea#wmd-input.wmd-input.s-input.bar0.js-post-body-field.processed, length: 2, prevObject: w.fn.init}
05:03:40.676 userscript.html?name=Stack-Overflow-Extras-SOX.user.js&id=01210d23-bf2a-430b-ab67-11d264c6a0e1:269 SOX: sox-edit-window event triggered
05:03:40.684 userscript.html?name=Stack-Overflow-Extras-SOX.user.js&id=01210d23-bf2a-430b-ab67-11d264c6a0e1:269 SOX: fire: target
05:03:40.686 userscript.html?name=Stack-Overflow-Extras-SOX.user.js&id=01210d23-bf2a-430b-ab67-11d264c6a0e1:269 SOX: 

Expected behaviour No tab freezing and infinite loop.

Environment

  • SOX 2.9.0DEV (as presented here: https://github.com/soscripted/sox/issues/513#issuecomment-3408125823 )
  • Chrome, latest update or close to it by days
  • Tampermonkey 5.4.0

crackwitz avatar Oct 16 '25 03:10 crackwitz