Closed Bug 1697118 Opened 4 years ago Closed 4 years ago

Expose isTopLevel and followWindowGlobalLifecycle from the server

Categories

(DevTools :: Framework, task, P3)

task

Tracking

(firefox88 fixed)

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Extracting two simple pre-requisite for Bug 1644397

isTopLevel is currently computed on the client side. Instead we should be able to read it from the server. This will allow to easily detect target switching initiated from the server.

followWindowGlobalLifecycle is a flag set on browsing context targets created from JSWindowActors. Such targets will be destroyed on navigation/reload, regardless process changes. They will also not emit will-navigate/navigate events. Exposing this flag will for instance allow to predict more accurately when a target switching will happen, which will be critical in tests relying on the navitateTo helper.

Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9799d1d173f7 [devtools] Read isTopLevelTarget server flag to trigger target switching r=ochameau,nchevobbe https://hg.mozilla.org/integration/autoland/rev/0d01cee43ac8 [devtools] Check followWindowGlobalLifeCycle flag in navigateTo test helper r=nchevobbe,ochameau
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
Blocks: 1709314
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: