For me in FF 61, no cached files appear in the Network tab.
I've tested with large images where it is visually obvious if they're being transfered or coming from browser cache. They show up only when transfered but not when coming from cache.
If I filter the Network tab with is:cached or is:from-cache I get a blank list on any website I visit.
Anyone else get this?
Update:
In newer versions of Firefox there's also an option Disable Cache directly in the Network tab. (Thank you #Sebastian Zartner)
Original Answer:
Do following:
Open up dev tools
Hit F1 (this will opens settings panel)
In Advanced settings section (right-bottom col) make sure Disable HTTP Cache (when toolbox is open) is un-checked.
Hit Ctrl+F5 and check Network tab again.
If above doesn't work for you, as #Tom Tromey mentioned in the comment section, first try with new profile and if doesn't work, try to report it as a bug # bugzilla.mozilla.org
If you don't know how to test with new profile, do following:
Head to about:profiles
Using Create a New Profile, create a new profile :p
Open up cmd (on windows) and type firefox.exe -p myprofile -no-remote (replace myprofile with your new profile name)
A new instance of Firefox will be opened that use your new profile, now you can use this new fox as you using Firefox.
if firefox doesn't exist in you PATH, you need to open cmd in Firefox installation folder
Related
I would like to restore not the last "Restore Previous Session".
Open firefox (v78.0) with few tabs: aaa.com, bbb.com.
Close Firefox.
Open Firefox, open few tabs, ccc.com, ddd.com.
Close Firefox.
Open Firefox. How to get those tabs aaa.com, bbb.com from "Restore Previous Session"?
I went to the address bar of Firefox, typed about:support and saw which is the profile folder of Firefox.
I figured out that some versions of Firefox create a
c:\Users\MY_USER\AppData\Roaming\Mozilla\Firefox\Profiles\j1hcxbyk.default-release\sessionstore.jsonlz4 file when Firefox is closed.
I also found a copy of a session file
c:\Users\MY_USER\AppData\Roaming\Mozilla\Firefox\Profiles\j1hcxbyk.default-release\sessionstore-backups\upgrade.jsonlz4-20200630195452
So, I:
stopped Firefox,
made a back-up copy of the profile folder,
replaced sessionstore.jsonlz4 (or copied there if that file didn't exist) with upgrade.jsonlz4-20200630195452,
started Firefox,
restored the previous session with: Menu->History->Restore Previous Session,
checked that the old session, with my tabs, was restored.
Note: I chose upgrade.jsonlz4-20200630195452 because it was created in the same day, when I closed Firefox with all my tabs.
Recently, I faced the same issue of missing tabs when I restored the correct system date from some earlier date. After scouring the internet, I got the following tip to restore the firefox tabs back from saved sessions. My PC runs Microsoft Windows 10 Home with Firefox version 91.0.
Reference: https://support.mozilla.org/en-US/questions/1314940
"At startup, Firefox usually will look first for sessionstore.jsonlz4 at the main level of your profile folder and if it finds it, use its contents to create recovery.jsonlz4 -- if you restore automatically -- or previous.jsonlz4 -- if you do not restore automatically. So you could try replacing that file if you haven't already (as well as recovery.jsonlz4)".
Close the firefox browser.
Open %AppData%/Mozilla/Firefox/Profiles folder
Select the latest folder that contains .default in it.
Open sessionstore-backups folder. Now your path would be something like %AppData%\Mozilla\Firefox\Profiles\13dn9aq1.default-1473265690957-1560267471460\sessionstore-backups
Locate files with upgrade.jsonlz4- prefix and select the one which you think probably would contain your tabs.
Keep the original one untouched. Create a copy of it and rename it to sessionstore.jsonlz4
Copy the sessionstore.jsonlz4 file. Locate the sessionstore.jsonlz4 file in the folder one level down: %AppData%\Mozilla\Firefox\Profiles\13dn9aq1.default-1473265690957-1560267471460\ and replace it with the sessionstore.jsonlz4 file just copied.
Now you can open Firefox and you will get all your old tabs from the restored session.
The folder .default. can be located as follows also,
Type "about:profiles" in firefox and press enter
Click "Open Folder " next to Root Directory path
I had the same issue, and Firefox wouldn't read the *.jsonlz4 files properly, so I coded a little script to extract the URLS stored inside *.jsonlz4 files:
https://github.com/matthieuheitz/recover-firefox-session
Some people use this tool: https://www.jeffersonscher.com/ffu/scrounger.html, but it didn't work for me as the *.jsonlz4 files were very large (> 50MB), and the website just lags forever.
Recent Firefox version (version 96 this time, or at least the Linux one) doesn't have sessionstore.jsonlz4 in the root of the profile, so the other advices does not seem to work.
Firefox nightly upgrades a lot, so I have a very good chance to have FF restarted and lose all the session with no "restore session" available at all.
The solution (for me at least) was
stop Firefox
go to session backup directory at ~/.mozilla/firefox/<session_name>/sessionstore-backups/
copy any old file over recovery.jsonlz4 (say, cp upgrade.jsonlz4-20211112213406 upgrade.jsonlz4-20211112213406)
start firefox, and let it automagically restore th old session
It seems firefox only stores only the last previous.jsonlz4 there apart from upgrades, so it may be useful to ask cron to make periodical backups of recovery.jsonlz4 or similar.
I've set layout.css.devPixelsPerPx in Firefox to be 0.9 (open a new tab, write "about:config" & hit Enter), since I want the browser to be opened with certain level of zoom aspect. It is working fine, when I'm opening the browser manually.
But when I run a robot script, it opens the browser with zoomed in instead of the one, already set above.
So far I've tried following options, apart from above -
1. Tried using Firefox extension, which set default zoom level, but the browser opened by Geckodriver, doen't have that extension available.
2. Run Cntrl+- to zoom out, but as soon as the url changes, the zoom is reset to 100%
3. I can have the Browser open with a command (which has the correct zoom level set). Is there a way, I can ask Robot to use the existing instance of browser than opening new one?
How can I have the Robot open the Firefox browser with certain level of zoom?
The reason why you don't see the setting effective when you run the script is because Selenium creates a new profile when it starts a browser.
Any changes you do in your browser, any extensions you add, are stored in your user's profile. Selenium uses a clean/vanilla (as in: having the default settings) profile so your testing environment is always clean - not influenced by customizations, extensions, cached resources you may have added in your daily work.
If you want to have a particular setting changed in your Selenium browser session, under Firefox with Robotframework - you're "in luck" :). The SeleniumLibrary that comes with it supports starting the browser with a precreted profile - see the documentation, the Open Browser keyword - it has an argument ff_profile_dir.
So create a FF profile with your setting set to the value you need (I don't see a reason why it won't be stored there), and pass its directory as parameter to the Open Browser keyword. Thus when Selenium creates a browser instance, it will use this profile, with that setting effective.
Feel really stupid for asking but where did the file tabs in the debugger go? I can only open one file at a time. If I try to open another one, the file content is simply replaced with the new file. If I revert back to the old debugger, then I have a file tab for each file I open.
Using Firefox 53.0.3 (64-bit) on Ubunto 16.04LTS
You're actually using the old debugger UI. It's the new frontend that allows to open several files at the same time and looks like this:
To toggle the new debugger UI, go to about:config and set the preference devtools.debugger.new-debugger-frontend to true.
You may also check whether browser.tabs.remote.autostart.2 is set to true, which controls whether Firefox runs in multi-process mode.
I am developing a Chrome extension. It sets/reads local storage, reads the DOM, and sends an Ajax message. But sometimes it never reaches the server and I don't know where it gets stuck. Reloading the page doesn't work, although the extension works if I load another page in the same tab, and the original page will work if I load it in another tab. I use activeTab permission.
How can I debug this? The Chrome tutorial http://developer.chrome.com/extensions/tut_debugging.html only mentions a popup, which I do not have. (I right-click the icon and "Inspect popup" is not visible.)
I have tried plain old F12/sources, but I don't see my extension there, even when it works.
I am on localhost and the extension is not packaged. I am still working in developer mode.
The extension does not show up in developer tools>Sources>Content scripts, maybe because it isn't packaged. I can see the content script from another regular extension.
To see mine I:
Wrote the following as the first line in my script:
debugger;
Before pressing the extension icon, I bring up the developer tools: F12
Now, when I click the extension icon, my script opens under sources/program. It does not do this if the developer tools is not open.
I want to switch between two firefox profiles online using bat file without closing my firefox. Is it possible? thanx in advance.
Profiles says:
"Firefox saves your personal information such as bookmarks, passwords, and user preferences in a set of files called your profile, which is stored in a separate location from the Firefox program files."
I don't think that is possible. Firefox reads files from the profile directory at start-up and writes them back when quit. If you would do it by hand you still need to tell Firefox to read the initialization files again. This could mess up all the profiles at the end I guess.
Why would that make sense? What do you want to do w/ it?
You can't switch profiles without restarting Firefox.
However, you can run several copies of FF with different profiles simultaneously. I don't know what is your goal, but maybe this can help?
Command line:
firefox -P <profile-name> -no-remote
Be careful not to run more than one instance of Firefox with same profile. The -no-remote switch prevents a Firefox instance from knowing about other instances. If multiple instances access the same profile simultaneously, the profile can be corrupted.