Fix error in firefox: 'extensionForCurrentObject is not a function'