Closed
Bug 1984953
Opened 5 months ago
Closed 5 months ago
Log pollution from content process module events after Session is destroyed
Categories
(Remote Protocol :: WebDriver BiDi, defect, P3)
Remote Protocol
WebDriver BiDi
Tracking
(firefox144 fixed)
RESOLVED
FIXED
144 Branch
| Tracking | Status | |
|---|---|---|
| firefox144 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
(Blocks 1 open bug)
Details
(Whiteboard: [webdriver:m17])
Attachments
(1 file)
Until Bug 1730913 is addressed, content process modules might still process and emit events which will be received by the parent process. We don't unregister the JSWindowActor pair when closing the session, so any event emitted by a content module will still be handled by the MessageHandlerFrameParent.sys.mjs file at https://searchfox.org/firefox-main/rev/4b63e8e14125558cd75be1a53b6fc40b48cc2560/remote/shared/messagehandler/transports/js-window-actors/MessageHandlerFrameParent.sys.mjs#110-122
async #handleMessageHandlerEventMessage(messageData) {
const { name, contextInfo, data, sessionId } = messageData;
const [moduleName] = name.split(".");
const messageHandler =
lazy.RootMessageHandlerRegistry.getExistingMessageHandler(sessionId);
const module = messageHandler.moduleCache.getModuleInstance(moduleName, {
type: lazy.WindowGlobalMessageHandler.type,
});
However if the session is destroyed, messageHandler will be undefined and the call to messageHandler.moduleCache.getModuleInstance will throw and pollute the logs.
| Assignee | ||
Updated•5 months ago
|
Summary: Log pollution from content process module events after Session is detroyed → Log pollution from content process module events after Session is destroyed
| Assignee | ||
Comment 1•5 months ago
|
||
Updated•5 months ago
|
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/3a4933ce925e
https://hg.mozilla.org/integration/autoland/rev/b96a18bbd257
[bidi] Avoid log pollution from content process modules after session is destroyed r=webdriver-reviewers,whimboo
| Assignee | ||
Updated•5 months ago
|
Points: --- → 1
Priority: -- → P3
Whiteboard: [webdriver:m17]
| Assignee | ||
Updated•5 months ago
|
Severity: -- → S3
Comment 3•5 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
status-firefox144:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•