Bug 721398 - moz-page-thumb protocol should not access from a web page; r=mak
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user