Open Bug 157215 Opened 22 years ago Updated 2 years ago

LoadURI should raise a specific exception when CheckContentLoadPolicy rejects loading

Categories

(Core :: DOM: Navigation, defect)

defect

Tracking

()

People

(Reporter: timwatt, Unassigned)

References

(Blocks 1 open bug, )

Details

You can see at
http://lxr.mozilla.org/seamonkey/source/docshell/base/nsDocShell.cpp#4653
that currently, a generic NS_ERROR_FAILURE exception is raised when the security
manager doesn't want to load the content. This bug is to pick a better exception
so users of the docshell can tell why the URL wasn't loaded in this case.

It may also be worth paying attention to exceptions raised by
CheckContentLoadPolicy, but that may be worth a separate bug.

This change matters because clients may want to react differently if a URL is
blocked by security versus being unloadable for other reasons.

Pointless details: 2002-07-11 17:42 (GMT-0400), CVS trunk build,
architecture-independant
This blocks bug 155246 because it wants to know when loading failed (right now,
at least, just to trigger an assertion)
Blocks: 155246
Assignee: adamlock → nobody
QA Contact: adamlock → docshell
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.