| Summary: | JavaScriptThread should only suspend if the event thread matches its underlying thread | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Michael Rennie <Michael_Rennie> | ||||
| Component: | Debug | Assignee: | Michael Rennie <Michael_Rennie> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Simon Kaegi <simon_kaegi> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | browe, johnjbarton, thatnitind | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 3.3 M3 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 314755 | ||||||
| Attachments: |
|
||||||
|
Description
Michael Rennie
I haven't looked at the code yet and will tomorrow but my two initial thoughts were: 1) Should this be handled at a higher level. e.g. why is the thread even receiving this event if it doesn't target the thread. 2) Do we need to do anything special for a global suspend event. (In reply to comment #1) > I haven't looked at the code yet and will tomorrow but my two initial thoughts > were: > 1) Should this be handled at a higher level. e.g. why is the thread even > receiving this event if it doesn't target the thread. We could quite easily handle this case in the event queue, which would require each implementor of the event queue to have such a fix. This fix though is trivial and catches the case that a contributor does not do this check in their event queue. > 2) Do we need to do anything special for a global suspend event. Not sure what you mean by the "global suspend" are you referring to the 'suspend for all script loads'? I applied the patch to HEAD. If we want it in any other stream we can clone this bug for those versions. |