Closed Bug 306034 Opened 19 years ago Closed 19 years ago

extensions do not install, ExtensionManager:_finishOperations failure TypeError: datasource has no properties

Categories

(Toolkit :: Add-ons Manager, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: lee, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20050825 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20050825 Firefox/1.6a1

fresh build, new user, no existing profile.  download adblock extension.  it
appears to install normally, and prompts that it will be installed on firefox
restart.  upon restart, the extension is not installed.

Reproducible: Always

Steps to Reproduce:
create new user.  run firefox, install adblock extension manager.  restart
firefox.  observe this notice appears:  
*** ExtensionManager:_finishOperations - failure, catching exception - lineno:
5774 - file:
file:///usr/local/src/newfirefox/mozilla/dist/bin/components/nsExtensionManager.js
- TypeError: datasource has no properties

and the extension is not installed.
Actual Results:  
extension is not installed

Expected Results:  
install a usable extension
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050826
Firefox/1.6a1 ID:2005082601

No Adblock installing problems in WinXP, neither in trunk nor in branch.
This WFM.

Reporter, what happens with a pre-existing user? Also, does this happen on
subsequent launches of the app when you attempt to install an extension after
logging out logging back in, etc.? Are you doing anything out of the ordinary
(e.g. sudo, etc.)? Does it do this with all extensions or do some work?

The steps you provided specifically call out "create new user" which leads me to
believe it does work for pre-existing users. Can you please provide more details
and include details about when installing extensions work if they do under some
cases?
hi, same thing occurs for a pre-existing user.  the loss of extensions is what
prompted me to start with a fresh, clean profile and see what is going on.  it's
been happening for at least a few weeks, perhaps a month.

as root, i did adduser test.  from a new CLI terminal, i logged in as test and
started a new X session to ensure a sterile profile environment.

when i restart firefox again after adding the adblock extension and restarting,
the "ExtensionManager:_finishOperations - failure..." warning does not appear. 
restated, the "ExtensionManager" failure text only appears once, and it is the
first time running firefox after adding the extension.  subsequent restarts do
not make the warning appear.

i attempted to install 4 other extensions, tab preferences, duplicate tab,
NoScript, and CustomizeGoogle and they would not install, failing because the
browser was too new to be compatible.

when i cvs checkout the source, i use 
$ make -f client.mk checkout MOZ_CO_PROJECT=browser

when i cvs checkout mozilla, the NSPR_CO_TAG in client.mk is
NSPRPUB_PRE_4_2_CLIENT_BRANCH.

about:buildconfig

Build platform
target
i686-pc-linux-gnu

Build tools
Compiler 	Version 	Compiler flags
gcc 	gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) 	-Wall -W -Wno-unused
-Wpointer-arith -Wcast-align -Wno-long-long -pedantic -pthread -pipe
c++ 	gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) 	-fno-rtti
-fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wno-long-long -pedantic -fshort-wchar -pthread -pipe -I/usr/X11R6/include

Configure arguments
--enable-application=browser --enable-application=browser --disable-debug
--disable-tests --enable-official-branding --enable-xterm-updates --with-x
--with-pthreads '--enable-optimize=-O3 -mcpu=i686 -fexpensive-optimizations
-ffast-math -falign-functions=2 -falign-jumps=2 -falign-loops=2
-fomit-frame-pointer'

i have deleted the cvs repository locally and started from scratch, and still
have the same result.

is there anything i'm doing wrong?

many thanks!
The wonderful thing about UNIX (in this case of the Linux variety) is that it is
extremely configurable... the evil thing about it is extremely configurable.
This WFM on Linux, Win32, and Mac OS X using official builds. On Linux I did an
adduser, logged out, logged in as the new user, etc. and installed both adblock
and cookieculler.

As I see it this could either be a problem with your system, the build config,
or the build env. but the EM works for me.

Please try an official build and report back whether that works.
Reporter - do the official nightly trunk builds exhibit this same behavior?
yes, sorry about taking so long to respond.  i got distracted with the new
builds and neglected to report my findings.

it appears that the precompiled builds behave normally.  i'm going to have to
figure out what i'm doing wrong with my cvs builds.

thank you for your help  :)
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.