gecko-dev/dom/ipc/tests/JSWindowActor
Kris Maglione e01b754b29 Bug 1672263: Use ThrowInvalidStateError with useful messages in JSWindowActorChild. r=nika
Currently, when JS callers try to access certain JSWindowActors before an
actor is initialized, or after it's destroyed, we throw a generic
`NS_ERROR_INVALID_STATE_ERROR` exception without any useful information about
the failure.

This patch changes that to use `ThrowInvalidStateError`, with a message
including the property name, the actor name, and details about whether the
error occurred because the actor has not been initialized or because it has
already been destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D96628
2020-11-10 22:04:49 +00:00
..
audio.ogg
browser.ini Bug 1669961: Return null from `.contentWindow` when inner window is inactive. r=nika 2020-11-10 20:35:04 +00:00
browser_contentWindow.js Bug 1669961: Return null from `.contentWindow` when inner window is inactive. r=nika 2020-11-10 20:35:04 +00:00
browser_crash_report.js
browser_destroy_callbacks.js Bug 1672263: Use ThrowInvalidStateError with useful messages in JSWindowActorChild. r=nika 2020-11-10 22:04:49 +00:00
browser_event_listener.js
browser_getActor.js
browser_getActor_filter.js Bug 1676632 - Throw more descriptive actor errors. r=smaug,nika 2020-11-16 21:18:49 +00:00
browser_observer_notification.js
browser_process_childid.js
browser_registerWindowActor.js
browser_sendAsyncMessage.js
browser_sendQuery.js Bug 1672263: Use ThrowInvalidStateError with useful messages in JSWindowActorChild. r=nika 2020-11-10 22:04:49 +00:00
file_mediaPlayback.html
head.js