Skip to content

Commit

Permalink
Fix of the bug 68.13.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedor committed Nov 17, 2023
1 parent 69b7520 commit 324ef6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions toolkit/components/extensions/WebExtensionPolicy.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ class WebExtensionPolicy final : public nsISupports,

void InjectContentScripts(ErrorResult& aRv);

bool CanAccessURI(const URLInfo& aURI, bool aExplicit = false,
bool aCheckRestricted = true) const {
return !aCheckRestricted && mHostPermissions &&
mHostPermissions->Matches(aURI, aExplicit);
bool CanAccessURI(const URLInfo& aURI, bool aExplicit = false) const {
return mHostPermissions && mHostPermissions->Matches(aURI, aExplicit);
}

bool IsPathWebAccessible(const nsAString& aPath) const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ bool ChannelWrapper::Matches(
bool isProxy =
aOptions.mIsProxy && aExtension->HasPermission(nsGkAtoms::proxy);
// Proxies are allowed access to all urls, including restricted urls.
if (!aExtension->CanAccessURI(urlInfo, false, !isProxy)) {
if (!aExtension->CanAccessURI(urlInfo, false)) {
return false;
}

Expand Down

0 comments on commit 324ef6e

Please sign in to comment.