Pale Moon 28.8.4

Discussions for the Apple Mac OS builds of Pale Moon

Moderator: dbsoft

Forum rules
Important note:
The old Mac OS versions of Pale Moon were provided by various people and not official or in any way organized. Please make sure you check the date of topic threads to know if the topic is current or relevant! We are using this board for both old discussions and new development of Pale Moon on Mac.

Any specific bugs you find that don't have their own topic yet: please make a new topic; one bug per topic please to keep things organized.
Kasane

Re: Pale Moon 28.8.4

Unread post by Kasane » 2020-03-14, 06:23

KlarkKentThe3rd wrote:
2020-03-14, 03:48
Well, looks like Citibank is allergic to this new build. YES, only THIS build. Never had this problem before.
Image

Waterfox is not struck by this, it's a 28.8.4-only issue.
I don't use Citibank so I can't test it further, but all the pages that can be accessed without an account load fine on my end.
Image

On an unrelated note, I discovered that the button to see more details of an online certificate has the same bug as the rest of the toolbar buttons, and enabling transparencies don't seem to fix it (just like the downloads button).

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Pale Moon 28.8.4

Unread post by KlarkKentThe3rd » 2020-03-14, 07:04

The bug only happens when you (try to) log in.

dbsoft
Project Contributor
Project Contributor
Posts: 419
Joined: 2020-02-21, 17:35

Re: Pale Moon 28.8.4

Unread post by dbsoft » 2020-03-14, 19:44

Kasane wrote:
2020-03-11, 02:53
Interestingly, everything but the downloads button worked normally in the guest account, something that made me investigate deep further.
After checking the differences between the system settings of my main account and the guest account, I found that the option to reduce transparency (System Preferences > Accessibility > Screen > Reduce Transparency) seems to be the cause of the problem. If this option is enabled the bookmarks, downloads and history buttons stop working (the rest of the buttons that can be placed in the toolbars will keep working normally) even when this option is disabled afterwards. The only way to restore the functionality of the buttons is by opening a new window after enabling transparencies again. Things like using the dark theme or reducing the animations don't seem to affect the browser.
You are absolutely right, checking the reduce transparency box on my 10.14.6 machine caused it to exhibit the behavior, which kind of confirms to me it is that CoreGraphics error that is the cause of the problem. It is happening during the draw event, after something sets the needsDisplay flag to YES. Still looking for the cause.

dbsoft
Project Contributor
Project Contributor
Posts: 419
Joined: 2020-02-21, 17:35

Re: Pale Moon 28.8.4

Unread post by dbsoft » 2020-03-15, 23:18

KlarkKentThe3rd wrote:
2020-03-14, 07:04
The bug only happens when you (try to) log in.
Can you test citi.com with this build?

https://drive.google.com/file/d/1iC-5RU ... VwuuR/view

I don't have a login to test with.

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Pale Moon 28.8.4

Unread post by KlarkKentThe3rd » 2020-03-16, 00:46

I guess I should say thanks for building that, but it solved nothing. Citi still gives a server error message when I log, while Waterfox makes it work fine.

On top of that, PM 29 was running about 5 times slower, with CPU usage over 100% at all times. To restore the previous session (something I do every time) I had to wait over a minute for all windows to load. I had to regress to 28, and at the moment of typing CPU us between 30 and 60%, just as it should be.

dbsoft
Project Contributor
Project Contributor
Posts: 419
Joined: 2020-02-21, 17:35

Re: Pale Moon 28.8.4

Unread post by dbsoft » 2020-03-16, 00:56

KlarkKentThe3rd wrote:
2020-03-16, 00:46
I guess I should say thanks for building that, but it solved nothing. Citi still gives a server error message when I log, while Waterfox makes it work fine.

On top of that, PM 29 was running about 5 times slower, with CPU usage over 100% at all times. To restore the previous session (something I do every time) I had to wait over a minute for all windows to load. I had to regress to 28, and at the moment of typing CPU us between 30 and 60%, just as it should be.
Well wasn't intending that build for use, just wanted to see if it had the same issue.

Can you test on a clean profile and/or using Pale Moon on Windows?

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Pale Moon 28.8.4

Unread post by KlarkKentThe3rd » 2020-03-16, 04:13

I have no means of using Windows, sorry.

Kasane

Re: Pale Moon 28.8.4

Unread post by Kasane » 2020-03-16, 05:44

dbsoft wrote:
2020-03-15, 23:18
I should mention that the buttons still are bugged on this test build.
KlarkKentThe3rd wrote:
2020-03-16, 04:13
Try using a virtual machine with a lightweight Linux distro (like Linux Mint XFCE or Zorin OS Lite) to test it.

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Pale Moon 28.8.4

Unread post by KlarkKentThe3rd » 2020-03-16, 12:12

Last bit of bad news. Don't really have all that much empty space available on my HD, or a roomy USB stick. Not the time to try running a virtual box on my old Mac.

dbsoft
Project Contributor
Project Contributor
Posts: 419
Joined: 2020-02-21, 17:35

Re: Pale Moon 28.8.4

Unread post by dbsoft » 2020-03-16, 16:39

KlarkKentThe3rd wrote:
2020-03-16, 12:12
Last bit of bad news. Don't really have all that much empty space available on my HD, or a roomy USB stick. Not the time to try running a virtual box on my old Mac.
Have you tried opening it on a guest account? Trying to eliminate any residual cookies or anything that might be interfering with the site. Trying to determine if it is environment, or something specific to this version of Pale Moon or my builds.

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Pale Moon 28.8.4

Unread post by KlarkKentThe3rd » 2020-03-16, 17:07

Deleted all cookies (with everything else, including the only LSO), disabled the blocking of most scripts, disabled ad block. Still the same error.

Perhaps I can see a log or something? Is there a log for PM? I guess there should be.

dbsoft
Project Contributor
Project Contributor
Posts: 419
Joined: 2020-02-21, 17:35

Re: Pale Moon 28.8.4

Unread post by dbsoft » 2020-03-16, 17:26

KlarkKentThe3rd wrote:
2020-03-16, 17:07
Deleted all cookies (with everything else, including the only LSO), disabled the blocking of most scripts, disabled ad block. Still the same error.

Perhaps I can see a log or something? Is there a log for PM? I guess there should be.
There is the Web Developer->Error Console

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Pale Moon 28.8.4

Unread post by KlarkKentThe3rd » 2020-03-16, 20:10

Okay, I got 38 rows of the same error:

Error: ReferenceError: event is not defined
Source File: https://online.citi.com/GFC/branding/re ... js/main.js

then

Warning: A form was submitted in the windows-1252 encoding which cannot encode all Unicode characters, so user input may get corrupted. To avoid this problem, the page should be changed so that the form is submitted in the UTF-8 encoding either by changing the encoding of the page itself to UTF-8 or by specifying accept-charset=utf-8 on the form element.
Source File: https://online.citi.com/US/login.do

then

2 lines of the same

Warning: Content Security Policy: Ignoring ‘x-frame-options’ because of ‘frame-ancestors’ directive.

then

2 lines of

Warning: unreachable code after return statement
Source File: https://online.citi.com/CBOL/taggingTra ... tagging.js


I hope this mess will help you understand, since I sure don't.

dbsoft
Project Contributor
Project Contributor
Posts: 419
Joined: 2020-02-21, 17:35

Re: Pale Moon 28.8.4

Unread post by dbsoft » 2020-03-17, 21:31

KlarkKentThe3rd wrote:
2020-03-16, 20:10
I hope this mess will help you understand, since I sure don't.
Javascript isn't really my area of expertise, but I'll take a look at it a bit later...

Right now I am kind of focused on the problem that I can reproduce, and I wanted to give a slight update on that progress.

So the problem seems to be stemming from during drawRect: in nsChildView.mm.

CGContextRef cgContext = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];

This returns a nil (0x0) CoreGraphics context sometimes. I am not sure why this is happening. But different buttons seem to take different code paths to draw. When this happens the currentContext is also nil.

Often times the trigger for the drawRect() is nsCocoaWindow::Show() in nsCocoaWindow.mm.

So there is a way to create a graphics context from the window, so in there I check if the context is nil and if so I create a new context using the popup window, and set the current context to the newly created context. This fixes about half of the buttons, however the other half do not seem to follow the same path and I don't see any browser code in the path, if I can find a place to check for a nil context and create a new one for those other buttons I can make a workaround to this problem.

However, this fix is kind of a hacky solution, I really need to figure out why the context is nil during drawRect: to begin with, and so far I still have not determined a cause.

When I test on 10.11 currentContext and graphicsPort always return valid values and do not ever return nil, which is what I expect to be happening. Not sure why on 10.14 and 10.15 they occasionally return nil. And once it returns nil, it seems to keep returning nil.

Kendo

Re: Pale Moon 28.8.4

Unread post by Kendo » 2020-03-17, 22:06

Where can I find the build instructions and the GIT repository for this Mac version?

dbsoft
Project Contributor
Project Contributor
Posts: 419
Joined: 2020-02-21, 17:35

Re: Pale Moon 28.8.4

Unread post by dbsoft » 2020-03-21, 02:28

Anyone experiencing the toolbar popup issues please download this build and see if it is fixed.

Pale Moon 28.8.4 Test Download

Kasane

Re: Pale Moon 28.8.4

Unread post by Kasane » 2020-03-21, 06:43

I just downloaded it, and I can confirm that the buttons and pop-up menus work fine now, including those that were bugged even with the default transparency enabled.
Is this build stable enough for a daily use, or should I wait for a different release?

dbsoft
Project Contributor
Project Contributor
Posts: 419
Joined: 2020-02-21, 17:35

Re: Pale Moon 28.8.4

Unread post by dbsoft » 2020-03-21, 06:49

Kasane wrote:
2020-03-21, 06:43
I just downloaded it, and I can confirm that the buttons and pop-up menus work fine now, including those that were bugged even with the default transparency enabled.
Is this build stable enough for a daily use, or should I wait for a different release?
It is the previous stable release with the popup window fix, should be as stable as the last build of 28.8.4 I did. If the previous one works for you then it should be good for use.

Kasane

Re: Pale Moon 28.8.4

Unread post by Kasane » 2020-03-21, 07:25

dbsoft wrote:
2020-03-21, 06:49
It is the previous stable release with the popup window fix, should be as stable as the last build of 28.8.4 I did. If the previous one works for you then it should be good for use.
That's good to hear. Moving the app to the app folder right now. Thanks a lot for your efforts!

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Pale Moon 28.8.4

Unread post by KlarkKentThe3rd » 2020-03-21, 15:52

I will download the new build (even if I never had the bug).