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

Pressing Enter doesn't load the typed in URL or search term #8741

Closed
srirambv opened this issue May 6, 2017 · 20 comments
Closed

Pressing Enter doesn't load the typed in URL or search term #8741

srirambv opened this issue May 6, 2017 · 20 comments

Comments

@srirambv
Copy link
Collaborator

srirambv commented May 6, 2017

Test plan

  1. Open a new tab and type in a search item or url and press enter
  2. Page should be loaded
  3. Open a second tab and type in URL/Search term and press enter
  4. Page should be loaded

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

  • Describe the issue you encountered:
    Pressing Enter doesn't load the typed in URL or search term

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

  • Brave Version (revision SHA):
    Brave 0.15.3
    rev 1c04c53

  • Steps to reproduce:

    1. Upgrade to 0.15.3 from 0.15.2
    2. Open a new tab and type in a search item or url and press enter, doesn't load
    3. Open a second tab and type in URL/Search term and press enter, doesnt load
    4. Close and reopen browser, hover over the tabs from step 2 & 3, page loads
  • Actual result:
    Page doesn't load when typed in URL and pressing enter

  • Expected result:
    Should load the site

  • Will the steps above reproduce in a fresh profile? If not what other info can be added?
    No was able to repro on Upgrade from 0.15.2

  • Is this an issue in the currently released version?
    N/A

  • Can this issue be consistently reproduced?
    Not all the time but I did find this issue on several instance

  • Extra QA steps:
    1.
    2.
    3.

  • Screenshot if needed:

  • Any related issues:
    cc: @luixxiul @alexwykoff can you try on Debian and macOS and confirm if it happens on upgarde

@srirambv srirambv added bug needs-investigation A bug not 100% confirmed/fixed that needs QA to better audit. labels May 6, 2017
@NejcZdovc
Copy link
Contributor

I just tried it on macOS and it's working for me

@srirambv
Copy link
Collaborator Author

srirambv commented May 6, 2017

I think its an issue after preference change restart. I can replicate the issue on a new profile as well

@Jacalz
Copy link
Contributor

Jacalz commented May 6, 2017

I had the same issue on Mac yesterday on the master branch 😅

@NejcZdovc
Copy link
Contributor

@srirambv do you have more specific STR (which preference)? One described above doesn't work for me.

@luixxiul
Copy link
Contributor

luixxiul commented May 7, 2017

I'm not sure STR but for me it is experienced on 0.15.3 on Debian.

@NejcZdovc
Copy link
Contributor

I notice this bug when I was working on navigator, but I thought that it was my code, that was problematic. After some changes it was working correctly for me. I will try it now on Windows VM.

@srirambv
Copy link
Collaborator Author

srirambv commented May 7, 2017

do you have more specific STR (which preference)? One described above doesn't work for me.

Any preference change which requires restart. I also have this issue when I open a private tab and then any subsequent normal tabs doesn't register the Enter. This I think is a blocker for 0.15.3 as the browser becomes unuseable. I had to set homepage for each tab and use it. Will try to get exact STR in the mean time.

@bsclifton
Copy link
Member

I can repro fairly easily. I agree about it being a blocker. It seems to happen on any site which has not been visited before

STR:

  1. Open a new tab
  2. Type URL of a site that you have never been to before into the URL bar
  3. Hit enter
  4. Observe nothing happens

@bsclifton bsclifton added this to the 0.15.3 milestone May 8, 2017
@NejcZdovc
Copy link
Contributor

@bsclifton can you take this one, I still can't reproduce it on mac.

@bsclifton bsclifton self-assigned this May 8, 2017
@NejcZdovc
Copy link
Contributor

NejcZdovc commented May 8, 2017

Ok I manage to reproduce it (only with luck). Problem is that tab is undefined in this line https://github.com/brave/browser-laptop/blob/master/app/browser/tabs.js#L419. All data is send into this function correctly.

@NejcZdovc
Copy link
Contributor

NejcZdovc commented May 8, 2017

It's strange, because tabId is in the state

image

image

We send in 61, but function getWebContents will return undefined

@NejcZdovc
Copy link
Contributor

NejcZdovc commented May 8, 2017

ok maybe I found where the problem is

image

as you can see we have 3 items in tabs object in app state (I only have two tabs opened). Also we have two active tabs. When we press enter we get active tab and in this case we would get 29, even though this tab is not opened anymore

image

This is what we have in webContents, as you can see we are requesting 29 from webContents even though that we should be requesting 69

image

@NejcZdovc
Copy link
Contributor

NejcZdovc commented May 8, 2017

note I have preview tab option turned OFF

@srirambv
Copy link
Collaborator Author

srirambv commented May 8, 2017

@NejcZdovc Do you also see a new tab with back button enabled? I see this on each new tab after disabling tab preview

@NejcZdovc
Copy link
Contributor

NejcZdovc commented May 8, 2017

Yeah back button is here, because browser thinks that 29 is active which had history. 69 which is actually active is completely new tab without history. This back button shouldn't be here.

@NejcZdovc
Copy link
Contributor

NejcZdovc commented May 8, 2017

I think that when we fix this app state problem we will fix this one, #8640 and #8741.

@bsclifton
Copy link
Member

I don't know what caused the problem, but this was fixed with 0da7b64. If you check out the commit prior (5fc6dff), it doesn't work.

The important steps to reproduce:

  1. Open new tab (important- existing tabs on launch seem to work)
  2. Type the term or URL
  3. Hit enter

@bsclifton bsclifton added release-notes/exclude and removed needs-investigation A bug not 100% confirmed/fixed that needs QA to better audit. labels May 8, 2017
@bsclifton
Copy link
Member

reopening because 0.15.3 preview 3 came AFTER this and has the issue

@bsclifton bsclifton reopened this May 8, 2017
@bsclifton
Copy link
Member

bsclifton commented May 8, 2017

OK issue has been discovered. I'd like to capture it with a scenario I did

  1. I launch Brave; I have 3 pinned tabs and 1 about:newtab. Each tab has a tabId set (9, 12, 15, 5)
  2. I manually create a newtab by clicking the + in the tab row; this gets tabId 21. Searching in it (via the URL bar) works.
  3. I close this tab.
  4. I click new tab button, get another tab. This ALSO gets tabId 21!!! This one is broken. Calls to get the web contents return undefined

@bsclifton
Copy link
Member

Fixed with #8782

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.