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

Setting location for a frame will now set loading=true #5502

Closed
wants to merge 1 commit into from

Conversation

bsclifton
Copy link
Member

@bsclifton bsclifton commented Nov 9, 2016

Follow up for #5498

Problem

Being on a new tab and then loading a URL would return loading: false, even after the location is updated.

Resolution

setting location for a frame will now set loading=true

Is this OK? Usually, it gets set to true in WindowStore:: WINDOW_WEBVIEW_LOAD_START
The only places I see this used are:

  • navigationBar (which binds to urlBar, which then binds to urlBarIcon (where the problem is))
  • tabs (used to show the loading spinner)

Auditors: @diracdeltas, @bridiver

Is this OK? Usually, it gets set to true in WindowStore:: WINDOW_WEBVIEW_LOAD_START
The only places I see this used are:
- navigationBar (which binds to urlBar, which then binds to urlBarIcon (where the problem is))
- tabs (used to show the loading spinner)

Auditors: @diracdeltas, @bridiver
@bridiver
Copy link
Collaborator

bridiver commented Nov 9, 2016

this seems like it would potentially trigger the loading indication when a load hasn't really started. I think the loading state should only be triggered by the loading events or we will end up with odd behavior and load indicators that never stop

@bsclifton
Copy link
Member Author

@diracdeltas I'm going to go ahead and close this, per @bridiver's comment. I'm definitely scared of a regression and am not in a hurry to fix this. I'll keep an eye out for your electron change 😄

@bsclifton bsclifton closed this Nov 9, 2016
@bsclifton
Copy link
Member Author

bsclifton commented Nov 9, 2016

and here it is: 😄 (sorry, I totally missed both the electron change and the WIP PR)
brave/muon@ca0aefe

@bsclifton bsclifton deleted the fix-insecure-icon branch November 9, 2016 02:42
@diracdeltas
Copy link
Member

sgtm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants