Closed
Bug 457972
Opened 16 years ago
Closed 7 years ago
Delete redundant type checks in DOMClassInfo
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
People
(Reporter: jorendorff, Assigned: peterv)
References
Details
nsLocationSH::PreCreate and nsNavigatorSH::PreCreate unnecessarily QI, checking to make sure the given object is actually of the right type. But this can't happen anymore.
There are other places where QI calls could be casts as well.
nsNavigatorSH::PreCreate says:
nsCOMPtr<nsIDOMNavigator> safeNav(do_QueryInterface(nativeObj));
if (!safeNav) {
// Oops, this wasn't really a navigator object. This can happen if someone
// tries to use our scriptable helper as a real object and tries to wrap
// it, see bug 319296.
return NS_OK;
}
The comment is wrong.
Comment 1•7 years ago
|
||
This code is long gone, with Navigator and Location moved to WebIDL.
You need to log in
before you can comment on or make changes to this bug.
Description
•