Skip to content
This repository was archived by the owner on Jun 15, 2021. It is now read-only.
This repository was archived by the owner on Jun 15, 2021. It is now read-only.

Strange NS_ERROR_UNEXPECTED in CommandPatch.prototype.queryState #208

@valberg

Description

@valberg

I wrote this to the maillist, but decided to make it into an actual issue since I've narrowed the problem a bit more down.

I'm using Firefox 30.0 on Mac OS X, and sometimes I get this strange error in the console: NS_ERROR_UNEXPECTED: and nothing more.

It says that it happens at line 3669 in scribe.js:

CommandPatch.prototype.queryState = function () {
  return document.queryCommandState(this.commandName);  // line 3669
};

I've figured out that the error can be "omitted" with the following:

CommandPatch.prototype.queryState = function () {
  if( this.commandName == 'insertUnorderedList' || this.commandName == 'insertOrderedList') {
      return false
  }
  return document.queryCommandState(this.commandName);
};

So somehow the list commands are forcing Firefox to throw an NS_ERROR_UNEXPECTED. Sometimes it's even NS_ERROR_FAILURE. But both cases have no more information associated.

Refrence to errors in Firefox: https://un5j2j18xhuv2emkwgjjkgb49yug.julianrbryant.com/en-US/docs/Table_Of_Errors

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions