modules/libjar/nsIJARChannel.idl
author Boris Zbarsky <bzbarsky@mit.edu>
Fri, 04 Jan 2013 12:02:14 -0500
changeset 127489 ee0e5b1c16403356bf3d542a084a8fe73350a36c
parent 104256 f3ada8025e75bdc13b8c61ac19a92eedc125aebd
child 170347 52a8082a281f16affbbdf79f081df098efe580cc
permissions -rw-r--r--
Bug 824823 part 8. Convert nsTextNode to WebIDL. r=peterv

/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsIChannel.idl"

[scriptable, uuid(6e6cc56d-51eb-4299-a795-dcfd1229ab3d)]
interface nsIJARChannel : nsIChannel 
{
    /**
     * Returns TRUE if the JAR file is not safe (if the content type reported
     * by the server for a remote JAR is not of an expected type).  Scripting,
     * redirects, and plugins should be disabled when loading from this
     * channel.
     */
    readonly attribute boolean isUnsafe;

    /**
     * Forces the uri to be a app:// uri.
     */
    void setAppURI(in nsIURI uri);
};