Navigation bar icon for about:blank

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.
User avatar
Veit Kannegieser
Moongazer
Moongazer
Posts: 10
Joined: 2019-03-23, 19:16

Navigation bar icon for about:blank

Unread post by Veit Kannegieser » 2023-06-09, 21:08

Hello,
usually i put a item with name [] and address about:blank in the navigation bar.
works fine, however the icon shown left of [] is that of an other url, and changes over time.
It would be nice to either have no icon, or the default globe used for unavailable icon.
regards.

BenFenner
Astronaut
Astronaut
Posts: 588
Joined: 2015-06-01, 12:52
Location: US Southeast

Re: Navigation bar icon for about:blank

Unread post by BenFenner » 2023-06-16, 14:44

Can you describe your situation a bit better, or provide screenshots?
Can you also describe your use case a bit?

I ask about your use case because it is possible you could simply make your new tabs open to about:blank and that might be what you want? Or have your home button navigate to about:blank and use that? (What are you using your home button for right now?) Or maybe some form of bookmark could be appropriate?

User avatar
Veit Kannegieser
Moongazer
Moongazer
Posts: 10
Joined: 2019-03-23, 19:16

Re: Navigation bar icon for about:blank

Unread post by Veit Kannegieser » 2023-06-17, 14:20

It looks like this:
bookmark_bar.png
bookmark_bar.png (9.54 KiB) Viewed 535 times
The icon is actually for a differn location.
Dumping places.sqlite, i see

Code: Select all

CREATE TABLE moz_places (   id INTEGER PRIMARY KEY, url LONGVARCHAR,
  title LONGVARCHAR, rev_host LONGVARCHAR, visit_count INTEGER DEFAULT 0, hidden INTEGER DEFAULT 0 NOT NULL, typed INTEGER DEFAULT 0 NOT NULL,
  favicon_id INTEGER, frecency INTEGER DEFAULT -1 NOT NULL, last_visit_date INTEGER , guid TEXT, foreign_count INTEGER DEFAULT 0 NOT NULL, url_hash INTEGER DEFAULT 0 NOT NULL);
..
INSERT INTO moz_places VALUES(17,'about:blank',
  NULL,NULL,0,0,0,
  190,47,NULL,'3TgvB-krkCH0',1,175532304468422);
..
INSERT INTO moz_places VALUES(600,'https://reiseauskunft.bahn.de/bin/query.exe/dn?protocol=https:',
  NULL,'ed.nhab.tfnuksuaesier.',0,0,0,
  190,47,NULL,'96xCr9r484Rn',3,47358666046751);
so both have favicon_id 190,

which is cached as

Code: Select all

INSERT INTO moz_favicons VALUES(190,'https://www.img-bahn.de/s3/prod/v/img_responsive/favicon.ico', (icon data here...));
I see this problem on different machines, on longer existing profiles.
But can currently not recreate the issue from a fresh profile, where a NULL favicon_id is assigned correctly for about:blank.

Now i wonder about the usage/obfuscation of rev_host.

Also thinking about the usability again, maybe i should have used the home button for exactly that.

User avatar
Veit Kannegieser
Moongazer
Moongazer
Posts: 10
Joined: 2019-03-23, 19:16

Re: Navigation bar icon for about:blank

Unread post by Veit Kannegieser » 2023-07-01, 15:44

I corrected that by

Code: Select all

UPDATE moz_places SET favicon_id=NULL WHERE url='about:blank';
but today it is back with values

Code: Select all

INSERT INTO moz_places VALUES(17,'about:blank',NULL,NULL,0,0,0,1200,37,NULL,'3TgvB-krkCH0',1,175532304468422);
...
INSERT INTO moz_favicons VALUES(1200,'https://packaging.gitlab.io/signal-cli/img/Signal_Blue_Icon.png',X'89504e470d0a1a0a0000000d4948445200000020000000200806000000737a7af400000641494441545885c5977d6c95571dc7fb17515e7463b4a5657db9658dcd084ca87b71e9223a1497254c928d252adb74f30fb6a8fc3113742e59062ded7de9bdb785ddd652560aa43ac6083098a47b610263231a758bc99c118373f89cf33cf779ce39b7b7b440f6f18f737b7bb96d6d8b1aff38799edcf3dcdff77b7eafdf53529b90fc3f57c96c3eae890b6a1322f72cde1705dffc57098c038672ab3621a96a172c89d995df4f8eed4f457296040a8d54b50bcac282c5116b7cd90b92553d2e2b7fe152979454b70bcac382f2dc7e68121bb320306ea4262ea86a1734ec94ac3b90e6fbaff9d4770836beeaf3c337039e7c3da06187e4c1436936bd1ef0f5fd1e75494b74b283cc88c018784554104a089626058f1df779ec98cf9dbd2e4b6282856d82052d82cf6d179486054b3b245fe9f7f8de719f155d92a63e97aa764165742c3726273281401e3c22b8a3d765cb6945638f4b6554f099ad0e37b60a56a624ebf6bb3c72d0e3bb2f7bdcb7d7e5d61d92f92d0e73b739dc1c136c3ceaf3f4db8ae5291b9ea93c5132197879d8a1b1c7e599338a2ff5b8dcd8ea50d52e78eaa8c7e08701173dc5a521cdd561c3d5614336a3b92015873e08f8f6018fb2886041b3c337073cbe73c4e7a656674a122585e0b509c992984db0c61e97fa0ec9fc6687b5fd2eeffd4dc188e6eab06628a3d1da10688dd2f63d9bd17c7ac9ee1ffb534063b7e4f3db1d2aa30e1b0ea5599e92f9704ce981aa761bf39f9f56dcd62559d0e2f0e8411763ac613fd004ca026aad8b9621501a5f6918d15c909a7bfb2c89fb7fe9f193932a5fb2855e282020280b3b6c3a11b0e1953473b739acdbef92cd68b2190b6ecc38b03126bf8a7ff302c5e5ac0d4b63976441b3c30f8efbaceef7581c71267aa0266e095446055fedf7082504b571c1fb1f5b437ea0a6049f9c88c60b148c188e7c10b0286ced2d7b41e63d5073ad07041551c1ea3d1e77ec7299d7ecf0f46b1e8c18d2819e16780289dc33509ad1ac66fd80cbfc66874d277c9a5e74ad17e20504420949699bc38f0703eeddeb71c37687931f055c19d6046afcf4332150e8093fe785de733e739eff270fbf92e6d1a33e8bda9c7ca72c19ab80ea76c1b3a714f59d92653b04ff7015d9cc5896cf1c3c4fc2d8a4bc9cd5bc773ea0342cf872afcbc6c33ee511519c0376ca35bde8521113dcd32bedc9b541abd9838f794169cda521c3471715f51db6a52f4de6f0e213084856eff1a8fc1f10f8f345456d5cb0b25bf2e4af7d164727215013173c774ab1342959be53f0896b1bcef586c0e4427025ab79e7af010b5b1dd6ecf5d83c184ccc81da84a43ce2f0b3930177f5ba94861dde3d1f70396b33f97a4eafb5269d4bc29deff8ccd9eaf0d081340fbd9ca6b44d14131054c6046bf779ac48d9a1d2f6761a460de940cdba0c0b43309cd1aced7759147668d821a94b8e75c3a246541db709b2bacfa52cec707bb7c4f53519a351332cc5b1966c74ae118d1af6fdce676eb3c3ddbd2e9b4f0494476cbbaf290e41755c50971484cf2a56a4ec1cf8e9090f2e1b949a6907b4ef5ea0f8f492e1fd8f150d9d569c3cff1bc5da7dde3525780d815042b2a8cd61dd80c7336f0594861d4ac382ce336946b2634348e75d5b3c8c9436f8caee316af8c3df15b7774be6353bacea963c71d41f3ffd64c3c8d6a6add57b76bbac4859af2c6c7338f597802bc376c8686d18c91a32c6d8a9680c43c6309ab55370c868769ff3b9256905ccfa5f797c6d8fcbc2562727f1a65144a1841da18f1f4ef3d4719fcf6e7338f8479fabc3b6af6733860f3f51a4033b25878c46fa9adf5f50a4cefaace97399d7e25011153c71c4a7f58ce2d69d53aba2098aa8b03326df5554c604fdbff501c3d9f38a07f65b7976f72ec937f6b8ace97369ecb2ff99b3d5e18656c15dbb24abba249b5ef5ad2e8c8d0bdce93561ce0b1551c1832fa50925259b8f793cf7469a79cd569a35ed76a9880a2a62829bdb05f51d365c1b0e786c3fa5d83218104a086e6a73ae51d7b352c5d5719b3077f6b8cc6fb1277bfc709ac459c58f72d27ccb6040eb69c5b36f067ca153f2c0804753af4b7944e4aaea3a65796d227717e814a4ce69b60cfa7c3125b96f9f4743a7a4346c0dded2615775aeb19445444eca8f035fe7c5643c0ceb073cbe35e0511d1794452cb1bae4b897aa0b0066033c2d81bc448f58e06280c9be9fedc5f4df1228bc9e85fe0380e9d6bf00e3c8f1ac84a6e33a0000000049454e44ae426082','image/png',1688811541691669,NULL);
which i visited today, and book-marked, but that

Code: Select all

INSERT INTO moz_places VALUES(4941,'https://packaging.gitlab.io/signal-cli/installation/',NULL,'oi.baltig.gnigakcap.',0,0,0,NULL,137,NULL,'xHXxaHwjkgOC',1,47358120210272);
INSERT INTO moz_bookmarks VALUES(5217,1,4941,2,457,'Installation :: signal-cli packages',NULL,NULL,1688207728985000,1688207729229000,'HZZmkNYLeefk');
has a NULL in the icon column.

Decoding the time stamps:
https://packaging.gitlab.io/signal-cli/ ... e_Icon.png:
1688811541691669/1000 -> Sat Jul 08 2023 11:19:01 GMT+0100
could be time of opening the page plus a week.

https://packaging.gitlab.io/signal-cli/installation/:
1688207728985000/1000 -> Sat Jul 01 2023 11:35:28 GMT+0100
1688207729229000/1000 -> Sat Jul 01 2023 11:35:29 GMT+0100
would be the time stamp when storing as book-mark.

I will try to investigate what happens adding a line into moz_favicons with a very far away expiration. Or maybe a file:// refresh source.

Locked