ui: drop old deprecated message types

This commit is contained in:
nick-delirium 2025-03-06 14:49:45 +01:00
parent 4ebbfd3501
commit a87f6c658c
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
3 changed files with 0 additions and 41 deletions

View file

@ -289,7 +289,6 @@ export default class TabSessionManager {
); );
} }
break; break;
case MType.Fetch:
case MType.NetworkRequest: case MType.NetworkRequest:
this.lists.lists.fetch.insert( this.lists.lists.fetch.insert(
getResourceFromNetworkRequest(msg, this.sessionStart) getResourceFromNetworkRequest(msg, this.sessionStart)

View file

@ -408,38 +408,6 @@ export default class DOMManager extends ListWalker<Message> {
vText.setData(msg.data); vText.setData(msg.data);
return; return;
} }
/** @deprecated
* since 4.0.2 in favor of AdoptedSsInsertRule/DeleteRule + AdoptedSsAddOwner as a common case for StyleSheets
*/
case MType.CssInsertRule: {
let styleSheet = this.olStyleSheetsDeprecated.get(msg.id);
if (!styleSheet) {
const vElem = this.vElements.get(msg.id);
if (!vElem) {
logger.error('CssInsertRule: Node not found', msg);
return;
}
if (!isStyleVElement(vElem)) {
logger.error('CssInsertRule: Non-style element', msg);
return;
}
styleSheet = OnloadStyleSheet.fromStyleElement(vElem.node);
this.olStyleSheetsDeprecated.set(msg.id, styleSheet);
}
styleSheet.insertRule(msg.rule, msg.index);
return;
}
case MType.CssDeleteRule: {
const styleSheet = this.olStyleSheetsDeprecated.get(msg.id);
if (!styleSheet) {
logger.error('CssDeleteRule: StyleSheet was not created', msg);
return;
}
styleSheet.deleteRule(msg.index);
return;
}
/* end @deprecated */
case MType.CreateIFrameDocument: { case MType.CreateIFrameDocument: {
const vElem = this.vElements.get(msg.frameID); const vElem = this.vElements.get(msg.frameID);
if (!vElem) { if (!vElem) {

View file

@ -4,8 +4,6 @@ import type {
RawSetNodeAttribute, RawSetNodeAttribute,
RawSetCssDataURLBased, RawSetCssDataURLBased,
RawSetCssData, RawSetCssData,
RawCssInsertRuleURLBased,
RawCssInsertRule,
RawAdoptedSsInsertRuleURLBased, RawAdoptedSsInsertRuleURLBased,
RawAdoptedSsInsertRule, RawAdoptedSsInsertRule,
RawAdoptedSsReplaceURLBased, RawAdoptedSsReplaceURLBased,
@ -57,12 +55,6 @@ const REWRITERS = {
data: rewriteCSS(msg.baseURL, msg.data), data: rewriteCSS(msg.baseURL, msg.data),
tp: MType.SetCssData, tp: MType.SetCssData,
}), }),
[MType.CssInsertRuleURLBased]: (msg: RawCssInsertRuleURLBased): RawCssInsertRule =>
({
...msg,
rule: rewriteCSS(msg.baseURL, msg.rule),
tp: MType.CssInsertRule,
}),
[MType.AdoptedSsInsertRuleURLBased]: (msg: RawAdoptedSsInsertRuleURLBased): RawAdoptedSsInsertRule => [MType.AdoptedSsInsertRuleURLBased]: (msg: RawAdoptedSsInsertRuleURLBased): RawAdoptedSsInsertRule =>
({ ({
...msg, ...msg,