Closed Bug 444422 Opened 18 years ago Closed 2 years ago

hard-coded add-on guid prevents portability

Categories

(Toolkit Graveyard :: Data Collection/Metrics, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: alex, Unassigned)

Details

From Sergey Novikov @ Google: In src/nsProfileCollector.cpp in function nsProfileCollector::LogInstall which collects data about currently installed metrics extension. We had to add workaround in place where extension finds itself using it's extension id. The workaround is needed as the toolbar doesn't install separate metrics extension. line 292: nsresult rv = em->GetItemForID(NS_LITERAL_STRING("metrics@mozilla.org"), getter_AddRefs(item)); When we run this code in the context of the toolbar we get exception because of trying to dereference item which is NULL. The simplest workaround is to check if item is NULL.
OS: Mac OS X → All
Hardware: PC → All
Product: Toolkit → Toolkit Graveyard
Depends on: 647741
No longer depends on: 647741
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.