webcompat / web-bugs

A place to report bugs on websites.
https://webcompat.com
Mozilla Public License 2.0
742 stars 65 forks source link

nrscaptions.nrscall.gov.au - see bug description #72157

Closed webcompat-bot closed 3 years ago

webcompat-bot commented 3 years ago

URL: https://nrscaptions.nrscall.gov.au/nrs/IRCL

Browser / Version: Firefox 88.0 Operating System: Windows 10 Tested Another Browser: Yes Chrome

Problem type: Something else Description: Doesn't load and comes up with pop up " Agent is offline" Steps to Reproduce: Tried to make a call and ends up with popup twice saying "Agent is offline" but it works in Chrome

View the screenshot Screenshot
Browser Configuration
  • None

From webcompat.com with ❤️

softvision-raul-bucata commented 3 years ago

@softvision-oana-arbuzov Could you take a look at this please? Looks like a VPN is needed.

softvision-oana-arbuzov commented 3 years ago

Unfortunately even with VPN pointing to Australia I'm not able to access the page. image

Tested with: Browser / Version: Firefox Nightly 90.0a1 (2021-04-27), Chrome 90.0.4430.85 Operating System: Windows 10 Pro

@karlcow is there anything we can do here?

karlcow commented 3 years ago

Maybe @KathyReid can help us. She is based in Australia.

KathyReid commented 3 years ago

G'day everyone, I'm physically in Canberra, Australia. Happy to help in any way I can.

I don't know much about caption calls, but my intended test sequence is:

^^ Does this sound like a sensible test plan?

Best, K.

karlcow commented 3 years ago

Hi Kathy, Thanks for helping. so yes trying to access this page, so we can reproduce the message of "Agent is offline" https://nrscaptions.nrscall.gov.au/nrs/IRCL

Then "save page as" Choose "Web Page, Complete" then zip it. The html file + the folder. And you could send it to me on Mozilla Slack :) Then I will be able to make a diagnosis on what is happening. I suspect user agent sniffing.

Thanks a lot. Super appreciated.

karlcow commented 3 years ago

With Kathy's test and webpage code ❤️ , I can dig a bit further.

There are a couple of instances of the modal

Capture d’écran 2021-04-29 à 14 22 40

alert

The code is quote obfuscated.

but the code mostly look like this for each of them.

    var iF = _i('app-irc-loggedin-new-win', lF, uF, {
    }, {
    }, [
    ]),
    oF = function () {
      function n(n, l, e, t) {
        var u,
        i;
        this.router = n,
        this.route = l,
        this.chatData = e,
        this._authservice = t,
        this.txtOPNumber1 = this.chatData.data_opNumber,
        this.ipAddress1 = this.chatData.ipAddress1,
        u = document.getElementById('txtOPNumber').value,
        i = document.getElementById('txtState').value,
        console.log(i + 'this selected state sending to omni'),
        '' !== u && ('112' == u || '911' == u || '000' == u ? setTimeout(function () {
          document.getElementById('txtIPAddress'),
          MyG2C.API.setData([{
            id: 'txtOPNumber',
            value: document.getElementById('txtOPNumber').value
          },
          {
            id: 'txtIPAddress',
            value: document.getElementById('txtIPAddress').value
          },
          {
            id: 'txtCampaignName',
            value: 'P_NRS_Emergency_InternetRelay_Chat'
          }
          ]),
          0 == MyG2C.API.chatAsk('Emergency internet relay chat') && alert('Agent is offline')
        }, 5000) : setTimeout(function () {
          document.getElementById('txtIPAddress'),
          MyG2C.API.setData([{
            id: 'txtOPNumber',
            value: document.getElementById('txtOPNumber').value
          },
          {
          },
          {
            id: 'txtCampaignName',
            value: 'P_NRS_Internet_MakeACall_Chat'
          },
          {
            id: 'txtIPAddress',
            value: document.getElementById('txtIPAddress').value
          },
          {
            id: 'txtState',
            value: i
          }
          ]),
          0 == MyG2C.API.chatAsk('You are using NRS Chat') && alert('Agent is offline')
        }, 5000))
      }
      return n.prototype.ngOnInit = function () {
      },
      n
    }(),

There is also quite a bit of user agent sniffing here and there.

Things like

        this.approveform.value.deviceData = this.authservice.getdevicedata(),

means that they indeed have things dependent on the user agent name more than feature detection.

Also Kathy received the message The "longpress" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.

which is in

      l.prototype.supports = function (n) {
        return !(!Bc.hasOwnProperty(n.toLowerCase()) && !this.isCustomEvent(n) || !window.Hammer && !this.loader && (this.console.warn('The "' + n + '" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'), 1))
      },

The service is provided by https://www.communications.gov.au/what-we-do/phone/services-people-disability/accesshub/national-relay-service

They can be contacted on helpdesk@relayservice.com.au

I wonder if @colugo could help us find the right person inside the Australian Government taking of this site. As it is quite hard for us outside of Australia to test different scenario why this is not working in Firefox.

Or maybe it was a temporary issue for the user that would be good to know.

DrCMD1 commented 3 years ago

This issue seems to be fixed shortly after the user (aka me lol) reported this issue approx 1-2 hours later. It was their back-end of NRS and wasn't Firefox that was at fault so you admins can close this bug report asap.