LoadURI should raise a specific exception when CheckContentLoadPolicy rejects loading

NEW
Unassigned

Status

()

Core
Document Navigation
--
minor
16 years ago
9 years ago

People

(Reporter: Tim, Unassigned)

Tracking

(Blocks: 1 bug)

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

16 years ago
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
(Reporter)

Comment 1

16 years ago
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
You need to log in before you can comment on or make changes to this bug.