Closed
Bug 137199
Opened 22 years ago
Closed 22 years ago
Wrong error message if no opt-in/opt-out policy
Categories
(SeaMonkey :: General, defect)
SeaMonkey
General
Tracking
(Not tracked)
VERIFIED
INVALID
People
(Reporter: hjtoi-bugzilla, Assigned: harishd)
References
()
Details
(Whiteboard: [fix in hand])
Attachments
(1 file, 1 obsolete file)
15.47 KB,
patch
|
hjtoi-bugzilla
:
superreview+
|
Details | Diff | Splinter Review |
1. Go to URL & Open Privacy tab 2. Click Policy, click Summary, and notice they work ok 3. Click Opt-in/opt-out Expected results: message box saying no opt-in/opt-out page or something similar Actual results: message saying "cannot load privacy policy" This is really confusing because I just saw that policy loaded ok for the two other buttons. Is this needed for Policy as well, i.e. can that part be missing from the XML policy file?
Reporter | ||
Comment 1•22 years ago
|
||
Maybe "No opt-in/opt-out section in privacy policy" ?
Reporter | ||
Comment 3•22 years ago
|
||
Comment on attachment 79015 [details] [diff] [review] patch v1.1 I don't know JS but maybe "class" in the comment is wrong. Should it be called "object"? The comment on overrideMimeType() is misleading. It should say something like: without this XMLHttpRequest hangs on certain sites that serve HTML instead of XML. PolicyFetchFailed is unneeded, I think. If we can't find or load policy (errors) I think we can simply say cannot load policy. The errors are still misleading, I think. If there is no opt-in/opt-out section in the XML policy, we should not say cannot load. We should say something to the effect I proposed. Also if we found policy, doesn't the summary load always succeed? And is the human readable patr is missing we should also say so, and not say "cannot load".
Attachment #79015 -
Flags: needs-work+
Reporter | ||
Comment 4•22 years ago
|
||
Comment on attachment 79015 [details] [diff] [review] patch v1.1 And add newline to end of .properties file.
>I don't know JS but maybe "class" in the comment is wrong. Should it be called >"object"? nsPolicyViewer is almost treated like a class and hence I called it so. I'm not sure what's appropriate here. >PolicyFetchFailed is unneeded, I think. If we can't find or load policy >(errors) I think we can simply say cannot load policy. There is a subtle difference between find and load. If the error message says "Cannot find policy" then it means that we weren't able to locate the policy. If the message says "Cannot load policy" then it means that we've found the policy but for some reason the load failed. So, IMO, this distinction is necessary. Note: These error messages are temporary and are subject to change. >Also if we found policy, doesn't the summary load always succeed? What if the transformation failed for whatever reason? And what if the policy had a wrong namespace? So, just finding a policy does not guarantee a successful load. >And is the human readable patr is missing we should also say so, and not say >"cannot load". For a normal user it wouldn't matter. However, I've to reiterate that these error messages are subject to change.
Reporter | ||
Comment 6•22 years ago
|
||
If the policy has wrong namespace, we transform without error and you get the summary with headings only.
>If the policy has wrong namespace, we transform without error and you get the
>summary with headings only.
hmm...if that's the case then it should be a bug. For a wrong namespace we
should probably display an error ( "Cannot load policy for <URI>" ).
Attachment #79015 -
Attachment is obsolete: true
Reporter | ||
Comment 9•22 years ago
|
||
Comment on attachment 79465 [details] [diff] [review] patch v1.2 [ with Heikki's suggestions ] r/sr=heikki Add newline to properties file. This patch has a part of the help button fix, which you might not want to check in at this time. It does no harm, though. nsPolicyReference is also new change, from another bug?
Attachment #79465 -
Flags: superreview+
Assignee | ||
Comment 10•22 years ago
|
||
This bug is now covered in bugscape bug 13828. Marking this bug INVALID.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•