Bug 675287 - Make Document.documentURI readonly; r=sicking

This commit is contained in:
Ms2ger 2011-10-15 09:27:47 +02:00
parent 1a7c12e69a
commit 58b2ac48ed
5 changed files with 5 additions and 13 deletions

View File

@ -5966,14 +5966,6 @@ nsDocument::GetDocumentURI(nsAString& aDocumentURI)
return NS_OK;
}
NS_IMETHODIMP
nsDocument::SetDocumentURI(const nsAString& aDocumentURI)
{
// Not allowing this yet, need to think about security ramifications first.
// We use mDocumentURI to get principals for this document.
return NS_ERROR_NOT_IMPLEMENTED;
}
static void BlastSubtreeToPieces(nsINode *aNode);
PLDHashOperator

View File

@ -66,7 +66,7 @@ interface nsIDOMLocation;
* http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html
*/
[scriptable, uuid(CD4CD7C3-C688-4E50-9A72-4A00EABE66AB)]
[scriptable, uuid(2008bf7d-3232-4fc2-b904-8728847d458f)]
interface nsIDOMDocument : nsIDOMNode
{
readonly attribute nsIDOMDocumentType doctype;
@ -112,7 +112,7 @@ interface nsIDOMDocument : nsIDOMNode
attribute DOMString xmlVersion;
// raises(DOMException) on setting
// Introduced in DOM Level 3:
attribute DOMString documentURI;
readonly attribute DOMString documentURI;
// Introduced in DOM Level 3:
nsIDOMNode adoptNode(in nsIDOMNode source)
raises(DOMException);

View File

@ -38,7 +38,7 @@
#include "nsIDOMDocument.idl"
[scriptable, uuid(BB4D4D76-3802-4191-88E2-933BA609C4E1)]
[scriptable, uuid(93c58275-d73c-4d97-9713-11b6885e0dc8)]
interface nsIDOMXMLDocument : nsIDOMDocument
{
// DOM Level 3 Load & Save, DocumentLS

View File

@ -47,7 +47,7 @@
*/
interface nsISelection;
[scriptable, uuid(C94A5F14-F79F-4054-A93C-E8FF35623460)]
[scriptable, uuid(689890ab-9190-4acc-bf69-035a468dd9da)]
interface nsIDOMHTMLDocument : nsIDOMDocument
{
readonly attribute DOMString URL;

View File

@ -39,7 +39,7 @@
interface nsIDOMSVGSVGElement;
[scriptable, uuid(B3806DF6-7ED4-4426-84E6-545EEFE5AA9A)]
[scriptable, uuid(d3277c06-db27-4c96-b320-f1fc766fc8d5)]
interface nsIDOMSVGDocument : nsIDOMDocument
{
readonly attribute DOMString domain;