Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8389387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:42:48+00:00 2026-06-09T18:42:48+00:00

While attempting to port the extension from manifest version 1 to version 2, this

  • 0

While attempting to port the extension from manifest version 1 to version 2, this appeared:

Port error: Could not establish connection. Receiving end does not
exist. chromeHidden.Port.dispatchOnDisconnect
miscellaneous_bindings:232

This appeared in Console in developer tools. I have no idea where to start fixing this cause i don’t know what’s causing it to begin with..

what can cause this problem? and is there someway to know exactly what’s causing it?
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:42:49+00:00Added an answer on June 9, 2026 at 6:42 pm

    The most likely cause of failure is the activation of the default Content security policy when "manifest_version": 2 is active. A consequence of the default CSP is that inline JavaScript will not be executed.

    <script>chrome.extension.onConnect.addListener(...);</script>
    

    The previous line is an example of inline code. The solution is to place the script in an external JS file:

    <script src="script.js"><!--original contents moved to script.js--></script>
    

    Background pages/scripts

    When you were using background pages, do not use:

    • "background_page": "background.htm", or
    • "background": {"page": "background.htm"},
      but
    • "background": {"scripts": ["background.js"]}
      where background.js contains the script which was initially placed within the <script> tags at background.htm.

    Inline event listeners

    Browser action popups, app launchers, option pages, etc. often contain inline event listeners. By the CSP, these are also forbidden.

    <button onclick="test();"> does not work. The solution is to add the event in an external JS file using addEventListener. Have a look at the documentation or this answer for an example.

    Other

    • JavaScript creation from strings (eval, Function, setTimeout, …) is forbidden. Rewrite your code to not create code from strings, or use the sandbox manifest option (introduced in Chrome 21). Since Chrome 22, the unsafe-eval CSP policy can be used to lift this restriction.
    • JSONP does not work, because external (JavaScript) resources cannot be loaded in the extension’s context. Use an ordinary XMLHttpRequest instead of JSONP (more information + example).
      The only exception is when the resource is fetched over httpsnot http. The CSP can be adjusted to introduce this exception – see documentation:

      "content_security_policy": "script-src 'self' https://example.com; object-src 'self'",
      

    Official documentation

    The official documentation also provides an excellent explanation on the topic, see “Tutorial: Migrate to Manifest V2”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While attempting to link with QT 4.5 release, I run into this error message
I'm not sure I understand the error messages I'm getting while attempting to deploy
Usually one comes across this problem in python3.0 while attempting a split() method on
While attempting to cross-compile ICU using android-ndk-r7 in Linux, the following error occurs after
I receive the following exception while attempting to log an error using Enterprise Library
while attempting to run rake, I run into the following error: heroku rake db:migrate
I have been having trouble while attempting to use the nextLine() method from java.util.Scanner.
so I added all the jars from jMock 2.5.1 While attempting to follow http://www.ibm.com/developerworks/opensource/library/os-eclipse-rmock/index.html
Note : No MFC No ATL Using Visual C++ While attempting a connection between
I'm rather stuck with a problem I found while attempting to port a package

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.