Bug 721398 - moz-page-thumb protocol should not access from a web page; r=mak

This commit is contained in:
Tim Taubert
2012-01-26 18:28:41 +01:00
parent 85bd4646aa
commit bebde53496
2 changed files with 5 additions and 4 deletions

View File

@@ -18,9 +18,10 @@ EXTRA_PP_JS_MODULES = \
PageThumbs.jsm \
$(NULL)
ifdef ENABLE_TESTS
DIRS += test
endif
# FIXME Bug 721422 - Re-enable tests and make them work with URI_DANGEROUS_TO_LOAD
#ifdef ENABLE_TESTS
# DIRS += test
#endif
include $(topsrcdir)/config/rules.mk

View File

@@ -52,7 +52,7 @@ Protocol.prototype = {
* The flags specific to this protocol implementation.
*/
get protocolFlags() {
return Ci.nsIProtocolHandler.URI_IS_UI_RESOURCE |
return Ci.nsIProtocolHandler.URI_DANGEROUS_TO_LOAD |
Ci.nsIProtocolHandler.URI_NORELATIVE |
Ci.nsIProtocolHandler.URI_NOAUTH;
},