Page 1 of 1

Eclipsed Moon bug

Posted: 2021-11-29, 16:51
by BZZZZ
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

Re: Eclipsed Moon bug

Posted: 2021-11-29, 17:10
by Moonchild
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?

Re: Eclipsed Moon bug

Posted: 2021-11-29, 17:27
by New Tobin Paradigm
This person is obviously a content shit poster and offers no constructive contribution to the world at large.

Get the flyswatter, Moonchild.

Re: Eclipsed Moon bug

Posted: 2021-11-29, 17:45
by Moonchild
Well I expect an answer to my questions before swatting.

Re: Eclipsed Moon bug

Posted: 2021-11-29, 18:49
by BZZZZ
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)

Re: Eclipsed Moon bug

Posted: 2021-11-29, 20:59
by Moonchild
You didn't answer my questions.

Re: Eclipsed Moon bug

Posted: 2021-11-29, 23:34
by moonbat
I think we're dealing with a kid here. Forum is off limits to non adults as I gather.

Re: Eclipsed Moon bug

Posted: 2021-11-30, 08:06
by gepus
I think the OP realized that the extension doesn't work anymore (since the underlying code was changed ...).

Re: Eclipsed Moon bug

Posted: 2021-11-30, 08:47
by moonbat
Either way, it is for the extension author to answer queries and OP should contact them.

Re: Eclipsed Moon bug

Posted: 2021-11-30, 13:44
by BZZZZ
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.

Re: Eclipsed Moon bug

Posted: 2021-11-30, 15:36
by New Tobin Paradigm
How old are you?

Re: Eclipsed Moon bug

Posted: 2021-11-30, 16:25
by Admin
User account removed for not fulfilling the minimum required age for participation.