Skip to content

Commit 6d50b91

Browse files
Chan Chak Shingzoracon
authored andcommitted
Fix first_party_host to use uri.hostname insteads (EFForg#18760)
1 parent f34ca5b commit 6d50b91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chromium/background-scripts/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ function onBeforeRequest(details) {
335335

336336
// Check if an user has disabled HTTPS Everywhere on this site. We should
337337
// ensure that all subresources are not run through HTTPS Everywhere as well.
338-
browserSession.putTab(details.tabId, 'first_party_host', uri.host, true);
338+
browserSession.putTab(details.tabId, 'first_party_host', uri.hostname, true);
339339
}
340340

341341
if (disabledList.has(browserSession.getTab(details.tabId, 'first_party_host', null)) ||

0 commit comments

Comments
 (0)