Closed
Bug 890725
Opened 12 years ago
Closed 12 years ago
annotation service fails for some URIs
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: sepandparhami+mozilla, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0 (Beta/Release)
Build ID: 20130624104218
Steps to reproduce:
Can be run in browser scratchpad:
let annotationService = Components.classes["@mozilla.org/browser/annotation-service;1"].getService(Components.interfaces.nsIAnnotationService);
let ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
let annotationName = "something/something";
let uriOne = ioService.newURI("https://www.google.com/", null, null);
let uriTwo = ioService.newURI("http://www.youtube.com/", null, null);
let uriThree = ioService.newURI("https://www.youtube.com/", null, null);
annotationService.setPageAnnotation(uriOne, annotationName, true, 0, annotationService.EXPIRE_SESSION);
annotationService.setPageAnnotation(uriTwo, annotationName, true, 0, annotationService.EXPIRE_SESSION);
annotationService.setPageAnnotation(uriThree, annotationName, true, 0, annotationService.EXPIRE_SESSION);
Actual results:
The last setPageAnnotation (for https://www.youtube.com/") always fails, throwing NS_ERROR_ILLEGAL_VALUE. The first two always work. Other URIs can fail too. From what I have tested, it only fails for some URIs where the uri scheme is "https://".
Expected results:
Annotations should have been added for all URIs.
| Reporter | ||
Comment 1•12 years ago
|
||
At some point, "https://www.youtube.com" started working.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•