| Index: core/dom/URLUtils.idl
|
| diff --git a/core/dom/ResourceProgressEvent.idl b/core/dom/URLUtils.idl
|
| similarity index 66%
|
| copy from core/dom/ResourceProgressEvent.idl
|
| copy to core/dom/URLUtils.idl
|
| index 660b8b16105c9c679c70ecd0752df034cacb7716..b4c3e671fb2e62c51997aff6f4fd8c34947b5fe6 100644
|
| --- a/core/dom/ResourceProgressEvent.idl
|
| +++ b/core/dom/URLUtils.idl
|
| @@ -23,16 +23,29 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -// ResourceProgressEvent is a non-standard class that is simply a ProgressEvent
|
| -// with an additional read-only "url" property containing a string URL. This is
|
| -// used by the Chromium NaCl integration to indicate to which resource the
|
| -// event applies. This is useful because the NaCl integration will download
|
| -// (and translate in the case of PNaCl) multiple binary files. It is not
|
| -// constructable by web content at all, and so does not provide the usual
|
| -// EventInit pattern for Event construction.
|
| [
|
| NoInterfaceObject,
|
| -] interface ResourceProgressEvent : ProgressEvent {
|
| - readonly attribute DOMString url;
|
| + ImplementedAs=DOMURLUtils
|
| +] interface URLUtils {
|
| + // Special case null for backwards compat with HTMLAnchorElement href.
|
| + // https://code.google.com/p/chromium/issues/detail?id=304959
|
| + [TreatNullAs=NullString] attribute DOMString href;
|
| +
|
| + [NotEnumerable, ImplementedAs=href] DOMString toString();
|
| +
|
| + readonly attribute DOMString origin;
|
| + attribute DOMString protocol;
|
| + attribute DOMString username;
|
| + attribute DOMString password;
|
| + attribute DOMString host;
|
| + attribute DOMString hostname;
|
| + attribute DOMString port;
|
| + attribute DOMString pathname;
|
| + attribute DOMString search;
|
| +
|
| + // Not yet implemented.
|
| + // attribute URLQuery? query;
|
| +
|
| + attribute DOMString hash;
|
| };
|
|
|
|
|