BTW Chrome protects against this by encrypting the cookies using macOS's keychain APi.
Also, "we encrypt secrets on disk" is usually just pure nonsense, only slightly better than using rot-13. If an app can decrypt the secrets without asking for your password, then a malicious app can also do that.