Beginning on October 25th, 2016, Persona will no longer be an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 737612 - Range.insertNode() on a detached text node throws nonstandard exception type
: Range.insertNode() on a detached text node throws nonstandard exception type
Product: Core
Classification: Components
Component: DOM: Core & HTML (show other bugs)
: Trunk
: All All
: -- minor (vote)
: mozilla14
Assigned To: Aryeh Gregor (:ayg) (away until October 25)
: Jet Villegas (:jet)
Depends on:
  Show dependency treegraph
Reported: 2012-03-20 13:25 PDT by Aryeh Gregor (:ayg) (away until October 25)
Modified: 2013-04-04 13:53 PDT (History)
2 users (show)
ayg: in‑testsuite+
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Patch v1 (2.66 KB, patch)
2012-03-20 13:32 PDT, Aryeh Gregor (:ayg) (away until October 25)
bugs: review+
Details | Diff | Splinter Review

Description Aryeh Gregor (:ayg) (away until October 25) 2012-03-20 13:25:59 PDT

data:text/html,<!DOCTYPE html>
var text = document.createTextNode("abc");
var range = document.createRange();
range.setStart(text, 1);
try {
} catch(e) {
document.documentElement.textContent = e

Gecko outputs

[Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIDOMRange.insertNode]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: :: <TOP_LEVEL> :: line 7" data: no]

Chrome 19 dev is a HIERARCHY_REQUEST_ERR.  Opera Next 12.00 alpha is BAD_BOUNDARYPOINTS_ERR (which no longer exists).  IE10 Developer Preview actually succeeds (?!?).  The spec goes like Chrome:

If start node is a Comment node, or a Text node whose parent is null, throw an "HierarchyRequestError" exception and terminate these steps.

This causes failures here:
Comment 1 Aryeh Gregor (:ayg) (away until October 25) 2012-03-20 13:32:41 PDT
Created attachment 607689 [details] [diff] [review]
Patch v1
Comment 2 Mozilla RelEng Bot 2012-03-20 13:37:17 PDT
Autoland Patchset:
	Patches: 607689
	Branch: mozilla-central => try
Try run started, revision 584e5d522b3e. To cancel or monitor the job, see:
Comment 3 Mozilla RelEng Bot 2012-03-21 06:53:54 PDT
Try run for 584e5d522b3e is complete.
Detailed breakdown of the results available here:
Results (out of 179 total builds):
    exception: 3
    success: 143
    warnings: 23
    failure: 10
Builds (or logs if builds failed) available at:
 Timed out after 12 hours without completing.
Comment 4 Aryeh Gregor (:ayg) (away until October 25) 2012-03-21 09:30:55 PDT
Comment 5 Marco Bonardo [::mak] 2012-03-22 06:26:56 PDT

Note You need to log in before you can comment on or make changes to this bug.