ui: drop old deprecated message types
This commit is contained in:
parent
4ebbfd3501
commit
a87f6c658c
3 changed files with 0 additions and 41 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue