Git Product home page Git Product logo

Comments (5)

piroor avatar piroor commented on June 13, 2024

Thanks! With the commit 816117e now such special placeholders are filled with blank string if the tab has no permission to execute content scripts.

from copy-selected-tabs-to-clipboard.

DavidMcRitchie avatar DavidMcRitchie commented on June 13, 2024

A bit disconcerting as Description is in the pages, and Google can see it, and you would have to put in an error indication for me to really notice immediately that output is not what I expect from some pages.

Does it have anything to do with data-react-helmet which appears both in TITLE and META.

Is there a configuration option that you know of to change that.
I have no idea what we're supposedly being protected from.

I used old Firefox and old Multiple Tab Handler to work on my web pages as my source is on another computer. I'm not really using new Firefox even though Extensions are coming back, but then learned Mozilla was dropping Bookmark Descriptions, so 56.0.2 on that computer, and the small computer I use the most is strictly for browsing and email.

Must have been very rough on you as a developer.

from copy-selected-tabs-to-clipboard.

DavidMcRitchie avatar DavidMcRitchie commented on June 13, 2024

Found: (have to figure out what it means and what to change)
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/content_security_policy

extensions.webextensions.base-content-security-policy
script-src 'self' https://* moz-extension: blob: filesystem: 'unsafe-eval' 'unsafe-inline'; object-src 'self' https://* moz-extension: blob: filesystem:;

extensions.webextensions.default-content-security-policy
script-src 'self'; object-src 'self';

from copy-selected-tabs-to-clipboard.

piroor avatar piroor commented on June 13, 2024

I like a blank text instead of error information when failed to get content text due to some reasons, but your idea is also reasonable, so I've added an option to do that with commits 80b36b8 and e68e432.

from copy-selected-tabs-to-clipboard.

piroor avatar piroor commented on June 13, 2024

Content Security Policy is not related to the problem failing to get content text. It just allows to load remote resources into pages (panels, popups, the options page, etc.) contained in this addon.

This addon uses a content script to fetch description of the page because it is not exposed via regular WebExtensions API. But content scripts cannot be executed on some special webpages including addons.mozilla.org due to security reasons.

from copy-selected-tabs-to-clipboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.