Closed
Bug 1831411
Opened 1 year ago
Closed 1 year ago
MessageHandler.handleCommand with destination "ROOT" runs the command in the content process
Categories
(Remote Protocol :: Agent, defect, P1)
Remote Protocol
Agent
Tracking
(firefox114 fixed)
RESOLVED
FIXED
114 Branch
Tracking | Status | |
---|---|---|
firefox114 | --- | fixed |
People
(Reporter: whimboo, Assigned: jdescottes)
References
Details
(Whiteboard: [webdriver:m7])
Attachments
(1 file)
The code as landed on bug 1830404 doesn't correctly work and instead of running the given command in the parent process the root module is actually instantiated in the content process.
This can be verified by adding the following code to the command that needs to be run:
const isRemote =
Services.appinfo.processType == Services.appinfo.PROCESS_TYPE_CONTENT;
if (isRemote) {
throw new Error("Cannot be run in content process");
}
Available commands in the root modules will fail. I've added some debugger statements to the MessageHandlerFrameChild
and MessageHandlerFrameParent
related methods and those are not called at all. IMHO we do not actually forward the command but execute immediately.
A fix for this bug is required for my work on bug 1830884.
Assignee | ||
Updated•1 year ago
|
Assignee: nobody → jdescottes
Severity: -- → S3
Status: NEW → ASSIGNED
Points: --- → 1
Priority: -- → P1
Whiteboard: [webdriver:m7]
Assignee | ||
Comment 1•1 year ago
|
||
Depends on D177181
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f584d752c7ca [remote] Commands send to root modules from windowglobal should run in the parent r=webdriver-reviewers,Sasha
Comment 3•1 year ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox114:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•