[Pkg-mozext-commits] [firebug] 05/18: #8003 NS_ERROR_IN_PROGRESS error in netCacheReader.js
David Prévot
taffit at moszumanska.debian.org
Thu Jun 9 01:36:39 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firebug.
commit a8fb36863a4b341d0153202199ca9f3edecd8098
Author: Jan Odvarko <odvarko at gmail.com>
Date: Mon May 9 13:34:28 2016 +0200
#8003 NS_ERROR_IN_PROGRESS error in netCacheReader.js
---
extension/content/firebug/net/netCacheReader.js | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/extension/content/firebug/net/netCacheReader.js b/extension/content/firebug/net/netCacheReader.js
index b87be2a..f0549ec 100644
--- a/extension/content/firebug/net/netCacheReader.js
+++ b/extension/content/firebug/net/netCacheReader.js
@@ -279,8 +279,16 @@ function onDescriptorAvailable(netProgress, file, descriptor)
{
Trace.sysout("netCacheReader.onDescriptorAvailable; file.href: " + file.href, descriptor);
+ // Avoid error message in the Console panel.
+ // See also: https://github.com/firebug/firebug/issues/8003
+ let descriptorDataSize = 0;
+ try {
+ descriptorDataSize = descriptor.dataSize;
+ } catch (err) {
+ }
+
if (file.size <= 0)
- file.size = descriptor.dataSize;
+ file.size = descriptorDataSize;
if (descriptor.lastModified && descriptor.lastFetched &&
descriptor.lastModified < Math.floor(file.startTime/1000))
@@ -304,7 +312,7 @@ function onDescriptorAvailable(netProgress, file, descriptor)
},
{
name: "Data Size",
- value: descriptor.dataSize
+ value: descriptorDataSize
},
{
name: "Fetch Count",
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
More information about the Pkg-mozext-commits
mailing list