Skip to content
Snippets Groups Projects
Commit 3f596978 authored by cypherpunks1's avatar cypherpunks1 Committed by ma1
Browse files

fixup! Bug 41600: Add a tor circuit display panel.

Bug 40175: Support circuit display on about:reader
parent 255203a3
Branches
Tags
1 merge request!611Bug 40175: Use first-party isolation on reader view
......@@ -276,7 +276,18 @@ var gTorCircuitPanel = {
// will match up with the domain.
// In contrast, documentURI corresponds to the shown page. E.g. it could
// point to "about:certerror".
const scheme = browser.currentURI?.scheme;
let scheme = browser.currentURI?.scheme;
if (scheme === "about" && browser.currentURI?.filePath === "reader") {
const searchParams = new URLSearchParams(browser.currentURI.query);
if (searchParams.has("url")) {
try {
const uri = Services.io.newURI(searchParams.get("url"));
scheme = uri.scheme;
} catch (err) {
this._log.error(err);
}
}
}
if (
this._currentBrowserData &&
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment