Closed Bug 457972 Opened 16 years ago Closed 7 years ago

Delete redundant type checks in DOMClassInfo

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

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.
This code is long gone, with Navigator and Location moved to WebIDL.
Status: NEW → RESOLVED
Closed: 7 years ago
Depends on: 832014, 838146
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.