|
Chrome manifest and protocols
|
| |
Is it possible to specify other protocol, in extension's chrome.manifest, then chrome to load overlay or stylesheet? I need to create some overlays dynamically. So I’m thinking to create my protocol handler that will do that for me. Will this work (assuming that myprotocol handler is implemented and... more »
|
|
Task queues decoupled from a thread
|
| |
I was reading about Grand Central Dispatch and thought that the off-the-main-thread parsing setup in the HTML5 parser could use something similar. The off-the-main-thread part of a parser instance needs an nsIEventTarget that runs the runnables posted to it in the order they were posted and without starting the next one before the previous one... more »
|
|
Attributes starting with -moz
|
| |
Using the current release of Firebug, visit this page: [link] Now inspect the mathml elements. They show attributes that start with - moz. This example -moz-math-font-style is in several elements. In my version of firebug I have it work with svg and mathml quite a... more »
|
|
js: html string to plaintext
|
| |
Any pointer for javascript routine to convert a html string to plain text? eg: <a class="moz-txt-link-abbreviate d" href="someN...@foo.xyz">someN. ..@foo.xyz</a> to get just "someN...@foo.xyz"
|
|
FF 3.7: can't convert Call to string
|
| |
Firebug 1.5b3 test fails on [link] fail on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a1pre) Gecko/20091106 Minefield/3.7a1pre With an error message [JavaScript Error: "can't convert Call to string"] The error message filename is null.... more »
|
|
eval vs lookup
|
| |
If I have window.foo = {some:"thing"}; I can get an object this way: var obj = window["foo"]; or var obj = eval("window.foo"); If I am in an extension then I'll end up with something like: var obj = win.wrappedJSObject["foo']; or var obj = eval(win.wrappedJSObect.foo); Now suppose foo is a getter function in the page. Is the eval secure?... more »
|
|
Error: can't convert this.obj[p] to primitive type
|
| |
I get the error message Error: can't convert this.obj[p] to primitive type from this line: var value = "" + this.obj[p]; How do I stop this message? Note that [link] claims: "Every object has a toString method ..." (No I do not know what this.obj is, that's the point printing the... more »
|
|
Line numbers in nested document.write()s
|
| |
I don't see much logic in the line number reporting of the old HTML parser when there are nested document.written scripts. See Error Console with [link] Does Firebug or anything else rely on a particular way of counting lines in nested document.write()s? If yes, what's the expectation?... more »
|
|
Headless/offscreen backend
|
| |
Hi, Some might have already come across this; for the last year-ish, I've been working on a headless (offscreen rendering) backend for Mozilla. We shipped an early version in Moblin 2.0 and a later version is available in Moblin 2.1 (though it isn't included by default anymore). In brief, this is a toolkit-independent backend that targets a region of... more »
|
|
|