зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1691934 - [devtools] Remove clearLogpointMessages and associated code. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D104679
This commit is contained in:
Родитель
d5b753448d
Коммит
160c9264b0
|
@ -20,7 +20,6 @@ const {
|
|||
NETWORK_MESSAGES_UPDATE,
|
||||
NETWORK_UPDATES_REQUEST,
|
||||
MESSAGES_CLEAR,
|
||||
MESSAGES_CLEAR_LOGPOINT,
|
||||
MESSAGE_OPEN,
|
||||
MESSAGE_CLOSE,
|
||||
MESSAGE_TYPE,
|
||||
|
@ -64,13 +63,6 @@ function messagesClear() {
|
|||
};
|
||||
}
|
||||
|
||||
function messagesClearLogpoint(logpointId) {
|
||||
return {
|
||||
type: MESSAGES_CLEAR_LOGPOINT,
|
||||
logpointId,
|
||||
};
|
||||
}
|
||||
|
||||
function privateMessagesClear() {
|
||||
return {
|
||||
type: PRIVATE_MESSAGES_CLEAR,
|
||||
|
@ -169,7 +161,6 @@ function networkUpdateRequests(updates) {
|
|||
module.exports = {
|
||||
messagesAdd,
|
||||
messagesClear,
|
||||
messagesClearLogpoint,
|
||||
messageOpen,
|
||||
messageClose,
|
||||
messageRemove,
|
||||
|
|
|
@ -31,7 +31,6 @@ const actionTypes = {
|
|||
MESSAGE_REMOVE: "MESSAGE_REMOVE",
|
||||
MESSAGES_ADD: "MESSAGES_ADD",
|
||||
MESSAGES_CLEAR: "MESSAGES_CLEAR",
|
||||
MESSAGES_CLEAR_LOGPOINT: "MESSAGES_CLEAR_LOGPOINT",
|
||||
NETWORK_MESSAGES_UPDATE: "NETWORK_MESSAGES_UPDATE",
|
||||
NETWORK_UPDATES_REQUEST: "NETWORK_UPDATES_REQUEST",
|
||||
PERSIST_TOGGLE: "PERSIST_TOGGLE",
|
||||
|
|
|
@ -8,7 +8,6 @@ const {
|
|||
MESSAGES_ADD,
|
||||
MESSAGES_CLEAR,
|
||||
PRIVATE_MESSAGES_CLEAR,
|
||||
MESSAGES_CLEAR_LOGPOINT,
|
||||
FRONTS_TO_RELEASE_CLEAR,
|
||||
} = require("devtools/client/webconsole/constants");
|
||||
|
||||
|
@ -25,12 +24,7 @@ function enableActorReleaser(webConsoleUI) {
|
|||
const { type } = action;
|
||||
if (
|
||||
webConsoleUI &&
|
||||
[
|
||||
MESSAGES_ADD,
|
||||
MESSAGES_CLEAR,
|
||||
PRIVATE_MESSAGES_CLEAR,
|
||||
MESSAGES_CLEAR_LOGPOINT,
|
||||
].includes(type)
|
||||
[MESSAGES_ADD, MESSAGES_CLEAR, PRIVATE_MESSAGES_CLEAR].includes(type)
|
||||
) {
|
||||
const promises = [];
|
||||
state.messages.frontsToRelease.forEach(front => {
|
||||
|
|
|
@ -54,7 +54,6 @@ exports.ConsoleMessage = function(props) {
|
|||
indent: 0,
|
||||
prefix: "",
|
||||
private: false,
|
||||
logpointId: undefined,
|
||||
chromeContext: false,
|
||||
hasException: false,
|
||||
isPromiseRejection: false,
|
||||
|
|
|
@ -274,7 +274,6 @@ function transformConsoleAPICallResource(consoleMessageResource) {
|
|||
userProvidedStyles: message.styles,
|
||||
prefix: message.prefix,
|
||||
private: message.private,
|
||||
logpointId: message.logpointId,
|
||||
chromeContext: message.chromeContext,
|
||||
});
|
||||
}
|
||||
|
|
|
@ -41,7 +41,6 @@ class WebConsoleConnectionProxy {
|
|||
this._onLastPrivateContextExited = this._onLastPrivateContextExited.bind(
|
||||
this
|
||||
);
|
||||
this._clearLogpointMessages = this._clearLogpointMessages.bind(this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -141,10 +140,6 @@ class WebConsoleConnectionProxy {
|
|||
"lastPrivateContextExited",
|
||||
this._onLastPrivateContextExited
|
||||
);
|
||||
this.webConsoleFront.on(
|
||||
"clearLogpointMessages",
|
||||
this._clearLogpointMessages
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -157,17 +152,6 @@ class WebConsoleConnectionProxy {
|
|||
"lastPrivateContextExited",
|
||||
this._onLastPrivateContextExited
|
||||
);
|
||||
this.webConsoleFront.off(
|
||||
"clearLogpointMessages",
|
||||
this._clearLogpointMessages
|
||||
);
|
||||
}
|
||||
|
||||
_clearLogpointMessages(logpointId) {
|
||||
// Some message might try to update while we are closing the toolbox.
|
||||
if (this.webConsoleUI?.wrapper) {
|
||||
this.webConsoleUI.wrapper.dispatchClearLogpointMessages(logpointId);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -270,10 +270,6 @@ class WebConsoleWrapper {
|
|||
this.networkDataProvider.requestData(id, type);
|
||||
}
|
||||
|
||||
dispatchClearLogpointMessages(logpointId) {
|
||||
store.dispatch(actions.messagesClearLogpoint(logpointId));
|
||||
}
|
||||
|
||||
dispatchClearHistory() {
|
||||
store.dispatch(actions.clearHistory());
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче