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

New tabs say "about:blank" until loaded (window.opener issue in renderer) #6495

Closed
bsclifton opened this issue Jan 1, 2017 · 12 comments
Closed

Comments

@bsclifton
Copy link
Member

bsclifton commented Jan 1, 2017

Did you search for similar issues before submitting this one?
Yes

Describe the issue you encountered:
Opening anything in a new tab (middle click on links, etc) shows "about:blank" for about two seconds until the page loads and then finally updates to what it should be.

Expected behavior:
The tab should set the title to the URL being opened (until the title is loaded). This would be consistent with other browsers.

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    macOS

  • Brave Version (revision SHA):
    0.13.0 preview 7

  • Steps to reproduce:

    1. Go to Brave.com
    2. Middle click or cmd+click on "faster" at the top
    3. Notice that it says "about:blank" until loaded in the new tab
    4. Close new tab go back to Brave.com
    5. Right click "faster" and pick "Open in new tab"
    6. Notice it works as expected; defaults to title as URL, then loads title when page loaded
  • Screenshot if needed:

  • Any related issues:

@bsclifton bsclifton added this to the 0.13.0 milestone Jan 1, 2017
@bsclifton
Copy link
Member Author

bsclifton commented Jan 1, 2017

Added to 0.13.0 after dogfooding this for a while and having it be bad enough ☹️ If not critical, we can move back of course

@bridiver is this one you can check out? I know these codepaths were all ones that were recently updated

@bbondy
Copy link
Member

bbondy commented Jan 1, 2017

@bsclifton is this present in 0.12.15 as well?

@bsclifton
Copy link
Member Author

bsclifton commented Jan 1, 2017

@bbondy no, it's not; this is new behavior (just confirmed right now, to make 100% sure)

@luixxiul
Copy link
Contributor

luixxiul commented Jan 2, 2017

@bsclifton do you think this is related or similar in some way with #6453?

@bbondy
Copy link
Member

bbondy commented Jan 3, 2017

@bsclifton could you confirm what I see?

  • In both .12.15 and .13 they load in the same amount of time
  • In .12.15 it used to show the url of the page first
  • In .13 it shows about:blank instead of the URL of the page first.

@diracdeltas
Copy link
Member

On OS X 0.13, I only see this bug if I cmd-click to open in a new tab. If I right click to open in a new tab from the context menu, it doesn't seem to happen

@bsclifton
Copy link
Member Author

bsclifton commented Jan 3, 2017

@bbondy that is 100% correct on all 3 points; I tested again right now to verify behavior.

The 0.13 build can "feel" longer (because no url or title shows up), but it's roughly the same. Like @diracdeltas mentions, it only happens with cmd+click (or in my case, middle click)

@bsclifton
Copy link
Member Author

bsclifton commented Jan 3, 2017

@luixxiul yes- I think that #6453 may be the same issue. Do you actually see a time difference in page load from 0.12.15? or does it just appear to be laggy (because you don't see any result until page is loaded)? If it just seems longer, I'd close that in favor of this issue

@bbondy
Copy link
Member

bbondy commented Jan 3, 2017

this seems to be the same as what Chrome does but in the new tab Chrome displays untitled instead of about:blank, how does that sound as a fix here?

@diracdeltas
Copy link
Member

+1 for 'untitled' as the provisional title.

@bsclifton
Copy link
Member Author

also +1 for untitled 😄

@bridiver
Copy link
Collaborator

bridiver commented Jan 4, 2017

this will happen for all renderer initiated navigations and that includes cmd-click. It happens because the renderer controls the actual navigation to the url and that doesn't happen until the webview is attached and we allow the webcontents to resume loading. In the past we displayed the delayedLoadUrl, but I believe @diracdeltas removed that because of a spoofing vulnerability

@bbondy bbondy closed this as completed in cfa8388 Jan 6, 2017
bkilrain pushed a commit to bkilrain/browser-laptop that referenced this issue Jan 13, 2017
Fix brave#6495

Auditors: @bsclifton

This feels a lot better especially with the loading icon being used now
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants