Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #14232 from brave/fix/14231
Browse files Browse the repository at this point in the history
set reloadMatchingUrl to true for URLs ending in a hash
  • Loading branch information
bsclifton committed May 24, 2018
1 parent a6ed75b commit bdb978a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/browser/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,14 @@ const api = {
return
}

const reloadMatchingUrl = action.get('reloadMatchingUrl') || false
const parsed = muon.url.parse(url)
// Set reloadMatchingUrl to true for hash URLs as workaround for
// https://github.com/brave/browser-laptop/issues/14231. (muon emits
// security-style-changed to insecure when a hash URL is loaded using
// tab.loadURL in a tab with the same URL)
const reloadMatchingUrl = action.get('reloadMatchingUrl') ||
(parsed && parsed.hash) ||
false
if (reloadMatchingUrl && currentUrl === url) {
tab.reload(true)
} else {
Expand Down

0 comments on commit bdb978a

Please sign in to comment.