I know:
For a content script, I just need to reload the web page, and the content scripts will be reloaded
For add-ons loaded as a temporary add-on, there is a Reload button in about:debugging: a click on the button will cause the background scripts to be reloaded.
But, I want to reload background scripts for an installed Firefox WebExtensions to debug it. The Reload button for installed add-ons is disabled. I'm using Firefox v51.
I want to do this, because the part of script that I want to debug, is loaded at the startup of extension loading.
How can I do that?
You will need to go to about:addons (Ctrl-Shift-A or Cmd-Shift-A on OSX). On the "Extensions" tab (tabs are along the left) there will be a line for your extension. On that line will be a Disable button and a Remove button. If you click the Disable button, your add-on will be disabled. That button will then change to Enable. You can then click the Enable button to re-enable your add-on.
Performing that process will unload and reload your background scripts.
Related
Button which used to be blue and clickable is not clickable now:
In addition I can't launch the browser from context menu on the left (nothing happens):
Solution is to update the browser
I've used Vuejs and Framework7 in my PWA. I want to open a remote PDF file in my PWA and also it's important to me that users be able to back to my PWA after opening PDF. I did this using :
window.open(pdf_url, "_blank");
And it works fine for iOS > 12 and after opening pdf file there is an "OK" button for closing pdf.
But for example in iOS 11.3 there is no button and user has to use home button to close PWA.
I tried to solve problem using iframe but I can show only first page of the pdf.
Is there any way to fix this issue?
You can resolve this issue by doing some tricks (for any device without back button):
if you use iframe, you can set height manualy with overflow scroll, and I think this will resolve issue (dependence of style or lib dependency, so that may be not work).
you can add back button to your navbar, or Toolbar to let user click on it to back to previous page. (I prefer this solution).
you can render pdf in popup nested of normal html page, and then you can customize popup component by handling back button, or handling close by dropback overlay.
I use second and third point in real project and its work fine...
This is sample close button code used in popup:
'<p>'+ i18nextHelper.i18next.t('Exit From PDF') +'</p>'
Note: You can also customize height page for pdf page only, and add normal button bellow it, or by add absolute positioning button above PDF, but I think if you use second or third point will be best.
Good luck.
I am facing some issue with copy paste options which I have added to the TAdvColumnGrid.
I am using Standard Actions of VCL components for cut/copy/paste as TEditCut, TEditPaste, TEditCopy assigned to Popup menu.
With these actions I can get the standard copy/paste working.
but when I select a cell which is not in Edit mode and try to copy/cut/paste.
The commands on Popup is not working for the operations.
but the keyboard shortcuts are working fine. for the same cell.
Can anyone tell me what will be the problem?
Why Popup operations are working when the cell is in Edit mode
but not when it is in selection mode.
I have tried with overriding the clipboard operations like OnClipboardCopy etc...
but the clipboard operations are triggered only when the cell is not in edit mode.
I'm working on a Browser extension/add-on. We have it working in Chrome, so I'm trying to get it working in Firefox.
I've only gotten my extension to load in Firefox Developer Edition 49.0a2 (2016-07-25) (I'm not sure why it doesn't work normally, but have asked elsewhere).
My add-on uses a browser_action to add a button to the toolbar and open a pop-up, which opens fine, but once it's open, it seems impossible to close without quitting Firefox entirely.
In fact, it's so pernicious, the pop-up then appears over other applications!
Is this just a current bug in Firefox, or is there a way for me to fix this?
You might have accidentally clicked the "only close the popup on ESC" button in the firefox debugger, which keeps a popup open until you press Escape. Source: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Debugging#Debugging_popups
IF your browser extension popups (and right-click context menus, bookmark menu etc.) persist and refuse to go away unless you press Esc AND you have the ’Browser Toolbox’ window open—then you have probably left the ‘Disable Popup Auto-Hide’ option enabled. (This setting is only in effect when the Browser Toolbox window is open.)
To disable this setting, go to the Browser Toolbox window (the window title is ‘Developer Tools – Debugging’), then, in the upper right-hand corner, press open the three-dots menu, and uncheck ‘Disable Popup Auto-Hide’. (If checked you get sticky popups/context menus. If unchecked the popup/context menu will close if you click outside it).
Browser Toolbox
NOTE: If your browser menu does not have a ‘More tools > Browser Toolbox’ option, then the Browser Toolbox is disabled, and cannot be causing the sticky popup behavior.
The Browser Toolbox window can be opened through the browser main menu (the little hamburger icon, rightmost in the URL bar of the browser) ‘More tools > Browser Toolbox’ (or Ctrl-Shift-Alt-I).
The Browser Toolbox is disabled by default, so, for the above paragraph to work must first be enabled. To do this click on main menu icon, then ‘More Tools > Web Developer Tools’ (Ctrl-Shift-I), then, in the Developer Tools frame (or window) click the three dots menu icon (top right) and select ‘Settings’.
In the settings, scroll down to the bottom right (under the ‘Advanced settings’) and check the last two options:
[✔️] Enable browser chrome and add-on debugging toolboxes
[✔️] Enable remote debugging
Your browser menu should now contain the ‘More tools > Browser Toolbox’ option. (From the MDN Web Docs ‘Enabling the Browser Toolbox’.)
This answer (just like #Lakinator’s answer) is based off of information found on Mozilla's official site.
I am trying to create and automatic preview mechanism for some content entered with "nicedit" editor. And I need to bind or be alerted when buttons like "bold", etc., have been clicked in order to update the preview panel. How do I hook into this functionality?
I ended up using the Google Mutations library to listen to changes made to the preview page, instead of listening on button events. Ended up being the better choice for me.