Skip to content
Snippets Groups Projects
Commit ee274b74 authored by David Burns's avatar David Burns
Browse files

Bug 989370: Update Marionette Stale Element Reference exception to give a...

Bug 989370: Update Marionette Stale Element Reference exception to give a meaningful explanation; r=jgriffin
parent 4ac3ff6d
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,8 @@ ElementManager.prototype = {
!(XPCNativeWrapper(el).ownerDocument == wrappedWin.document) ||
(XPCNativeWrapper(el).compareDocumentPosition(wrappedWin.document.documentElement) &
DOCUMENT_POSITION_DISCONNECTED)) {
throw new ElementException("Stale element reference", 10, null);
throw new ElementException("The element reference is stale. Either the element " +
"is no longer attached to the DOM or the page has been refreshed.", 10, null);
}
return el;
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment