Closed Bug 1423209 Opened 7 years ago Closed 7 years ago

Drop ability to put a frame script to sleep

Categories

(Remote Protocol :: Marionette, enhancement)

Version 3
enhancement
Not set
normal

Tracking

(firefox59 fixed)

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: ato, Assigned: ato)

References

Details

Attachments

(1 file)

Marionette has a Marionette:sleepSession IPC command it uses to
put a content frame script “to sleep”.  This removes certain
message handlers and clears some state.

From what we can tell this is B2G-specific functionality we no
longer need.  In an effort to remove old cruft from Marionette
before tackling the window tracking refactoring [1] we want to
remove support for this.

The problem is that it interacts with this.curBrowser.frameManager
and the global message manager, which could be tricky to get right.

  [1] https://bugzil.la/marionette-window-tracking
Assignee: nobody → ato
Status: NEW → ASSIGNED
Did a first draft of a patch to drop
GeckoDriver#switchToGlobalMessageManager and triggered a try run [1].
I have a suspicion that testing/marionette/frame.js is entirely B2G related and not used in Firefox/Fennec automation.  From reading the source code it is hard to tell if it  means content browsers by ‘OOP frames’, or if it means segregated chrome processes for B2G apps.  Note that I’m very fuzzy on the terminology here.

The message managers handled by frame.js decides whether to use a ‘targetted’ per-frame message manager call in GeckoDriver#sendAsync or whether to use a broadcasting technique, where the message name is appended with the content browser’s outerWindowID.  I have never once seen the first being used.  My suspicion was further solidified by looking at code coverage data [1].

  [1] https://codecov.io/gh/marco-c/gecko-dev/src/8faace152630a16ea00aa20337c8c132695e8f09/testing/marionette/driver.js#L347
Blocks: 1423282
Comment on attachment 8934627 [details]
Bug 1423209 - Drop ability to put frame script to sleep.

https://reviewboard.mozilla.org/r/205494/#review211440
Attachment #8934627 - Flags: review?(dburns) → review+
Pushed by atolfsen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b7b56045fab4
Drop ability to put frame script to sleep. r=automatedtester
https://hg.mozilla.org/mozilla-central/rev/b7b56045fab4
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: