mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
Bug 1350229 - Removing Preview side panel. r=rickychien
MozReview-Commit-ID: aDksj7VKAp --HG-- extra : rebase_source : b0c19cc8fc7b41fed7909f3a1ee56a16ee0f4468
This commit is contained in:
parent
9d4cc67f87
commit
29b6845e6b
@ -457,10 +457,6 @@ netmonitor.tab.timings=Timings
|
||||
# in the network details pane identifying the stack-trace tab.
|
||||
netmonitor.tab.stackTrace=Stack Trace
|
||||
|
||||
# LOCALIZATION NOTE (netmonitor.tab.preview): This is the label displayed
|
||||
# in the network details pane identifying the preview tab.
|
||||
netmonitor.tab.preview=Preview
|
||||
|
||||
# LOCALIZATION NOTE (netmonitor.tab.security): This is the label displayed
|
||||
# in the network details pane identifying the security tab.
|
||||
netmonitor.tab.security=Security
|
||||
|
@ -12,7 +12,6 @@ DevToolsModules(
|
||||
'monitor-panel.js',
|
||||
'network-details-panel.js',
|
||||
'params-panel.js',
|
||||
'preview-panel.js',
|
||||
'properties-view.js',
|
||||
'request-list-content.js',
|
||||
'request-list-empty-notice.js',
|
||||
|
@ -1,35 +0,0 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
"use strict";
|
||||
|
||||
const { DOM, PropTypes } = require("devtools/client/shared/vendor/react");
|
||||
|
||||
const { div, iframe } = DOM;
|
||||
|
||||
/*
|
||||
* Preview panel component
|
||||
* Display HTML content within a sandbox enabled iframe
|
||||
*/
|
||||
function PreviewPanel({ request }) {
|
||||
const htmlBody = request.responseContent ?
|
||||
request.responseContent.content.text : "";
|
||||
|
||||
return (
|
||||
div({ className: "panel-container" },
|
||||
iframe({
|
||||
sandbox: "",
|
||||
srcDoc: typeof htmlBody === "string" ? htmlBody : "",
|
||||
})
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
PreviewPanel.displayName = "PreviewPanel";
|
||||
|
||||
PreviewPanel.propTypes = {
|
||||
request: PropTypes.object.isRequired,
|
||||
};
|
||||
|
||||
module.exports = PreviewPanel;
|
@ -10,7 +10,6 @@ const {
|
||||
} = require("devtools/client/shared/vendor/react");
|
||||
const { connect } = require("devtools/client/shared/vendor/react-redux");
|
||||
const Actions = require("../actions/index");
|
||||
const { Filters } = require("../utils/filter-predicates");
|
||||
const { L10N } = require("../utils/l10n");
|
||||
const { getSelectedRequest } = require("../selectors/index");
|
||||
|
||||
@ -20,7 +19,6 @@ const TabPanel = createFactory(require("devtools/client/shared/components/tabs/t
|
||||
const CookiesPanel = createFactory(require("./cookies-panel"));
|
||||
const HeadersPanel = createFactory(require("./headers-panel"));
|
||||
const ParamsPanel = createFactory(require("./params-panel"));
|
||||
const PreviewPanel = createFactory(require("./preview-panel"));
|
||||
const ResponsePanel = createFactory(require("./response-panel"));
|
||||
const SecurityPanel = createFactory(require("./security-panel"));
|
||||
const StackTracePanel = createFactory(require("./stack-trace-panel"));
|
||||
@ -29,7 +27,6 @@ const TimingsPanel = createFactory(require("./timings-panel"));
|
||||
const COOKIES_TITLE = L10N.getStr("netmonitor.tab.cookies");
|
||||
const HEADERS_TITLE = L10N.getStr("netmonitor.tab.headers");
|
||||
const PARAMS_TITLE = L10N.getStr("netmonitor.tab.params");
|
||||
const PREVIEW_TITLE = L10N.getStr("netmonitor.tab.preview");
|
||||
const RESPONSE_TITLE = L10N.getStr("netmonitor.tab.response");
|
||||
const SECURITY_TITLE = L10N.getStr("netmonitor.tab.security");
|
||||
const STACK_TRACE_TITLE = L10N.getStr("netmonitor.tab.stackTrace");
|
||||
@ -100,13 +97,6 @@ function TabboxPanel({
|
||||
},
|
||||
SecurityPanel({ request }),
|
||||
),
|
||||
Filters.html(request) &&
|
||||
TabPanel({
|
||||
id: "preview",
|
||||
title: PREVIEW_TITLE,
|
||||
},
|
||||
PreviewPanel({ request }),
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -18,7 +18,6 @@ netmonitor.properties:netmonitor.tab.cookies = netmonitor.dtd:netmonitorUI.tab.c
|
||||
netmonitor.properties:netmonitor.tab.params = netmonitor.dtd:netmonitorUI.tab.params
|
||||
netmonitor.properties:netmonitor.tab.response = netmonitor.dtd:netmonitorUI.tab.response
|
||||
netmonitor.properties:netmonitor.tab.timings = netmonitor.dtd:netmonitorUI.tab.timings
|
||||
netmonitor.properties:netmonitor.tab.preview = netmonitor.dtd:netmonitorUI.tab.preview
|
||||
netmonitor.properties:netmonitor.tab.security = netmonitor.dtd:netmonitorUI.tab.security
|
||||
netmonitor.properties:netmonitor.toolbar.filter.all = netmonitor.dtd:netmonitorUI.footer.filterAll
|
||||
netmonitor.properties:netmonitor.toolbar.filter.html = netmonitor.dtd:netmonitorUI.footer.filterHTML
|
||||
|
Loading…
x
Reference in New Issue
Block a user