You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve the names for devtools-related channels in workers. #6924
A-content/domInteracting with the DOM from web contentA-devtoolsE-more-complexVariable effort required; may require a mentor. Recommended solution is clearly described in the issI-refactorNo impact; the issue is one of maintainability or tidiness. Proposed solution requires refactoring.
devtools_chan:Option<IpcSender<ScriptToDevtoolsControlMsg>>,/// Optional `IpcSender` for sending the `DevtoolScriptControlMsg`/// to the server from within the worker
devtools_sender:Option<IpcSender<DevtoolScriptControlMsg>>,/// This `Receiver` will be ignored later if the corresponding/// `IpcSender` doesn't exist
devtools_receiver:Receiver<DevtoolScriptControlMsg>,
This is confusing because chan and sender are usually used interchangeably.
DedicatedWorkerGlobalScope::run_worker_scope has arguments
which is no less confusing, as the two senders are IpcSenders.
To fix this issue, figure out the distinction between these channels, and invent names for them that explain the distinction. None of those names should use the outdated terms "chan" or "port".
A-content/domInteracting with the DOM from web contentA-devtoolsE-more-complexVariable effort required; may require a mentor. Recommended solution is clearly described in the issI-refactorNo impact; the issue is one of maintainability or tidiness. Proposed solution requires refactoring.
Activity
Auto merge of #7238 - Wafflespeanut:workerglobal, r=Ms2ger