Closed Bug 884925 Opened 11 years ago Closed 10 years ago

Align navigator.battery with spec

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1047119

People

(Reporter: bzbarsky, Unassigned)

References

Details

Per spec, this never returns null, but we return null if we have no window or it has no docshell.
Hmm, maybe the DocShell check is there for no-longer-valid reasons...

Olli, what would happen if BindToOwner() is called with nullptr? I mean, according to the code, it will be handled correctly but what would be the side effects here?
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
Events would be handled on an event target which isn't bound to anything.
(I believe there won't be security bugs anymore after bholley's changes, but it used to lead to sg-crit problems)
Depends on: 838146
Depends on: 1047119
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.