Closed Bug 1368436 Opened 8 years ago Closed 1 year ago

TinyMCE in content script: "Promise rejection value is a non-unwrappable cross-compartment wrapper"

Categories

(Core :: JavaScript Engine, defect, P3)

53 Branch
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: edjroot, Unassigned)

Details

(Keywords: triage-deferred)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Steps to reproduce: I'm developing a WebExtension that replaces an old editor on a certain page by TinyMCE. All my code does is create a `textarea` and initialize TinyMCE using the jQuery version (`$('textarea').tinymce({})`). The attached file contains basically the same code that is currently used on the actual extension, which works on Chrome but not on Firefox. Actual results: The editor is only partially "built" and is not functional. Apparently, the `iframe` is not fully generated. The Firefox console shows the following error message: "Promise rejection value is a non-unwrappable cross-compartment wrapper. (unknown)" whenever I scroll the page, and sometimes when I click any of the editor's buttons. Expected results: The editor should be functional and no error messages should appear. The expected behavior is observed on the latest version of Google Chrome.
The problem occurs on all websites, not just the one in the example.
Component: Untriaged → JavaScript Engine
Product: Firefox → Core
Keywords: triage-deferred
Priority: -- → P3
Severity: normal → S3
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: