Comments (12)
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.
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.
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)
from webextensions-examples.
For context, his "bug report" was cross-posted to https://bugzilla.mozilla.org/show_bug.cgi?id=1850464
from webextensions-examples.
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:
- install the borderify addon
- on Firefox about:addons page, select the "Manage" menu item for borderify addon.
- 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. - 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.
- Did you make any changes to the Borderify source code?
- If you try another sample, e.g. Beastify, does that work?
from webextensions-examples.
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.
from webextensions-examples.
To exclude influence of customized settings, tomorrow, I will test this in a clean VM.
from webextensions-examples.
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.
and this can be reproduced in a clean VM.
steps:
- download ubuntu-22.04.3-desktop-amd64.iso from ubuntu.com
- 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)
- install Ubuntu on the partition1.
- login into Ubuntu and in Terminal, run:
sudo apt update; sudo apt upgrade; - use gparted to format partition2 to NTFS. (if gparted is not installed, run: sudo apt install gparted )
sudo gparted /dev/sda - 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). - git clone code into partition2. run:
cd /windows/c/; git clone https://github.com/mdn/webextensions-examples.git - In Firefox, try to install the debug add-on borderify, then, the add-on is NOT work. same problem as my first post.
- copy the borderify code to $HOME, run:
cp -R webextensions-examples ~ - 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.
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)
- browser is not defined HOT 2
- Colors !?
- Manifest v3 examples needed HOT 6
- Favourite Color bug manifest HOT 11
- Native messaging example doesn't pong after a while HOT 3
- browser is not defined in firefox HOT 3
- Can't get response in Ubuntu HOT 10
- Python Native Messaging host does not process 1MB input HOT 11
- Image is not loading by innerHTML in the content-script-register HOT 3
- Create an example of getting select text to a variable HOT 2
- Please add example for "Paste text from clipboard" HOT 5
- examples.json should include a way to list significant manifest keys
- Update eslint, fix linting errors and integrate in CI
- MV3 example for getting data from page/content script/activeTab context into action / popup HOT 3
- Broken root-cert-stats due to var -> let change HOT 6
- native-messaging app example: provide non-contrived example for each platform HOT 1
- Update root-cert-stats to use runtime.sendMessage HOT 3
- zip does not contain a valid manifest HOT 2
- Examples disabled when run via web-ext or from folder (applyCSS, borderify) HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webextensions-examples.