What is this JavaScript syntax: {Ci, CC}? [duplicate]

This is called destructuring assignment. It is a feature of JavaScript 1.7, where in this context “JavaScript” refers to Mozilla’s specific extensions to the ECMAScript standard. It is slated for inclusion in the next version of JavaScript. The equivalent ECMAScript 5 code would be var __temp = require(‘chrome’); var Cc = __temp.Cc; var Ci = … Read more

Change columns size in Firefox Developer Tools

Update: This feature is now available and enabled by default in Firefox 67. You can disable it (are you crazy?) using devtools.netmonitor.features.resizeColumns flag. Original answer: As you probably know there is no option to change the column(s) size (as of FF57), the only option you have is hide/show columns. it’s easy to do, just right-click … Read more

Firefox: Service Worker: SecurityError: DOMException: The Operation is insecure

Did you check the cookie setting in about:preferences#privacy, it must be ‘keep until they expire’, if you have ‘keep until I close firefox’ selected sw will not register. you can find details on this thread: https://bugzilla.mozilla.org/show_bug.cgi?id=1429714

How to view “generated HTML code” in Firefox?

In Firebug’s HTML tab, right-click the root node and select “copy HTML”. Then paste to a text editor. Without Firefox Add-Ons, you could use a bookmarklet like this: javascript: var win = window.open(); win.document.write(‘<html><head><title>Generated HTML of ‘ + location.href + ‘</title></head><pre>’ + document.documentElement.innerHTML.replace(/&/g, ‘&amp;’).replace(/</g, ‘&lt;’) + ‘</pre></html>’); win.document.close(); void 0;

Custom Cursor Image CSS

Your problem may be that cursor URLs don’t work in Firefox for the Mac. You can get the same effect on Firefox by using the -moz-zoom-in keyword. cursor:url(/img/magnify.cur), -moz-zoom-in, auto; This will show magnify.cur, the Mozilla-specific zoom cursor or a system default cursor. The first cursor on the list that the browser supports is used. … Read more

What is the alternate for -webkit-print-color-adjust in firefox and IE

Feb 2023 Update: As of mid-2022 onwards, we can simply use print-color-adjust: economy|exact on the element, without the need to place inside a print media query. color-adjust on it’s own will become depreciated. (Thank you to misterManSam for the depreciation warning.) Previous answer (originally from 2016): As mentioned -webkit-print-color-adjust: exact is specific to WebKit browsers, … Read more

How do I find what Javascript is running on certain events?

I’ve had to debug some particularly nasty unseen-cause Javascript issues at my job. Knowing the full depth of developer tools like Chrome’s is definitely helpful. It undeniably takes some creativity to find places that might be causing the issue, but a few tips: Tracking down event listeners Under Chrome’s Elements view, try Inspect-ing an element … Read more

Link inside a button not working in Firefox

This doesn’t work because it is not allowed by HTML5: Content model: Phrasing content, but there must be no interactive content descendant. Interactive content means any of the following elements: a audio (if the controls attribute is present) button details embed iframe img (if the usemap attribute is present) input (if the type attribute is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)