Closed
Bug 509106
Opened 15 years ago
Closed 4 years ago
setPageAnnotation should not fail silently in private browsing mode
Categories
(Firefox :: Private Browsing, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: johnjbarton, Unassigned)
References
Details
(Whiteboard: [firebug-p3])
The annotation service silently fails if InPrivateBrowsingMode() returns true:
>> http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/src/nsAnnotationService.cpp#492
This caused Firebug to break silently when users set private browsing mode or never remember history.
In addition to not being documented, the behavior is "too sneaky" in my opinion. It is not something one expects when using a database-like service.
In my opinion the implementation should throw an exception if called in private browsing mode, so developers dont' get a surprise. If the see the exception they then learn to test the private browsing service before the call.
Reporter | ||
Updated•15 years ago
|
Whiteboard: [firebug-p3]
Comment 1•15 years ago
|
||
A question for Places folks: do callers of the annotation service inside our codebase expect it to throw, and correctly handle it, or do we need to make sure they are all exception safe?
Component: General → Private Browsing
Product: Core → Firefox
QA Contact: general → private.browsing
Comment 2•15 years ago
|
||
We probably need to check them all. I'm betting they don't expect it to throw.
Comment 3•4 years ago
|
||
setPageAnnotation is no longer, so it can't fail.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•