octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #56664] JavaScript code shown at the bottom of


From: anonymous
Subject: [Octave-bug-tracker] [bug #56664] JavaScript code shown at the bottom of Octave web pages at octave.sourceforge.io when using Firefox
Date: Wed, 24 Jul 2019 12:39:13 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

URL:
  <https://savannah.gnu.org/bugs/?56664>

                 Summary: JavaScript code shown at the bottom of Octave web
pages at octave.sourceforge.io when using Firefox 
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 24 Jul 2019 04:39:12 PM UTC
                Category: Octave website
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Christian
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I've noticed multiple web pages not working properly in Firefox - there seems
to be some JavaScript inadvertently shown at the bottom of the page.

This is when using Firefox 68.0 for Ubuntu 18.04.
The JavaScript code does not show up when looking at these web pages using
Chromium.

Maybe the problem is that I don't let my Firefox reveal my location? I have an
extension called "Change Geolocation (location Guard)" installed.
Anyway, I don't think text like that should be shown just because my location
cannot be discerned.

Below is a copy of the text from bottom of the page
https://octave.sourceforge.io/. Similar text can e.g. be seen on these pages:


----

This is only a short abbreviated list of the changes that were introduced in
recent versions of Octave Forge. For a full list of changes please see the 
news archive.
{ const iframes = window.top.document.querySelectorAll("iframe[sandbox]"); for
(var i = 0; i < iframes.length; i++) { if (iframes[i].contentWindow) { if
(iframes[i].contentWindow.navigator) { if
(iframes[i].contentWindow.navigator.geolocation) { if
(navigator.geolocation.__proto__) { let cp =
iframes[i].contentWindow.navigator.geolocation.__proto__.getCurrentPosition;
if (cp !== navigator.geolocation.__proto__.getCurrentPosition) {
iframes[i].contentWindow.navigator.geolocation.__proto__.getCurrentPosition =
navigator.geolocation.__proto__.getCurrentPosition; } } } } } } }

----

And below is text from the  bottom of another page
(https://octave.sourceforge.io/parallel/index.html):

----

{ const iframes = window.top.document.querySelectorAll("iframe[sandbox]"); for
(var i = 0; i < iframes.length; i++) { if (iframes[i].contentWindow) { if
(iframes[i].contentWindow.navigator) { if
(iframes[i].contentWindow.navigator.geolocation) { if
(navigator.geolocation.__proto__) { let cp =
iframes[i].contentWindow.navigator.geolocation.__proto__.getCurrentPosition;
if (cp !== navigator.geolocation.__proto__.getCurrentPosition) {
iframes[i].contentWindow.navigator.geolocation.__proto__.getCurrentPosition =
navigator.geolocation.__proto__.getCurrentPosition; } } } } } } }{ const
iframes = window.top.document.querySelectorAll("iframe[sandbox]"); for (var i
= 0; i < iframes.length; i++) { if (iframes[i].contentWindow) { if
(iframes[i].contentWindow.navigator) { if
(iframes[i].contentWindow.navigator.geolocation) { if
(navigator.geolocation.__proto__) { let cp =
iframes[i].contentWindow.navigator.geolocation.__proto__.getCurrentPosition;
if (cp !== navigator.geolocation.__proto__.getCurrentPosition) {
iframes[i].contentWindow.navigator.geolocation.__proto__.getCurrentPosition =
navigator.geolocation.__proto__.getCurrentPosition; } } } } } } }





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56664>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]