Eclipsed Moon bug

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

BZZZZ

Eclipsed Moon bug

Unread post by BZZZZ » 2021-11-29, 16:51

https://addons.palemoon.org/addon/eclipsedmoon/

open https://example.com/ and run

Code: Select all

Function.prototype.toString.call(window.onunload)
in console

you will see

Code: Select all

"function () {
    [native code]
}"
but web page didn't set window.onunload

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35476
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Eclipsed Moon bug

Unread post by Moonchild » 2021-11-29, 17:10

Why are you doing these things? What is your purpose of running the code you do in the console?
Why do you think an extension adding an onunload function to the window object is a "bug"? Don't you think it might actually be part of its functioning?
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: Eclipsed Moon bug

Unread post by New Tobin Paradigm » 2021-11-29, 17:27

This person is obviously a content shit poster and offers no constructive contribution to the world at large.

Get the flyswatter, Moonchild.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35476
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Eclipsed Moon bug

Unread post by Moonchild » 2021-11-29, 17:45

Well I expect an answer to my questions before swatting.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

BZZZZ

Re: Eclipsed Moon bug

Unread post by BZZZZ » 2021-11-29, 18:49

Moonchild wrote:
2021-11-29, 17:10
Why are you doing these things? What is your purpose of running the code you do in the console?
Why do you think an extension adding an onunload function to the window object is a "bug"? Don't you think it might actually be part of its functioning?
I think it's bug because window.onunload function is not correctly exported to window (try running window.onunload.call)

also code can run in <script> tag in web page (I say to run code in console because it's easier than hosting html file on server)

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35476
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Eclipsed Moon bug

Unread post by Moonchild » 2021-11-29, 20:59

You didn't answer my questions.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: Eclipsed Moon bug

Unread post by moonbat » 2021-11-29, 23:34

I think we're dealing with a kid here. Forum is off limits to non adults as I gather.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
gepus
Keeps coming back
Keeps coming back
Posts: 938
Joined: 2017-12-14, 12:59

Re: Eclipsed Moon bug

Unread post by gepus » 2021-11-30, 08:06

I think the OP realized that the extension doesn't work anymore (since the underlying code was changed ...).

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: Eclipsed Moon bug

Unread post by moonbat » 2021-11-30, 08:47

Either way, it is for the extension author to answer queries and OP should contact them.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

BZZZZ

Re: Eclipsed Moon bug

Unread post by BZZZZ » 2021-11-30, 13:44

Moonchild wrote:
2021-11-29, 20:59
You didn't answer my questions.
Why are you doing these things?: I don't know where to report bug.

What is your purpose of running the code you do in the console?: To show what is wrong with extension.

Don't you think it might actually be part of its functioning?: Yes it's part of extension functioning but web page can also set window.onunload and might break extension.

New Tobin Paradigm

Re: Eclipsed Moon bug

Unread post by New Tobin Paradigm » 2021-11-30, 15:36

How old are you?

User avatar
Admin
Site Admin
Site Admin
Posts: 405
Joined: 2012-05-17, 19:06

Re: Eclipsed Moon bug

Unread post by Admin » 2021-11-30, 16:25

User account removed for not fulfilling the minimum required age for participation.
Did you know that moral outrage triggers the pleasure centers of the brain? It's unlikely you can actually get addicted to outrage, but there is plausible evidence that you can become strongly predisposed to it.
Source: https://www.bbc.co.uk/programmes/p002w557/episodes/downloads - "The cooperative species" and "Behaving better online"
Image

Locked