bugGNU Octave - Bugs: bug #56664, [octave forge] JavaScript code...

 
 

bug #56664: [octave forge] JavaScript code shown at the bottom of Octave web pages at octave.sourceforge.io when using Firefox

Submitter:  None
Submitted:  Wed 24 Jul 2019 04:39:12 PM UTC
   
 
Category:  Octave Forge website Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Works For Me Assigned to:  None
Originator Name:  Christian Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 5.1.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 24 Jul 2019 06:44:58 PM UTC, comment #1: 

This works for me with Firefox 60.8.0esr.

Can you verify that it's the page footer that is dumping this text for you? Go to https://octave.sourceforge.io/footer.html, which is embedded at the bottom of every page on the Octave Forge site.

Please test with all add-ons disabled to see whether it is your local configuration interfering with the site.

Mike Miller <mtmiller>
Group Member
Wed 24 Jul 2019 04:39:12 PM UTC, original submission:  

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; } } } } } } }

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-09-23 mtmiller Open/ClosedOpen Closed
    2019-07-24 mtmiller StatusNone Works For Me
    2019-07-24 jwe CategoryOctave website Octave Forge website
        SummaryJavaScript code shown at the bottom of Octave web pages at octave.sourceforge.io when using Firefox [octave forge] JavaScript code shown at the bottom of Octave web pages at octave.sourceforge.io when using Firefox

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code