OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: FullyBorked on February 24, 2021, 05:09:43 pm

Title: New traffic widget broken in Firefox
Post by: FullyBorked on February 24, 2021, 05:09:43 pm
Looks like the new traffic widget in 21.1.2 look like it isn't working in Firefox for some reason.  Seems to work ok in other browsers, anyone else seeing this or is it just something in my specific Firefox?
Title: Re: New traffic widget broken in Firefox
Post by: sandrzej on February 24, 2021, 06:12:25 pm
Broken in Chrome. Works in Edge .
Title: Re: New traffic widget broken in Firefox
Post by: FullyBorked on February 24, 2021, 06:14:19 pm
Broken in Chrome. Works in Edge .
Wow that looks goofy.  Mine are just blank in firefox.  My Chrome doesn't look all janky like that.  Really strange.

Sent from my IN2025 using Tapatalk

Title: Re: New traffic widget broken in Firefox
Post by: priller on February 24, 2021, 06:37:36 pm
Broken in Chrome. Works in Edge .

I get the same on Chrome (Mac).  It also "flutters" insanely until the initial timeline run completes.
Title: Re: New traffic widget broken in Firefox
Post by: cguilford on February 24, 2021, 06:55:07 pm
Mine are blank in Ffox as well.
Title: Re: New traffic widget broken in Firefox
Post by: atom on February 24, 2021, 06:56:49 pm
For me, it looks fine under both Edge and Firefox.
Title: Re: New traffic widget broken in Firefox
Post by: IsaacFL on February 24, 2021, 06:59:19 pm
Same here (see attached), Firefox on Windows and Ubuntu does not show the graph. Just blank spot.

Windows - Edge Chrome works fine.  Windows old Edge looks like the Firefox. I don't have Google Chrome, so haven't tried it.

Someone said that Firefox on Mac is ok, though.
Title: Re: New traffic widget broken in Firefox
Post by: sandrzej on February 24, 2021, 07:32:44 pm
Update:  in firefox Windows 10 traffic widget blank
Title: Re: New traffic widget broken in Firefox
Post by: franco on February 24, 2021, 08:29:25 pm
https://github.com/opnsense/core/commit/8b9764fa86

# opnsense-patch 8b9764fa86

On a sadder note: no bugs related to this raised in the issue tracker so far...


Cheers,
Franco
Title: Re: New traffic widget broken in Firefox
Post by: FullyBorked on February 24, 2021, 08:32:11 pm
https://github.com/opnsense/core/commit/8b9764fa86

# opnsense-patch 8b9764fa86

On a sadder note: no bugs related to this raised in the issue tracker so far...


Cheers,
Franco

I don't have a github account but I guess I can  create one to report a bug, if that's helpful :).
Title: Re: New traffic widget broken in Firefox
Post by: franco on February 24, 2021, 09:12:35 pm
That's always appreciated, thanks in advance! :)
Title: Re: New traffic widget broken in Firefox
Post by: FullyBorked on February 24, 2021, 09:39:11 pm
That's always appreciated, thanks in advance! :)

Done. https://github.com/opnsense/core/issues/4750
Title: Re: New traffic widget broken in Firefox
Post by: Fright on February 24, 2021, 10:20:52 pm
@franco
Quote
https://github.com/opnsense/core/commit/8b9764fa86
it's weird. I thought its "$( document ).ready" issue. not 'load'

hm. sorry, is really can be called twice

when I made this PR (https://github.com/opnsense/core/pull/4552), I thought that it would be great to have a custom event and start fetching data after arranging the widgets
Title: Re: New traffic widget broken in Firefox
Post by: Fright on February 25, 2021, 08:45:27 am
for empty widget on Firefox: somehow canvas gets height: 0 on chart init if widget called on "load".
works good with $( document ).ready for me
Title: Re: New traffic widget broken in Firefox
Post by: franco on February 25, 2021, 08:52:37 am
The widgets have a lot of old JS code that should be reworked, but I think we will not open this can of worms until 21.7 is out due to other priorities. Another issue is that some widgets do not automatically reload and basically all of them do manual code for the same purposes duplicating code where it shouldn't be necessary.

As said I like your rewrite, but we should just write replacements instead of changing the code to something completely else in existing widgets.

I will talk to Ad about integrating your PR or at least do the review to see what will happen with it. :)


Cheers,
Franco
Title: Re: New traffic widget broken in Firefox
Post by: Fright on February 25, 2021, 09:04:14 am
Quote
we should just write replacements instead of changing the code to something completely else in existing widgets
I can try to do it right if you tell me what to do )
propose it like a new widget?
Quote
I will talk to Ad about integrating your PR or at least do the review to see what will happen with it
thanks!! :)