i cannot find programming solution , but i can do it manually by open Firefox profile, then go to about:preferences#privacy and change enhance tracking protection to custom and in cookies option select cross site tracking cookies like this: now the popup message not appears again ,if anyone found how to do that in options.SetPreference(...) please share it