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 #10161 from bsclifton/fix-safebrowsing-url
Browse files Browse the repository at this point in the history
Don't use the previous URL if current virtual URL is safebrowsing
  • Loading branch information
bsclifton authored Jul 26, 2017
2 parents 1eefa1a + 450cc5c commit b91fe38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/browser/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ const fixDisplayURL = (navigationEntry, controller) => {
navigationEntry.virtualURL = getSourceAboutUrl(navigationEntry.virtualURL)
}

if (isIntermediateAboutPage(navigationEntry.virtualURL)) {
if (isIntermediateAboutPage(navigationEntry.virtualURL) &&
!navigationEntry.virtualURL.startsWith('about:safebrowsing#')) {
const previousEntry = controller.getEntryAtOffset(-1)
if (!controller.canGoForward() && previousEntry) {
navigationEntry.virtualURL = previousEntry.virtualURL
Expand Down

0 comments on commit b91fe38

Please sign in to comment.