Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 227983 - www-client/mozilla-firefox-3.0: safebrowsing can't initialize properly if you build with USE flag "xulrunner"
Summary: www-client/mozilla-firefox-3.0: safebrowsing can't initialize properly if you...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-18 06:25 UTC by Jie Luo
Modified: 2008-06-19 08:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jie Luo 2008-06-18 06:25:44 UTC
After start firefox, you will get following error message from you Error Console.

Error: Cc['@mozilla.org/url-classifier/jslib;1'] is undefined
Source File: file:///usr/lib/mozilla-firefox/components/nsSafebrowsingApplication.js
Line: 665

Error: uncaught exception: [Exception... "Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]"  nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)"  location: "JS frame :: chrome://browser/content/safebrowsing/sb-loader.js :: anonymous :: line 31"  data: no]

This is because safebrowsing feature doesn't build by both xulrunner and mozilla-firefox, but safebrowsing is enabled by default in mozilla-firefox. When you build a stand along mozilla-firefox, safebrowsing is enabled by a script. But when you build mozilla-firefox against xulrunner, you should enable it manually. 

Add "mozconfig_annotate '' --enable-safe-browsing" to net-libs/xulrunner solve this problem.

Reproducible: Always

Steps to Reproduce:
1. build mozilla-firefox-3.0 with use flag `xulrunner'
2. run firefox with a new profile or -safe-mode
3. take a look at Error Console
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-18 09:33:00 UTC
In this context: Could you explain why there is a xulrunner use flag, while when disabled some xulrunner stuff is built within the firefox ebuild? Looks to me like xulrunner should be a mandatory dependency.
Comment 2 Jie Luo 2008-06-18 10:22:50 UTC
(In reply to comment #1)
> In this context: Could you explain why there is a xulrunner use flag, while
> when disabled some xulrunner stuff is built within the firefox ebuild? Looks to
> me like xulrunner should be a mandatory dependency.
> 

Yes, if you enable xulrunner use flag, firefox will build as a xulrunner app. If you disable it, all the staff will build inside firefox ebuild.
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2008-06-18 16:07:24 UTC
You sure that fixes it? I still see that warning here...
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2008-06-18 16:18:11 UTC
Oh wait, i get a different error :P Looks like related to the homepage.
Comment 5 Raúl Porcel (RETIRED) gentoo-dev 2008-06-18 16:20:04 UTC
Fixed, thanks
Comment 6 Sven 2008-06-18 23:12:15 UTC
???

What has been done to fix this? Do i need to re-emerge firefox?
I'd still like to build it with xulrunner use-flag enabled.
Comment 7 Sven 2008-06-18 23:15:10 UTC
xulrunner's ChangeLog mentioned this bug. It seems, i have to re-emerge xulrunner.
Comment 8 Ylosar Goer 2008-06-19 08:06:58 UTC
Maybe xulrunner should get a -r1 for this so people that have it installed already get a chance to be 'safebrowsing' enabled.