mozplugger/firefox does not open documents/apps within browser

Bug #778195 reported by Brad Jolly
70
This bug affects 14 people
Affects Status Importance Assigned to Milestone
mozplugger (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: mozplugger

Expected behavior:
PDF, DOC, and ODF files embedded in web pages should open within and fill the browser window.

What happened instead:
Documents embedded in web pages open outside the browser, but remain connected to the browser window such that closing the browser tab or window, closes the application even though it's outside the browser window.

Regardless of the document type, mozplugger/Firefox opens all file types outside the browser instead of inside a browser tab. When trying to open a pdf, doc, odf, etc., the application called opens outside Firefox instead of within Firefox. Firefox leaves a blank tab and the pdf, doc, odf, etc. file opens as a new window. Yet, the application instance remains connected to Firefox. If you close the blank tab, it closes the application instance even though it's outside the browser. Perhaps it's an issue with the "fill" call in mozpluggerrc?

This is in a clean install of Ubuntu 11.04. In fact, the problem has persisted through at least two clean installs of Natty. Clean Firefox profiles with no extensions or other modifications from default do not correct the behavior. The behavior was fine in 10.10 and other previous versions of Ubuntu. I've attached a screen shot showing a PDF file opened from a browser link designed to send the PDF inline, but opening evince outside Firefox.

Steps to reproduce:
Open a pdf, doc, or odf file from a link in a web page in Firefox with mozplugger installed.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: mozplugger 1.14.3-1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Thu May 5 17:11:28 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: mozplugger
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Brad Jolly (nisitiiapi) wrote :
Revision history for this message
Carlos Solís (csolisr) wrote :

The problem seemingly resides in the lack of any configuration file, either in /etc/mozpluggerrc or in the /etc/mozpluggerrc.d/ directory - i.e., no configuration file is generated whatsoever.

Revision history for this message
Brad Jolly (nisitiiapi) wrote :

I have a configuration file that generated as /etc/mozpluggerrc. At first, I thought configuration was the issue, but the lines all seemed correct. I have found that this behavior is not constant across all systems -- I have a netbook with Ubuntu 64-bit where mozplugger seems to be working fine. But, 2 other systems where I can't get it to open within Firefox, but just get a "related" tab and an new window.

Revision history for this message
Anders Peter (ap.ubuntu) wrote :

I have experienced the same problem (firefox 5, mozplugger 1.14.3-1 on Ubuntu 11.04 32bit).
In mozpluggerrc, changing the line

repeat noisy swallow(evince) fill needs_xembed: evince "$file"

to

repeat noisy swallow(evince) fill: evince "$file"

solved the issue. I have only tried this for pdf files, I don't know if it also works for other file types.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mozplugger (Ubuntu):
status: New → Confirmed
Revision history for this message
Alex Tasin (alextasin) wrote :

editing mozpluggerrc like in post #4 don't work for me

Revision history for this message
Brad Jolly (nisitiiapi) wrote :

Did not work for me, either. Interestingly, this bug does not appear on my netbook, just my desktop. But, the bug maintains across reinstalls. I even just had to reinstall from scratch due to a PSU failure and HDD corruption and the same problem behavior exists. But, the netbook has never had the problem. Both are running Ubuntu 11.04 x86_64 with almost exactly the same configurations. The desktop does have more Compiz plugins enabled, though. Given the other bugs related to Compiz settings, I wonder if this is related to a Compiz plugin? I may need to see if disabling any of the Compiz plugins resolves it.

Revision history for this message
Arno Teigseth (arnotixe) wrote :

@Brad - Compiz: I'm starting to think so too.
My tests:
Created a very simple embed-pdf-webpage.
Loaded it in Firefox. Inline PDF. Good. Reloaded the page in firefox and evince pops up in a new window =???
With many many reloads, it seems entirely random.

2)
Did "metacity --replace" to kill compiz and reloaded the test page MANY times. Always embedded.

I'm thinking compiz here, too, cause of these tests.

PDF-embed-testpage: http://arno.homelinux.org/files/pdf.html

Revision history for this message
Brubel Sabs (brubelsabs) wrote :

Editing mozpluggerrc (post #4) didn't solved the issue here either. Also I strongly suspect Unity to cause the problems since: When I do a "metacity --replace" running unity all my windows an Unity env is lost but then actually everything works as expected. Afterwards a "unity --replace" made it failing again...

I also read on launchpad that sometimes mozplugger is put into the [INVALID] section of firefox's pluginreg.dat. As mozplugger was not listed in that section on my Desktop, it didn't helped anything.

I also tested the issue on the 12.04 Daily live-cd from 13.02.2012 and there everything will work again, so I hope with upgrading to 12.04 it will work again.

Revision history for this message
Cedric (cedric-brandenbourger-deactivatedaccount-deactivatedaccount) wrote :

I'm having this issue too, mozplugger is not working well anymore. I'm not able to open pdf inside the browser.

Revision history for this message
Cedric (cedric-brandenbourger-deactivatedaccount-deactivatedaccount) wrote :

after deleting pluginreg.dat, mozplugger is working once
The second time mozplugger isn't working anymore

Revision history for this message
gianpic (gianpic) wrote :

I have the same problem.
I use Ubuntu 11.10 32 bit with Unity, and when I open a pdf in another tab, the file opens in external application istance.
When I open a pdf in the same tab, it opens but there isn't document toolbar.
I suppose it is caused by Unity that have integrated toolbars.

Revision history for this message
ttbek (ttbek) wrote :

I can also confirm this behaviour in Ubuntu 12.04.1 LTS. The document always opens, but it seems entirely random whether it will open within the browser or in its own window. I haven't been using mozplugger long enough to say the frequency of each, or if there is anything else associated with the behaviour, I'll post again if I notice anything that seems to trigger one behaviour over another. I am not running the Unity plugin (unchecked it in CCSM). If someone ever gets assigned to this I can gather any system info they think would help (just let me know how it it's something exotic to the everyday user).

Revision history for this message
kobyl (thierry-kobyleski) wrote :

It hapens also for me
Since I upgrade to

Ubuntu 12.04.2 LTS
Mozplugger 1.14.3-7

The pdf is open randomly inside and/or outside the browser window. There is sometimes an orphan not refreshed window opended outside the browser.

Prior to the upgrade it was working fine.

Revision history for this message
meamy (hans13evi) wrote :

hi
if you use Ubuntu 2D it works , so i guess its realy an untiy Problem

System :
Ubuntu 12.04.2 LTS
Mozplugger 1.14.3-7

Revision history for this message
jean (jeancarlo14) wrote :

Hello
I have the same problem. It worked fine the first time, but the second open pfd files on a new window.
What can we do to solve it?
I have Ubuntu 13.04
Mozpluggerrc 1.14.5

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.