Programatically setting cookies using javascript doesn't work on expired cookies

Hello, I will try to explain as best as I can. In our web app, for authentication, we manually set our cookies (document.cookie = cookie) after receiving the tokens from… (read more)

Hello, I will try to explain as best as I can.

In our web app, for authentication, we manually set our cookies (document.cookie = cookie) after receiving the tokens from the login request. We work with 2 cookies, 1 for the access and 1 to refresh the access one if it expires. The refresh cookie has a longer time to expire.

When we login on a fresh session with no cookies at all in the storage tab in the dev tools, all is fine. I actually tested this by setting a random cookie and then using the debugger to add a breakpoint on the very next line of code and then typing document.cookie in the console and it is present.

The problem appears when trying to login after the cookies expired. They are still present in the storage tab in the dev tools. Somehow, manually setting the cookies again doesn't actually set the cookies or it takes some time and our app is stuck on the login page because it doesn't pass our checks that it actually has the access cookie. Using the same test described above, re-setting a cookie that expired and using the debugger again to add a breakpoint on the very next line of code and then typing document.cookie in the console does not show the cookie.

This issue does not reproduce on other browsers and it started with version 116.0.3.

For a more step by step to reproduce the issue: 1. Use document.cookie = cookie with a expiry time of 20 seconds 2. Wait for 20 seconds to pass 3. Set the same cookie again 4. Use the debugger to set a breakpoint after setting the cookie 5. Type document.cookie in the console whilst in the breakpoint pause 6. The cookie doesn't show in the document.cookie call

Asked by 6pjwgzk4x7 9 hours ago

userChrome.css — I've blundered!

See reddit post— no way I'm typing all that again! Reddit Post It's not that long, trust me— it's just that the code is long... I've attached a slightly different scree… (read more)

See reddit post— no way I'm typing all that again! Reddit Post It's not that long, trust me— it's just that the code is long... I've attached a slightly different screenshot to the one I posted on the reddit post, but it makes no difference if you see one or the other, or both!

In summary, I've added a css code to my userChrome.css thingy to move the tabs below the search bar. I was also wondering what the best way to transfer my userChrome.css file + about:config settings over to a new version of Firefox. Due to not being admin of my laptop (I'm running it out of the .dmg file— besides, I always like to keep an older version of Firefox as a fallback), I have to install a whole new version of Firefox onto my laptop to update.

Thanks!

Asked by ctan24 14 hours ago

Last reply by ctan24 9 hours ago

Visual styling of the tabs

Is there any way to make the tabs more clearly defined from one another? All the tabs seem to blend together visually. There is no line that separates each tab from the… (read more)

Is there any way to make the tabs more clearly defined from one another? All the tabs seem to blend together visually. There is no line that separates each tab from the one next to it. It's very annoying visually. Can this be changed with a setting?

Asked by Haru 10 hours ago

Tabs not syncronized between 2 PCs

Hello there, So I have this issue where the tabs I left opened on my PC are not showing up, only the ones from 3 days ago (even though I used it yesterday) Before, sync… (read more)

Hello there,

So I have this issue where the tabs I left opened on my PC are not showing up, only the ones from 3 days ago (even though I used it yesterday)

Before, sync would, I assume, work automatically when Firefox is closed or something like that, which isn't the case anymore for me, for the last few days/weeks..

So I'm wondering, what can I do to make it work like before?

Thanks in advance!

Asked by magmaster69 11 hours ago

Third party cookies are blocked, despite of config change

We use FireFox 118+ . our product needs to collect all cookies, including 3rd party cookies from any domain loaded. * We have turned off "Total Cookie Protection" by s… (read more)

We use FireFox 118+ . our product needs to collect all cookies, including 3rd party cookies from any domain loaded.

* We have turned off "Total Cookie Protection" by selecting Custom privacy settings and un-checking all check boxes (sceenshot attached)
  • Also turned off "Enhanced Tracking Protection" for the website

But, when we browse to any site, the collected cookies under cross-domain are either empty or less compared to chrome.

Is there any other setting we can use to collect all the cookies ?

ex domain : https://www.santander.com/es/home , if you compare the cookies collected with chrome are much more than whats captured in FireFox.

Please help, this is crucial

Thanks,

Asked by Seema Hanji 23 hours ago

Last reply by Seema Hanji 15 hours ago

Unable to start Firefox, not even in Safe Mode ...

Hail: System Software: Win11Ent_x64 v22H2 (b: 22621.2283) MFF v18.5.0.0 No matter what I try, my MFF keeps crashing at startup. For some reason, it tries to open 2 page… (read more)

Hail:

System Software: Win11Ent_x64 v22H2 (b: 22621.2283) MFF v18.5.0.0

No matter what I try, my MFF keeps crashing at startup. For some reason, it tries to open 2 pages the windows at the same time, which is illogical. I deleted firstly my: sessionstore.jsonlz4 logins.json to no avail.

Then I tried to open MFF through elevated CMD with the command: C:\Program Files\Mozilla Firefox\firefox.exe -safe-mode Again, 2 windows pop crashing immediately.

I do not understand why all of the sudden, it tries to open 2 different instances at once. This makes no sense. I am out of ideas, having tried many an option found on Google, but which none give me a solution.

If anyone has an idea, I would be quite darn thankful. This MSEdge crap that I need to use now is not quite my thing.

Thank you. Ke'Ylan

Asked by Ke'Ylan Abaddon Banthraxx 4 days ago

Last reply by Ke'Ylan Abaddon Banthraxx 17 hours ago

Firefox and Facebook

I downloaded the latest Firefox for security which appeared on my page. I thought it was a good idea. However I play games in Facebook and do a lot of jigsaw type game… (read more)

I downloaded the latest Firefox for security which appeared on my page. I thought it was a good idea. However I play games in Facebook and do a lot of jigsaw type games. After downloading I could not load my games to play at all. It affected all of them. I just deleted the latest firefox and downloaded the one from the Mozilla page and now they work. Why did this happen. I like Firefox I like security however I do want to be able to use other sites that may have blocked or decided they do not like the way Firefox is taking away their advertising $$$$

Asked by Susan44 21 hours ago

Gracefully handle memory exhaustion

I really want to use firefox. I really do. But firefox's memory management is making that very difficult. I have 8GB of RAM, which really ought to be enough, but inevita… (read more)

I really want to use firefox. I really do. But firefox's memory management is making that very difficult.

I have 8GB of RAM, which really ought to be enough, but inevitably, over time, firefox will munch and munch and munch until it has consumed all of it.

And then... my system crashes. I lose work. I get angry.

Well, okay, I use linux, so after this happened a few times I stuck firefox in a systemd scope and limit it to 90% of the memory of my system. At first, that didn't work because firefox would simply eat into the pagefile, until it had consumed all of it (or as much as I entitled it to), at which point firefox would desperately try to do.... something, very frantically, which would lock the CPU usage to 100%, again bringing down the system. So I limit its RAM and prohibit it from using the pagefile, and now, it's just firefox that dies.

....

But, really, that's still a problem. I still have emails partially written, forms filled out, work is still lost. Is it really so abhorrent to take out the trash that you'd rather just commit suicide instead? I say take out the trash, because firefox will restart, reload those very same tabs, and carry on with a fraction of the memory usage. Something's been dropped, and it wasn't important (well, other than the content of that email I've been composing for the last half hour).

So. If I'm going to continue using firefox, which I would very much like to do, there needs to be some way for it to gracefully say to the user: "I've run out of available memory. I'm going to have to..." (for example) 1. perform garbage collection (do whatever 'minimize memory use' seems to do... which is not much, but something that really ought to be the default action in this situation) 2. clear the buffer of some videos being played, or some cached results or something, i dunno. 3. gracefully stop loading the current tab, or process, or whatever, and say to the user "I've run out of resources to continue. Please choose one or more tabs to close in order to continue"

Then, at least, I can sacrifice my background music tab, or something else unimportant, to buy enough time to copy that email into notepad, submit that form, or just run 'minimize memory usage', and be able to carry on.

Asked by ymousa85+firefox 5 months ago

Last reply by ymousa85+firefox 1 day ago

Windows 10 PC consistently load

"Why does Firefox on my Windows 10 PC consistently load 'https://onlinebinoculars.com/' much slower compared to other websites, causing delays in accessing important info… (read more)

"Why does Firefox on my Windows 10 PC consistently load 'https://onlinebinoculars.com/' much slower compared to other websites, causing delays in accessing important information about binoculars and optics?"

Asked by Business Seo 23 hours ago

Empty tabs open after I click on a link

I'm using the firefox app on an Android device, and haven't had any problems so far. But now when I click on a link, firefox opens 2 new tabs but stays on the same one an… (read more)

I'm using the firefox app on an Android device, and haven't had any problems so far. But now when I click on a link, firefox opens 2 new tabs but stays on the same one and I have to click again before the link opens. I have installed the latest update of firefox and have no extensions or add-ons.

Asked by ACcornelisse 1 day ago

pink bar at bottom left of firefox it pos up

I do know know if you even understand what i am trying to say here but ill try my best lets say i am in Facebook on Firefox and i am typing something. Sometimes wh… (read more)

I do know know if you even understand what i am trying to say here but ill try my best lets say i am in Facebook on Firefox and i am typing something. Sometimes when i an typing a pink bar comes up at the bottom left of the screen? not sure if it Firefox or windows but sem to come up only in Firefox. Recently comes up a lot

Asked by Mary 1 day ago

Last reply by Mary 1 day ago

edge/android/mozilla/authenticator

I can log into mozilla and edge browser on this pc. I can log into mozilla on Android app. I CANNOT LOG INTO MOZILLA ON THE MOZILLA BROWSER ON PC. I have changed my pass… (read more)

I can log into mozilla and edge browser on this pc. I can log into mozilla on Android app. I CANNOT LOG INTO MOZILLA ON THE MOZILLA BROWSER ON PC.

I have changed my password multiple times and had to use 2 backup codes all to install google authentification app on my phone. I cannot do this from my edge browser. I also have tried multiple times to install the vpn but that hasn't been successful either.

Mozilla needs a video tutorial on how to do this successfully especially when you don't have a QR code. Im just glad that i saved my backup codes.

Asked by Natalie W. 1 day ago

Firefox Nightly (Mac, Sonoma 14.0) - Can't reposition window on decktop (Mac)

The browser window is locked in a fixed position on the desktop. No issues with any other functionality. I don't have this issue when using the original Firefox browser. … (read more)

The browser window is locked in a fixed position on the desktop. No issues with any other functionality. I don't have this issue when using the original Firefox browser. I searched Google but couldn't find a solution that works for me. Any suggestions?

Asked by tjblack777 1 day ago

My existing account has a wrong password , which I can't change because when I try, it says wrong password

I have a new laptop. I want to load up my account but because my password is wrong, I can't. What can I do? When I try to change my password, I'm told it's the wrong pass… (read more)

I have a new laptop. I want to load up my account but because my password is wrong, I can't. What can I do? When I try to change my password, I'm told it's the wrong password.

Asked by jbacun 1 day ago

did factory reset, lost bookmarks. tried article, changed profiles, still cannot find.

It is not unusual for me to have trouble following articles. I looked at restore, said would be a list of dated automatic backups, I do not see anything. I tried switch… (read more)

It is not unusual for me to have trouble following articles. I looked at restore, said would be a list of dated automatic backups, I do not see anything. I tried switching profiles, only have 2, i see no difference. please help. I'm on a Surface Pro, windows 11

Asked by glinfoot 1 day ago

Since update last week (118.0.1) 64 Bit I am unable to print but I can in other browsers

I've been looking for help for a week now as to what happened to my ability to print from Firefox? Everything was fine until last week with the update. It's not my printe… (read more)

I've been looking for help for a week now as to what happened to my ability to print from Firefox? Everything was fine until last week with the update. It's not my printer as I am able to print from other browsers. I've tried uninstalling and reinstalling. Trying to clear saved printer setting per Troubleshooting advice. I even deleted it from my computer to try and get an earlier version but it keeps bringing me back to the latest version that does not work. The worst part was I was trying to back up my computer (restore point) to an earlier date my Webroot was not allowing me to do that I I could not get that turned off. I called the Geek squad who remoted in and made things worse. She somehow deleted my ONLY restore date there. So for a week I have been trying to find help. You are my last resort before I switch to another browser. I work from home so this is not convenient, as I print often. Switching browsers just to print is wasting time (I don't like the other browsers). HELP!

Asked by janpre2001 1 day ago

Last reply by janpre2001 1 day ago