author JW Wang <jwwang@mozilla.com>
Mon, 09 Jan 2017 13:06:55 +0800
changeset 458396 06f59c551e95e929c9e8c667b4082fecfeee8f3b
parent 92949 42c372c2f7493b79f79c58150b5531d23e74ca61
child 604877 7529213e33752241cbc645f8d206c283959e074f
permissions -rw-r--r--
Bug 1329110. Part 6 - remove StateObject::HandleWaitingForData(). Since DecodingState is the only one that overrides the function, we will let it just override HandleWaitingFor{Audio,Video}. We also reduce the code complexity because it is hard to trace the code when one virtual function calls another virtual function. MozReview-Commit-ID: AdLXpDgvOyx

<!DOCTYPE html>
    <div style="position: absolute">
      <iframe src="data:text/html,<body contenteditable>foo</body>"></iframe>
    <script type="text/javascript">
      onload = function() {
        var iframe = document.querySelector("iframe");
        var win = iframe.contentWindow;
        var body = win.document.body;
        var sel = win.getSelection();
        sel.collapse(body.firstChild, 0);