Open Bug 618664 Opened 14 years ago Updated 2 years ago

nsGlobalWindow::Close() warning origin

Categories

(Core :: General, defect)

defect

Tracking

()

People

(Reporter: msucan, Unassigned)

References

Details

We need to decide on a better approach in reporting the warning that tells the user the window.close() operation is not allowed. As Boris pointed out in bug 606498 comment #48: with the new patch, it will report the window id and URI of the window that failed to close, not of the code that was trying to do the closing.

We could change the code to use nsIJSContextStack to get the current JSContext, to find the window ID, script file name, line number, etc. The warning report would then have the origin of the code that tries to do the closing.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.