Firejail+Apparmor change profile from firejail-default - apparmor

i recently installed Firejail on my Ubuntu.
It says it has an Apparmor support, which i am already using.
After the setup of Firejail, i made some profile files in Firejail.
When i run firejail --apparmor firefox, Firejail loads the certain profile of firefox.
But Apparmor is loading the firejail-default profile.
Is there a way to tell apparmor to load my old already existing apparmor-profile of firefox instead of firejail-default.
So that both are loading their firefox profile, not only one of them.
Thanks :)

I'm afraid you have to patch it.

Related

Selenium 2.53.6 not working in Firefox 48.0.2

selenium.common.exceptions.WebDriverException: Message: Can't load the profile. Profile Dir: C:\Users\\AppData\Local\Temp\2\tmpc2_p3ubt If you specified a log_file in the FirefoxBinary constructor, check it for details.
When I try to run my Python script, Firefox is timing out. Does anyone have any suggestions on which versions i need to match?
Uninstall current firefox version than Download Firefox from this link https://ftp.mozilla.org/pub/firefox/releases/46.0.1/win64-EME-free/en-GB/Firefox%20Setup%2046.0.1.exe and then try again
Note : you have to uncheck automatic upgrade of firefox after install of 46 using below setps:
Goto Options
Goto advance
Under Firefox updates: Never check for updates (not recommended: security risk)
If you want to run on firefox >= 48 then you need to upgrade to selenium 3beta. https://seleniumhq.wordpress.com/2016/07/29/announcing-selenium-3-0-beta1/
It wont and its a known issue, Refer thread here
https://github.com/SeleniumHQ/selenium/issues/2559
Can't fix.
In Firefox 48, Mozilla requires extensions to be signed. They have
refused to sign Selenium's Firefox driver extension (webdriver.xpi).
Feel free to contact them and/or log an issue for them at
https://bugzilla.mozilla.org
The way forward now is to use GeckoDriver. Which is now the default
implementation used in 3.0-beta
This issue has been known as a long time coming, I highly recommend
pinning your automation to use Firefox 45 ESR until a release of using
GeckoDriver/marionette is stable enough for your tests.
Gecko Driver is a way forward.

How to force cache to be reused after app restart - GeckoFX / xulRunner

I'm new to embedded browsers, I admit, but I've got a GeckoFX v33 control working and hosted in a WPF application. Browsing and caching is working during a browsing session. However, upon application restart the cache is lost (or ignored) and all web assets are re-downloaded!
I'm quite dumbfounded why this isn't enabled by default, as it is a web browser control after all.
I've tried setting a custom profile path to an existing directory with write access:
var path = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "xulrunner");
Gecko.Xpcom.ProfileDirectory = System.IO.Path.Combine( Directory.GetCurrentDirectory(), "webcache");
Gecko.Xpcom.Initialize(path);
I've also tried setting various combinations of preferences i.e.
Gecko.GeckoPreferences.User.SetBoolPref("browser.cache.disk.enable",true);
Gecko.GeckoPreferences.User.SetIntPref("Browser.cache.disk.capacity", 50000);
However, it ALWAYS loads the web assets again on app restart!
Does anyone know the correct configuration to get geckoFX or xulRunner to look at the last cache on startup?
Thanks in advance!
OK, so I have narrowed down this bug to the geckofx-33.0 version.
Downgrading to geckofx-31.0-01 or lower fixed my problem and the cache is persisted (in the /cache2 folder, created automatically).
I tested the following combinations (OS: Windows):
GeckoFx 29.0-015.zip with xulRunner 29.0.1.en-US.win32.zip: Disk caching WORKS!
GeckoFx 31.0-01.zip with xulRunner 31.0.en-US.win32.zip: Disk caching WORKS!
GeckoFx 33.0-02.zip with xulRunner 33.0.2.en-US.win32.zip: Disk caching FAILS!
I was using the 33 version above (as it was the latest version!) and hence could not get disk caching to work. I definitely think this is a bug, as it is reproducible each time. I don't know if the bug lies in geckoFx or the xulRunner runtime, but I'll leave this up to the developers brains-trust to fix. I believe the cache API changed in v33.
So, for now I guess I'll just fallback to version 31 and wait for a fix.

How to disable the incompatible add-ons prompt at Firefox start?

I'm running some Robot Framework integration tests with Firefox 21.0 for Ubuntu. Recently my Firefox was updated and now it always pops up a prompt about incompatible add-ons when it starts. That's unacceptable, as then the tests cannot continue. The prompt looks like this:
There are several instructions about this on the web, but they are all either for some old version of Firefox or for some similar but not the same situation (like when Firefox asks whether to disable 3rd party plugins), or they require one to disable the compatibility check for each version of each add-on separately, so none of them seem to work. How do I get rid of the prompt for good?
Find the prefs.js file from your Firefox profile directory, then add this line into it:
user_pref("extensions.showMismatchUI", false);
Presto! No more warnings about incompatible add-ons.

Is there an alternative to the project Mozilla byob?

I want to ask you if there is an alternative to the project of Mozilla byob (build your own browser, shut down recently).
If someone made it something similar maybe with Firefox or another browser.
There is the CCK Wizard that allows various Firefox customizations. You don't get an actual Firefox build but an extension. One way to deploy that extension on a machine would be adding it to the Windows registry which will automatically install it into all Firefox profiles on the particular machine. One could also modify a Firefox installer to include that extension but that is somewhat more complicated.

Selenium RC 2.24.1 + Firefox 10.0.2 Profiles

After many tests with many old versions of Firefox (3.0.19, 3.6.28, 10.0.2) I have some trouble.
My last test was to launch "selenium-server-standalone-2.24.1.jar" with this args : -firefoxProfileTemplate C:\Users\XXXXXXXX\AppData\Roaming\Mozilla\Firefox\Profiles\g3c1ac71.Profile_FF_10
In this profile I have configured language to French but it doesn't work, my website is display in English. I also had an SSL exception but when selenium launch my site, Firefox give me an alert about selfsigned certificate
With version 3.0.19, profile was used but Firefox crashed because of Flash plugin, so I know I know use profile.
It's really hard to understand compatibilty between selenium and Firefox.
Is this a special step I forgot ?
Regard
After I reboot my computer, all work like a charm. Strange !

Resources