mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 494027 - Crash @NS_NotifyPluginCall on tinderbox shortly after plugin tests run. r+sr=jst@mozilla.org
This commit is contained in:
parent
198f1fc81c
commit
0f242d70db
@ -183,6 +183,9 @@ void NS_NotifyPluginCall(PRIntervalTime startTime)
|
||||
PRIntervalTime endTime = PR_IntervalNow() - startTime;
|
||||
nsCOMPtr<nsIObserverService> notifyUIService =
|
||||
do_GetService("@mozilla.org/observer-service;1");
|
||||
if (!notifyUIService)
|
||||
return;
|
||||
|
||||
float runTimeInSeconds = float(endTime) / PR_TicksPerSecond();
|
||||
nsAutoString runTimeString;
|
||||
runTimeString.AppendFloat(runTimeInSeconds);
|
||||
|
Loading…
x
Reference in New Issue
Block a user