Backed out changeset b462e7b742d8 (bug 1908261) for causing multiple reftest failures...
[gecko.git] / dom / base / nsIObjectLoadingContent.idl
bloba397699c0bda411720e483e81b5c6e5ef1133ad9
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsISupports.idl"
8 interface nsIChannel;
9 interface nsIRequest;
10 interface nsIFrame;
11 interface nsIURI;
13 webidl BrowsingContext;
15 /**
16 * This interface represents a content node that loads objects.
18 * Please make sure to update the MozObjectLoadingContent WebIDL
19 * mixin to mirror this interface when changing it.
22 [scriptable, builtinclass, uuid(2eb3195e-3eea-4083-bb1d-d2d70fa35ccb)]
23 interface nsIObjectLoadingContent : nsISupports
25 /**
26 * See notes in nsObjectLoadingContent.h
28 const unsigned long TYPE_LOADING = 0;
29 const unsigned long TYPE_DOCUMENT = 1;
30 const unsigned long TYPE_FALLBACK = 2;
32 /**
33 * The actual mime type (the one we got back from the network
34 * request) for the element.
36 readonly attribute ACString actualType;
38 /**
39 * Gets the type of the content that's currently loaded. See
40 * the constants above for the list of possible values.
42 readonly attribute unsigned long displayedType;
44 /**
45 * The URL of the data/src loaded in the object. This may be null (i.e.
46 * an <embed> with no src).
48 readonly attribute nsIURI srcURI;
50 /**
51 * Switch the tag into the TYPE_DOCUMENT state, and returns the
52 * BrowsingContext which the load should complete in.
54 [noscript] BrowsingContext upgradeLoadToDocument(in nsIChannel channel);