Fixes an issue: onResourceResponse may not called with Gecko 24