firefox-3

@import in @media not working in Firefox 3.0.3

空扰寡人 提交于 2019-12-04 07:22:28
This is what I have, which works in IE7, but not in Firefox: @media screen { @import 'screen.css'; } It works outside of the @media block in Firefox: @import 'screen.css'; UPDATE: This works: @media screen { .yui-d3f { border: 1px solid #999; height: 250px; } } What am I missing? Firefox is following the CSS2 specification, while IE is playing fast and loose, as it were. The exact reason is that @import directives must be the first directives after the optional @charset directive. They cannot appear inside of any block. If you want an @import to apply to only one media type, specify that after

Why is Firefox 3 breaking with console.log

丶灬走出姿态 提交于 2019-12-03 12:13:17
问题 I have the following: console.log (a.time_ago() + ' ' + b.time_ago()); This is breaking in FireFox 3, meaning when FF hits that line in the JS, it goes no further. Strangely if I have Firebug open it doesn't break and continues as normal. Some how firebug prevents this issue? I'm puzzled on this one. Any thoughts as to why console.log would break firefox 3, but not if firebug is open? Thanks 回答1: This is not just Firefox. Your code will stop working in every browser (except Chrome and safari

Is there a XDomainRequest equivalent in Firefox?

末鹿安然 提交于 2019-12-03 12:03:01
问题 Is there an equivalent to Internet Explorer's XDomainRequest in Firefox or any of the other browsers? I'd like to access a service/website outside of my domain. 回答1: The XDomainRequest object in Internet Explorer 8 is a proprietary method for requesting resources which are outside the "same-origin policy." Firefox 3.5+ and Safari 4+ allow cross-domain requests through the XMLHTTPRequest object. User agents that support XMLHTTPRequest Level 2 must have Cross-Origin Resource Sharing support

AJAX https POST requests using jquery fail in Firefox

匆匆过客 提交于 2019-12-03 08:43:13
I have a simple list of records in an HTML table with a delete link for each row. The delete link shoots off an AJAX post request to a fixed url that looks like: " /delete/record/5 " The AJAX request is created using jquery's .ajax() call with a POST message when running on a server that uses https. This call fails in Firefox 3 on OSX/Windows architectures. It works on all other browsers I've tested (OSX/Windows: Chrome, Safari, IE7.) The requests are coming from an https site and going to the same https site. But I think somewhere during the process the original request starts off as http and

Why is Firefox 3 breaking with console.log

爷,独闯天下 提交于 2019-12-03 03:31:10
I have the following: console.log (a.time_ago() + ' ' + b.time_ago()); This is breaking in FireFox 3, meaning when FF hits that line in the JS, it goes no further. Strangely if I have Firebug open it doesn't break and continues as normal. Some how firebug prevents this issue? I'm puzzled on this one. Any thoughts as to why console.log would break firefox 3, but not if firebug is open? Thanks This is not just Firefox. Your code will stop working in every browser (except Chrome and safari (in some instances) because they have console.log() built in along with their developer tools.) It is

Firefox Bookmarks SQLite structure

人走茶凉 提交于 2019-12-03 00:33:53
问题 I am trying to write a Firefox 3 add-on which will enable me to easily re-tag bookmarks. For example I have some bookmarks tagged "development" and some tagged "Development" and I would like a way to easily update all the "delelopment" tags to "Development". Unfortunately I can not find an add-on to do this so I thought I would create my own. Having not developed an add-on before I've managed to grasp the basics and discovered that FireFox stores all bookmarks in an SQLite database called

Firefox XPCOM component - Permission denied to call method UnnamedClass

橙三吉。 提交于 2019-12-02 01:50:58
问题 Can a firefox XPCOM component read and write page content across multiple pages? Scenario: A bunch of local HTML and javascript files. A "Main.html" file opens a window "pluginWindow", and creates a plugin using: netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); var obj = Components.classes[cid].createInstance(); plugin = obj.QueryInterface(Components.interfaces.IPlugin); plugin.addObserver(handleEvent); The plugin that has 3 methods. IPlugin.Read - Read data from

Firefox XPCOM component - Permission denied to call method UnnamedClass

依然范特西╮ 提交于 2019-12-02 00:28:37
Can a firefox XPCOM component read and write page content across multiple pages? Scenario: A bunch of local HTML and javascript files. A "Main.html" file opens a window "pluginWindow", and creates a plugin using: netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); var obj = Components.classes[cid].createInstance(); plugin = obj.QueryInterface(Components.interfaces.IPlugin); plugin.addObserver(handleEvent); The plugin that has 3 methods. IPlugin.Read - Read data from plugin IPlugin.Write - Write data to the plugin IPlugin.addObserver - Add a callback handler for reading.

How to create firefox3 sidebar?

China☆狼群 提交于 2019-12-01 00:27:23
Hi I want to create sidebar in Firefox 3 but have no clue how to do this. I find tutorial on MDC ( https://developer.mozilla.org/en/Creating_a_Firefox_sidebar ) but after installation extension do not work with "not compatible with Firefox 3.0.3" error. Does anybody have any tip or link to some resource about how to make sidebar? Well, a Firefox extension, be it a sidebar, toolbar or whatever other type of extension is basically a mix of XUL and Javascript, all packaged nice and tidy into an installer package called an XPI. For an excelent XUL tutorial see http://xulplanet.mozdev.org/tutorials

How do I get clientX and clientY to work inside my “drag” event handler on Firefox?

淺唱寂寞╮ 提交于 2019-11-30 19:14:00
Mozilla firefox 3.x seems to have a bug when listening to "ondrag" event. The event object doesn't report the position of the object being dragged, clientX, clientY and other screen offsets are all set to zero. This is quite problematic as I wanted to make a proxy element based on the element being dragged and using of course, clientX and clientY to adjust its position. I know that there's cool stuff around such as setDragImage in HTML5 but I want to provide a generic abstraction for native DD between browsers. Faulty code: document.addEventListener('drag', function(e) { console.log(e.clientX)