Pale Moon 28.x rendering default bookmark iocns as folders

Support and discussions for the Apple Mac OS X builds of Pale Moon
Forum rules
Important note:
The Mac OSX version of Pale Moon is provided by various people and is not official or in any way organized at this moment. Your assistance in bringing this build to fruition is greatly appreciated, but you can expect there to be bugs and problems as long as we don't have a maintainer or official builds!

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.

Please also note that these builds are currently created by various independent Mac OS X people and not by our core team; core devs will likely not be able to provide insight or assistance due to lack of Mac hardware and OS/build knowledge for Mac. You'll have to solve the issues among yourselves.
Post Reply
User avatar
grasor
Moongazer
Moongazer
Posts: 9
Joined: 2020-11-16, 14:48

Pale Moon 28.x rendering default bookmark iocns as folders

Post by grasor » 2020-12-06, 21:26

First, my OS specifics - 10.13.6, High Sierra, fully updated.

Second, a short statement of my issue.

I have been experimenting with Pale Moon under Mac OS, and surprisingly, almost everything works without any issues. Kudos to the independent developers working to make Pale Moon a reality on Mac OS under Intel.

I have "ported" my profile from Windows 7/10, and all extensions worked as expected.

The only problem that I have encountered is that the default bookmark icons are rendering as folders, rather than as the typical black & white "globe" favicon.

Sites with favicons retrieved from their root render correctly.

I tried restoring the bookmarks backup json file, and the bookmarks still show folders rather than the typical black & white "globe" favicon.

Where is the default favicon for bookmarks "without" a site favicon.ico obtained? Is that icon hard coded, or is it in a default resource?

Is there a coded database of the favicons stored somewhere in the profile folder?

Are the favicons encoded in the json file containing the bookmarks backup?

This issue is only happening on Mac OS, not under Windows.

I searched for legacy extensions that might allow manipulation of the bookmark favicon, but none of them work anymore under Pale Moon 28.x

Any help is troubleshooting this issue is greatly appreciated.

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 8948
Joined: 2012-10-09, 19:37
Location: Seriphia Galaxy

Re: Pale Moon 28.x rendering default bookmark iocns as folders

Post by New Tobin Paradigm » 2020-12-06, 21:57

Your profile is corrupt.
As a young boy, I dreamed of being a baseball.
But tonight I say, we must move forward, not backward; upward, not forward; and always twirling, twirling, twirling towards freedom!

Image

User avatar
grasor
Moongazer
Moongazer
Posts: 9
Joined: 2020-11-16, 14:48

Re: Pale Moon 28.x rendering default bookmark iocns as folders

Post by grasor » 2020-12-06, 22:03

Answering one of my own questions...

In the profile folder there is a database named places.sqlite

Upon inspection, it has a table moz_favicons that includes the fields id, url, data (a BLOB), mime_type, expiration, and guid

I have confirmed this table is where the favicons are stored that render in the bookmark list.

The BLOB contains the coded favicon of the type indicated by the mime_type.

The only sites listed in this table are those containing customized favicons retrieved from each specific site.

However, I can't seem to find where the default favicon for sites not presenting a customized favicon is either stored or retrieved for rendering in the bookmark list.

Thanks again for any help.

User avatar
grasor
Moongazer
Moongazer
Posts: 9
Joined: 2020-11-16, 14:48

Re: Pale Moon 28.x rendering default bookmark iocns as folders

Post by grasor » 2020-12-06, 22:05

Thanks for the prompt response. My next step is to perform a clean rebuild of the profile.

Not being familiar with the code underlying the project, I am poking around reverse engineering logical elements in the profile.

User avatar
grasor
Moongazer
Moongazer
Posts: 9
Joined: 2020-11-16, 14:48

Re: Pale Moon 28.x rendering default bookmark iocns as folders

Post by grasor » 2020-12-06, 23:09

I performed a complete clean install of Pale Moon, with no extensions, and created two bookmarks for sites that have no favicons.

The result is the bookmarks, when placed inside a folder, appear with a folder icon rather than the default site icon.

If you place the same bookmarks in the root of a system default folder, e.g., Bookmarks Menu, they appear without any default icon, as text only based on the site name.

I will try this exercise again on another Mac with a clean install of the OS (I have VMs for testing) and report back.

This is perplexing...

User avatar
grasor
Moongazer
Moongazer
Posts: 9
Joined: 2020-11-16, 14:48

Re: Pale Moon 28.x rendering default bookmark iocns as folders

Post by grasor » 2020-12-07, 02:56

Final analysis.

I performed 4 clean installs of Pale Moon on 2 different iMacs running fully updated "clean" versions of High Sierra.

I tried both versions 28.15.0 and 28.16.0 of Pale Moon for Mac OS.

No third party extensions were installed.

No bookmarks were imported.

Bookmarks for web sites lacking favicons appear as text only, with no default icon, in the default root menus (Bookmarks Toolbar, Bookmarks Menu).

Bookmarks for web sites lacking favicons placed inside user folders appear with a default folder icon and the text name of the bookmark.

Bookmarks for web sites including favicons appear as the imported favicon and the text name of the bookmark, regardless of where the bookmark is stored.

This behavior is not related to any type of profile corruption as suggested previously.

Can anyone having significant familiarity with the build and source code tell me where Pale Moon gets the resource used to generate the default menu icon for bookmarks that have no related favicon?

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 8948
Joined: 2012-10-09, 19:37
Location: Seriphia Galaxy

Re: Pale Moon 28.x rendering default bookmark iocns as folders

Post by New Tobin Paradigm » 2020-12-07, 04:03

New Tobin Paradigm wrote:
2020-12-06, 21:57
Your profile is corrupt.
As a young boy, I dreamed of being a baseball.
But tonight I say, we must move forward, not backward; upward, not forward; and always twirling, twirling, twirling towards freedom!

Image

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 29309
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Pale Moon 28.x rendering default bookmark iocns as folders

Post by Moonchild » 2020-12-07, 10:53

If you performed clean installs not copying or importing everything, then it may simply be a missing resource in the Mac theme, that might get filled with a different (cached) image if unable to get the proper resource.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

User avatar
grasor
Moongazer
Moongazer
Posts: 9
Joined: 2020-11-16, 14:48

Re: Pale Moon 28.x rendering default bookmark iocns as folders

Post by grasor » 2020-12-07, 14:14

New Tobin Paradigm - the profile is not corrupt.

In performing clean installs, all information relating in any way to Pale Moon, and any other browser except for Safari, was not present.

I have baseline images of 10.13.6 that contain ONLY the essential components of that version of Mac OS.

Thus, the profile is being created by Pale Moon from scratch. Unless Pale Moon is self-corrupting its own profile, that is not the problem.

My experiments were performed on two statistically independent computers, with separate but equally sufficient instantiations of Mac OS 10.13.6.

I may try again today on Mojave or Catalina, but I prefer High Sierra as a more functional version of Mac OS.

Per Moonchild's response, that may be correct and is likely on point.

I need to determine exactly where the code base pulls the default icon from when rendering the bookmark list shown when selecting a menu.

I initially posted a request here assuming that I would immediately find one of the Mac savvy developers who knew the precise answer to my question.

Anyways, I have started writing an extension that will allow a Pale Moon user to select any favicon they want and set it on a per site, or global basis.

There are several legacy extensions available in the Classic Add-Ons Archive such as Bookmark Favicon Changer (v2.29) and IdentFavIcon (v0.3.4.7.1-signed) that have somewhat limited functionality under Pale Moon on Mac OS. I have both of them working, but should require neither if the current build was rendering the correct default icon in the first place.

I completely understand Moonchild's caveats concerning "unsupported" versions of Pale Moon, particularly based on the semi-proprietary BSD UNIX implementation used by Apple as Mac OS. Although Apple has created quite a robust, full featured toolset (xcode) for their software enabler platform, in many cases it is poorly documented. As a result, much of the code being released by Apple and innocent third party developers suffers from defects stemming from Apple's extremely poor quality control.

Having been an Apple developer since 1980, I can speak with authority on the matter of declining quality in both Apple's hardware and software products. Microsoft does a much better job creating software solutions that "just work."

OK, I'm off my soap box now.

I appreciate any help I can get on this matter, and will likely retrieve the latest source code posted by dbsoft, and begin searching for the section that draws the drop down menu and renders the favicons.

Thank you for your responses.

Post Reply