new(Components.utils.Sandbox(null).XPCNativeWrapper)(0) crashes pale moon Topic is solved

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
BZZZZ

new(Components.utils.Sandbox(null).XPCNativeWrapper)(0) crashes pale moon

Unread post by BZZZZ » 2021-11-18, 20:03

run

Code: Select all

new(Components.utils.Sandbox(null).XPCNativeWrapper)(0)
in chrome script and pale moon will crash!
it says

Code: Select all

Segmentation fault (core dumped)
in terminal

but

Code: Select all

Components.utils.Sandbox(null).eval("new XPCNativeWrapper(0)")
doesn't crash
why?

also what XPCNativeWrapper function does and why is it only in sandbox?

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

Re: new(Components.utils.Sandbox(null).XPCNativeWrapper)(0) crashes pale moon

Unread post by Moonchild » 2021-11-18, 22:43

Solution: Don't run that snippet of code in Chrome context.
"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: new(Components.utils.Sandbox(null).XPCNativeWrapper)(0) crashes pale moon

Unread post by BZZZZ » 2021-11-22, 15:15

Moonchild wrote:
2021-11-18, 22:43
Solution: Don't run that snippet of code in Chrome context.
It doesn't have to be chrome context. It just has to be not sandbox context.

example (greasemonkey abuse): https://github.com/janekptacijarabaci/g ... /issues/20

New Tobin Paradigm

Re: new(Components.utils.Sandbox(null).XPCNativeWrapper)(0) crashes pale moon

Unread post by New Tobin Paradigm » 2021-11-22, 15:37

Who the fuck actually cares?!

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

Re: new(Components.utils.Sandbox(null).XPCNativeWrapper)(0) crashes pale moon

Unread post by Admin » 2021-11-22, 17:17

Why are you posting here if its clearly a vulnerability in Greasmonkey?
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