Coder Social home page Coder Social logo

Comments (12)

github-actions avatar github-actions commented on June 11, 2024 1

It looks like this is your first issue. Welcome! 👋 One of the project maintainers will be with you as soon as possible. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct.

from webextensions-examples.

Rob--W avatar Rob--W commented on June 11, 2024

I cannot reproduce your problem (I haven't tried it on Ubuntu though).

The borderify extension works, as described at https://github.com/mdn/webextensions-examples/tree/main/borderify

Can you show the output of the global Browser Console (https://firefox-source-docs.mozilla.org/devtools-user/browser_console/index.html)?

from webextensions-examples.

stzdzyhs avatar stzdzyhs commented on June 11, 2024

Thanks! I started Firefox by command: "firefox -jsconsole", and noticed some existing error log printed as
the attached screen shot.
(Please note that at this time, the add-on borderify is not installed.
After install the add-on borderify by clicking "Load Temporary add-on", no any other log printed,
(I cleared the log before installation, after add-on installation, the output was still empty)
s1

from webextensions-examples.

Rob--W avatar Rob--W commented on June 11, 2024

For context, his "bug report" was cross-posted to https://bugzilla.mozilla.org/show_bug.cgi?id=1850464

from webextensions-examples.

stzdzyhs avatar stzdzyhs commented on June 11, 2024

Sorry cross-posted because I suspect this is also related to Firefox.
I tried the Firefox version 117, same problem.
and follow your suggestion, I tried to run borderify in "Private Window".
steps:

  1. install the borderify addon
  2. on Firefox about:addons page, select the "Manage" menu item for borderify addon.
  3. on the manage page, enable "Run in Private Windows" in the Details tab (there are 2 tabs, one is Details, the other is "Permissions" tab.
    Testing Result: the existing mozilla.org tab is not borderifed.
  4. I also tried enable "Access your data for sites in the *://mozilla.org domain" in the Permissions tab.
    same result.

the issue is : when the add-on installing, there is not option to allow it run in the Private Window or not, and
may be some issue on Reload, this add-on doesn'tt work when enable those options after it has installed.

from webextensions-examples.

Rob--W avatar Rob--W commented on June 11, 2024
  1. Did you make any changes to the Borderify source code?
  2. If you try another sample, e.g. Beastify, does that work?

from webextensions-examples.

stzdzyhs avatar stzdzyhs commented on June 11, 2024

Beastify is also not work.
and, I did not change code of Borderify or Beastify,
I noticed a msg when I clicking the "Extension" tool bar on the top right of Firefox,
it showed: Can not read or change data on this site"
Please see the screen shot.
222

from webextensions-examples.

stzdzyhs avatar stzdzyhs commented on June 11, 2024

To exclude influence of customized settings, tomorrow, I will test this in a clean VM.

from webextensions-examples.

stzdzyhs avatar stzdzyhs commented on June 11, 2024

At last, I found the cause of this issue is Snap (A tool to manage app installation on Ubuntu)
On Ubuntu 22.04, Firefox is installed by Snap, However, if app is installed by Snap, app will have some read/write problem to mounted NTFS partition. I also encountered read problem , maybe Inkscape (If I remember right) that can not read mounted NTFS partition, only the native EXT4 partition.

If I moved the borderify code to $HOME dir(that's a directory in EXT4 partition), it works fine ! in previous testing, the borderify code was stored in a NTFS parition.
I must clarify that this is not a problem of disk, I can display bordefify code without any error (linux cmd: cat), I also checked
that the NTFS parition is good.

from webextensions-examples.

stzdzyhs avatar stzdzyhs commented on June 11, 2024

and this can be reproduced in a clean VM.
steps:

  1. download ubuntu-22.04.3-desktop-amd64.iso from ubuntu.com
  2. when installing Ubuntu in VirtualBox, create 2 partitions, one is Ubuntu root partition(partition1, EXT4 format), the other is reserved for NTFS. (partition2, NTFS format)
  3. install Ubuntu on the partition1.
  4. login into Ubuntu and in Terminal, run:
    sudo apt update; sudo apt upgrade;
  5. use gparted to format partition2 to NTFS. (if gparted is not installed, run: sudo apt install gparted )
    sudo gparted /dev/sda
  6. mount the partition2 on mount-point: /windows/c/ , in Terminal, run:
    sudo mkdir -p /windows/c; sudo mount /dev/sda4 /windows/c/ -o uid=1000;
    the -o option is to allow the current user can full control the partition2. (the device name: /dev/sda4 can be different).
  7. git clone code into partition2. run:
    cd /windows/c/; git clone https://github.com/mdn/webextensions-examples.git
  8. In Firefox, try to install the debug add-on borderify, then, the add-on is NOT work. same problem as my first post.
  9. copy the borderify code to $HOME, run:
    cp -R webextensions-examples ~
  10. In Firefox, try to install the debug add-on borderify from $HOME/webextensions-examples/borderify/manifest.json,
    this time, it works fine !

from webextensions-examples.

achangofpace avatar achangofpace commented on June 11, 2024

At last, I found the cause of this issue is Snap (A tool to manage app installation on Ubuntu) On Ubuntu 22.04, Firefox is installed by Snap, However, if app is installed by Snap, app will have some read/write problem to mounted NTFS partition. I also encountered read problem , maybe Inkscape (If I remember right) that can not read mounted NTFS partition, only the native EXT4 partition.

If I moved the borderify code to $HOME dir(that's a directory in EXT4 partition), it works fine ! in previous testing, the borderify code was stored in a NTFS parition. I must clarify that this is not a problem of disk, I can display bordefify code without any error (linux cmd: cat), I also checked that the NTFS parition is good.

does this mean that there's no issue in this repo but rather in Snap?

from webextensions-examples.

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.