My personal and professional life

Showing posts with label Firefox. Show all posts
Showing posts with label Firefox. Show all posts

2019-12-05

Picture-in-picture mode for videos in Firefox 71

Firefox 71 arrived two days ago (see release notes) and I already absolutely love the new picture-in-picture mode for playing videos while you're browsing. It's a real deal for me, because this is the usual way I'm browsing today - having a video playing in the background and listening to it while surfing websites. The only drawback was that I had to switch to the video tab from time to time, when I'd like to actually see what's playing. This sometimes involved searching for the tab, because I usually have many tabs open in different groups (organized with Panorama View extension).
Now my online experience is much more pleasant, because I could just start a video, pop it up into a separate small window wherever on the screen I like and then continue surfing or do something else. Like this I could still keep an eye on the video even when I go out of Firefox. It's super useful even when I'm working on something, because I normally use many online resources. The feature is only available on Windows for now, but Mozilla promises to make it available for MacOS and Linux with the next release due in a month or so.
Thank you Mozilla for constantly making my online experience better!

2014-07-27

Using InfoNotary certificate on OmniKey CardMan 6121 under Slackware

Abstract

This small article describes the installation and configuration of OmniKey CardMan 6121 card read under Slackware, which enables the usage of InfoNotary's universal certificates for e-banking.

Getting started

Plug in the device to a USB port on your computer, after it's recognized by the kernel in the output of command lsusb you should find the following:

Bus 001 Device 028: ID 076b:6622 OmniKey AG CardMan 6121

Installation of device drivers

The manufacturer of the device offers binary drivers for the CardMan 6121 and other readers.

Manual installation

Download the driver archive and unpack it to a temporary directory, then run
the install script, for example in Slackware64 14.1:
# cd /tmp
# wget 'http://www.hidglobal.com/sites/hidglobal.com/files/drivers/ifdokccid_linux_x86_64-v4.0.5.4.tar.gz'
# tar -xvf ifdokccid_linux_x86_64-v4.0.5.4.tar.gz
# cd ifdokccid_linux_x86_64-v4.0.5.4
# ./install

Automatic installation

A package is provided by the SlackPack repositories for different Slackware versions called pcsc-omnikay, so alternatively, you could use slapt-get utility, configure SlackPack repositories and then just issue the following command:

# slapt-get --install pcsc-omnikey

Installation of necessary software

You need PC/SC Lite middleware for accessing the smart card using SCard API (PC/SC standard), for packages could be found in SlackPack repositories for different Slackware versions. You also need OpenSC tools and libraries for work with smart cards that are used by Firefox and Thunderbird. Packages could be found from the same place.

Manual installation

Download the packages into a temporary directory, obtain root privileges and then enter following commands to install them, for example in Slackware64 14.1:
# installpkg pcsc-lite-1.8.11-x86_64-1gds.txz
# installpkg opensc-0.14.0-x86_64-1gds.txz

Automatic installation

Alternatively, you could use slapt-get
utility, configure SlackPack repositories and then just issue the following command:

# slapt-get --install pcsc-lite opensc

The PC/SC Lite daemon from the package comes bundled with a startup/shutdown script, so you could start it by just issueing the following command:

# /etc/rc.d/rc.pcscd start

If you want the daemon to start automatically with the system, then just add it to local initialization script like this:

# echo '/etc/rc.d/rc.pcscd start' >> /etc/rc.d/rc.local

Configuration of Firefox

Now that the driver and necessary software are installed
it remains only to configure Firefox to be able to communicate with the card read. This is done in the following way:
  1. Open Edit -> Preferences;
  2. In Firefox Preferences window navigate to Advanced, then to tab Certificates;
  3. Click on Security devices button;
  4. In window Device Manager that opens click on button Load on the right;
  5. Enter "OpenSC PKCS#11 Module" in Module Name and select
    /usr/lib64/onepin-opensc-pkcs11.so file as Module filename, then
    click OK;

After the module is loaded the window manager would display the information about the reader:

See also

2013-10-29

Enable negotiatable authentication in Firefox

Well, I've spend some time investigating this, so I decided to share. I have tired to set up NTLM authentication in Firefox by Googling the web, but what was bugging me was that it was not working, while with IE there was no problem at all. Most of the sites suggested setting network.automatic-ntlm-auth.trusted-uris and I've entered the internal sites there. Even tried to enable it for all sites by setting the value "http://,https://", but still no success.
Today, I decided it's about time I find the solution, so I started by refreshing my knowledge from the Internet. Normally, for the authentication the web server sends HTTP 401 Unauthorized (or Authorization Required) response, so I've started investigating the HTTP headers (with the help of Live HTTP Headers extension) and I noticed that after it Firefox actually sends nothing for the internal host names that I have already set up in network.automatic-ntlm-auth.trusted-uris. Strange? Yes, until at some point I noticed the following:
Authorization: Negotiate ...
So, the web server was actually negotiating authentication mechanism, instead of asking for NTLM directly, but Firefox wasn't negotiating. This made me think that something is missing and I searched about other keys related to authentication into about:config. Thus, I found network.negotiate-auth.trusted-uris and once I set the internal site host names into this value everything come into place - Firefox was already negotiating the authorization, which turned out to be Kerberos actually.
So whenever you setup automatic authentication for internal sites consider setting both network.automatic-ntlm-auth.trusted-uris and network.negotiate-auth.trusted-uris, so it works for you, even if the authentication mechanism is negotiable.

2011-02-07

Remove old server certificates in Nokia N900 browser (Firefox)

On my personal web site I'm using self signed certificates for SSL. These are stored by the browser and everything is fine until the moment they're regenerated. However, when you regenerate them (in the way I do, I'm only changing validity) you could not longer access the site, because the browser still uses the old certificate. In the desktop version of Firefox, I'm just removing the old certificate from Tools -> Settings... -> Advanced -> Encryption -> button Certificates -> tab Servers. Unfortunately, Nokia N900 has user interface only for management of certificates of client authorities. Hopefully, the same user interface as in desktop Firefox is available in it's mobile version. You just have to:
  1. Open the browser;
  2. Type chrome://pippki/content/certManager.xul in the address bar;
  3. Click on "Servers" under "Your certificates" and delete the certificate of your server.
I haven't found exactly the same information on Internet, so I'm posting here for everyone with the same "problem" as me :-)

2006-07-19

5 mandatory Firefox extensions for the web developer

When it's about web development Mozilla's browsers have always been one step ahead. Recently Internet Explorer also added more possibilities for fine tuning of the applications by developers, but they first have to be adopted, because when for long you have been developing a technology aside from the commonly accepted standards then it's hard to make the ones using it to change their way of work. I have always strive to adhere to the commonly accepted standards, so my choice of Firefox as platform for development of web applications is not an accident. In this article, I'd like to present 5 extensions, which in addition to the wonderful browser can make your life easier.
I'd like to make in advance the arrangement that this is not a rating and the ordering is random.

LiveHTTPHeaders

This is one of the extensions, which I'm using the longest. HTTP protocol is of the type request - answer and this extensions allows you to see both. Much useful when tuning applications, because it shows what's transferred and what's received by the browser - headers, cookies, data. With this extensions you could easily find out what server software is serving a given site.

WebDeveloper

This extension is simply mandatory for everyone doing web development. The list of things, which it could do for you would require a separate article, so I'll mention only the most important. The extension adds a toolbar with instruments, which allow you to hide any part of a web page - pictures, forms and so on, to disable JavaScript, Java, cookies, CSS and so on, to highlight separate elements, to show hidden attributes, to resize the page and lots, lots more. It's the ideal solution for checking the accessibility of the page without pictures, styles or scripts, but this is just one of the things for which I'm using it. In addition to all this you could check your pages for compliance with the web standards.

Html Validator

This extension will allow you to check locally your HTML pages with the help of tidy tools of W3C. Through a comfortable user interface in View Source you'll be able to review consecutively the errors and warnings in the source, as well as the warnings for impacted accessibility. Really useful for those that have the willingness to follow the standards.

JavaScript Debugger (Venkman)

Long gone are the days, when to fix a problem in some twisted JavaScript you'd have to write alert("blah, blah") everywhere. The large credits for this go to Venkman - the JavaScript debugger. Irreplaceable extension for fine tuning some more complex JavaScript programs. Unfortunately, the current version (0.9.7) doesn't work well on my Firefox 1.5.0.4, but I have no doubts, that it's only a mater of time for this to change.

DOM Inspector

Although, this extensions comes by default with Firefox I highly recommend it to everyone that for one reason or another do not have it. With this extensions you'll be able to review the hierarchical structure of your HTML/XUL/XML source and to find the elements in the graphical representation of the page. Really useful for reviewing the styles applied to a given element, the size and position of the element and so on.
Those were mine 5 mandatory Firefox extensions for web developers, which I'm using almost every day. They are famous enough, but if you're unfamiliar with any of them then it's time to install and try it. Happy hacking ;-)