OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • New traffic widget broken in Firefox
« previous next »
  • Print
Pages: [1] 2

Author Topic: New traffic widget broken in Firefox  (Read 5558 times)

FullyBorked

  • Sr. Member
  • ****
  • Posts: 353
  • Karma: 24
    • View Profile
New traffic widget broken in Firefox
« 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?
Logged

sandrzej

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: New traffic widget broken in Firefox
« Reply #1 on: February 24, 2021, 06:12:25 pm »
Broken in Chrome. Works in Edge .
Logged

FullyBorked

  • Sr. Member
  • ****
  • Posts: 353
  • Karma: 24
    • View Profile
Re: New traffic widget broken in Firefox
« Reply #2 on: February 24, 2021, 06:14:19 pm »
Quote from: sandrzej on February 24, 2021, 06:12:25 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

Logged

priller

  • Newbie
  • *
  • Posts: 19
  • Karma: 3
    • View Profile
Re: New traffic widget broken in Firefox
« Reply #3 on: February 24, 2021, 06:37:36 pm »
Quote from: sandrzej on February 24, 2021, 06:12:25 pm
Broken in Chrome. Works in Edge .

I get the same on Chrome (Mac).  It also "flutters" insanely until the initial timeline run completes.
Logged

cguilford

  • Full Member
  • ***
  • Posts: 130
  • Karma: 15
    • View Profile
Re: New traffic widget broken in Firefox
« Reply #4 on: February 24, 2021, 06:55:07 pm »
Mine are blank in Ffox as well.
Logged

atom

  • Full Member
  • ***
  • Posts: 207
  • Karma: 4
    • View Profile
Re: New traffic widget broken in Firefox
« Reply #5 on: February 24, 2021, 06:56:49 pm »
For me, it looks fine under both Edge and Firefox.
Logged

IsaacFL

  • Full Member
  • ***
  • Posts: 217
  • Karma: 8
    • View Profile
Re: New traffic widget broken in Firefox
« Reply #6 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.
Logged

sandrzej

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: New traffic widget broken in Firefox
« Reply #7 on: February 24, 2021, 07:32:44 pm »
Update:  in firefox Windows 10 traffic widget blank
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17751
  • Karma: 1620
    • View Profile
Re: New traffic widget broken in Firefox
« Reply #8 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
Logged

FullyBorked

  • Sr. Member
  • ****
  • Posts: 353
  • Karma: 24
    • View Profile
Re: New traffic widget broken in Firefox
« Reply #9 on: February 24, 2021, 08:32:11 pm »
Quote from: 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

I don't have a github account but I guess I can  create one to report a bug, if that's helpful :).
« Last Edit: February 24, 2021, 09:19:16 pm by FullyBorked »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17751
  • Karma: 1620
    • View Profile
Re: New traffic widget broken in Firefox
« Reply #10 on: February 24, 2021, 09:12:35 pm »
That's always appreciated, thanks in advance! :)
Logged

FullyBorked

  • Sr. Member
  • ****
  • Posts: 353
  • Karma: 24
    • View Profile
Re: New traffic widget broken in Firefox
« Reply #11 on: February 24, 2021, 09:39:11 pm »
Quote from: franco on February 24, 2021, 09:12:35 pm
That's always appreciated, thanks in advance! :)

Done. https://github.com/opnsense/core/issues/4750
Logged

Fright

  • Hero Member
  • *****
  • Posts: 1777
  • Karma: 164
    • View Profile
Re: New traffic widget broken in Firefox
« Reply #12 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
« Last Edit: February 25, 2021, 07:11:33 am by Fright »
Logged

Fright

  • Hero Member
  • *****
  • Posts: 1777
  • Karma: 164
    • View Profile
Re: New traffic widget broken in Firefox
« Reply #13 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
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17751
  • Karma: 1620
    • View Profile
Re: New traffic widget broken in Firefox
« Reply #14 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
Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • New traffic widget broken in Firefox
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2