Change to Website Prevents Writing to Dialogue Box from Context Menu

This is for blogger.com (Blogspot).

In the past 2-3 days a tweak has been made to the site, and now my addon (BBCodeWebEx) is no longer writing to the dialogue window in WYSIWYG mode, though it still does in HTML editing mode, as well as in the title bar.

Looking at the console, I get this: (Ignore the moo, I need to edit that out)

If I do this in the HTML editor, I get:

selection content https  <empty string> content_script.js:200:12
moo content_script.js:223:12

And inspecting this text box, I get:
<textarea jsname="bqeLof" class="Fdco1c" style="display: none;"></textarea>

If I do this in the WYSIWYG window, I get:

Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
moz-extension://2ae82be5-6163-456b-9115-88560de9366c/context_menu.js:147
context_menu.js:147:30

where that line of the code is:

        `browser.tabs.sendMessage(tab.id, clickArg, {'frameId': info.frameId}); // send argument to content script for execution`

The HTML editing window on examination looks like:

<iframe frameborder="0" style="padding: 0px; background-color: white;" class="ZW3ZFc editable" id="nsoPic1772516791250"></iframe>

It’s been about 5 years since I’ve mucked about in JavaScript, so I’m clueless.

So, I have to admit, even after reading your extension description, I have no idea what it does.
You may want to improve your marketing materials :slight_smile: .

Since I don’t know what the extension does, it’s hard to tell what is going on for sure.

But checking the source code of the blogger page, I see the editor there is actually inside an iframe with no src attribute, so it’s actually showing about:blank page:

So, maybe all you need to do is make sure your code executes also in the about:blank pages, see for example “match_about_blank”:

What my addon does is allow people to use/create right click shortcuts for bbCode, Markup, HTML,

It’s a rewrite of a previous addon that went away when XUL was ended.

1 Like