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)
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 | ||
Updated•7 years ago
|
Blocks: marionette-window-tracking
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → ato
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•7 years ago
|
||
Did a first draft of a patch to drop GeckoDriver#switchToGlobalMessageManager and triggered a try run [1].
Assignee | ||
Comment 2•7 years ago
|
||
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
Assignee | ||
Comment 3•7 years ago
|
||
Link to try run mentioned in comment #1: https://treeherder.mozilla.org/#/jobs?repo=try&revision=6b7c262814371e2de84ced05e7666e111bb84894
Comment hidden (mozreview-request) |
Comment 5•7 years ago
|
||
mozreview-review |
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
Comment 7•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b7b56045fab4
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Updated•1 year ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•