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

  • Home
  • SEARCH
  • 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 8595209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:22:53+00:00 2026-06-12T00:22:53+00:00

I am trying to call sessionStorage in my addon (here is the demo https://builder.addons.mozilla.org/package/154290/latest/

  • 0

I am trying to call sessionStorage in my addon (here is the demo https://builder.addons.mozilla.org/package/154290/latest/), but nothing gets stored. Any tips?

 var menuItem = contextMenu.Item({
    label: "Check with Proofread Bot",
    context: contextMenu.SelectionContext(),
    contentScript: 'self.on("click", function () {' +
               '  var text = window.getSelection().toString();' +
                '  sessionStorage.setItem("proofread_bot_chrome", text);' +
                '  self.postMessage(text);' +
                        '});',
    onMessage: function(text) {
        tabs.open("http://proofreadbot.com");                    }                        
    }) ;
  • 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-12T00:22:54+00:00Added an answer on June 12, 2026 at 12:22 am

    sessionStorage and localStorage are never shared across different domains. That also applies to content scripts injected into pages from different domains, content scripts run with the privileges of these pages and only have access to the same sessionStorage as the pages themselves. You need to use proper messaging as explained in the answer to your other question.

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

Sidebar

Related Questions

I'm trying to call a user-defined MATLAB function from a C application, but I'm
I am trying to call a method on this time : 00:01 AM here
Im trying to call image_tag image.jpg from devise Mailer template but since its an
Im trying to call a function dynamically, using call_user_func_array, but the issue I'm facing
Im trying to call showUIAlertView from myMethod but get an exception: Terminating app due
Hi im trying call this function from an element, but the element id is
I'm trying call qsort in Cython with a custom compare function but I don't
I'm trying to call the SQL statement below but get the following error: System.Data.SqlClient.SqlException:
I am Trying to call an Activity from Default activity but when trigger the
i trying to call a COM-Object which is described here Is it possible to

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.