Closed Bug 917982 Opened 11 years ago Closed 11 years ago

threadLifetimePool should actually be the lifetime of the thread actor

Categories

(DevTools :: Debugger, defect, P2)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 28

People

(Reporter: fitzgen, Assigned: fitzgen)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Right now we blow away the threadLifetimePool on every navigation (including refresh), but the RDP spec says it should have the same lifetime as the thread actor.

This is contributing to race conditions like bug 833618, and the reason why we are forced to put the breakpoint actors in the connection's pool, when they should really be in the threadLifetimePool. Plus, the thread-lifetime-promoted objects should still be alive and inspectable on navigation due to them still being alive via the bfcache.
Priority: -- → P2
Assignee: nobody → nfitzgerald
Jim, this should be a pretty quick and easy review, we just talked about this on IRC.

https://tbpl.mozilla.org/?tree=Try&rev=20155e0ec587
Attachment #8337156 - Flags: review?(jimb)
Comment on attachment 8337156 [details] [diff] [review]
bug-917982-threadlifetimepool.patch

Review of attachment 8337156 [details] [diff] [review]:
-----------------------------------------------------------------

::: toolkit/devtools/server/actors/script.js
@@ +538,5 @@
>      }
> +    if (!aKeepThreadLifetimePool && this._threadLifetimePool) {
> +      this.conn.removeActorPool(this._threadLifetimePool);
> +      this._threadLifetimePool = null;
> +    }

I think it would be fine to actually just move the 'removeActorPool' call to ThreadActor.prototype.disconnect, and then leave this function mysterious-boolean-argument-free. (With a doc fix, obv.)
Attachment #8337156 - Flags: review?(jimb) → review+
https://hg.mozilla.org/mozilla-central/rev/96af68a913f4
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 28
Whiteboard: [qa-]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: