Questions tagged [mozilla]

DO NOT USE THIS TAG, it is going to be removed. The Mozilla Foundation is a non-profit organization that exists to support and provide leadership for the open source Mozilla project.

DON'T USE THIS TAG, it is going to be burninated.

The Mozilla Foundation is a non-profit organization that exists to support and provide leadership for open source Mozilla projects.

Mozilla Firefox is a free, browser built by Mozilla Foundation and Mozilla Corporation, first released in 2002 as 'Phoenix', becoming 'Firefox' in 2004.

1724 questions
12
votes
0 answers

Cookie appears in response header, but not set in chrome / firefox

I'm setting a cookie on my localhost domain and followed everything pointed in the highest ranked questions here in SO : set-cookie : Cookies on localhost with explicit domain and Why won't asp.net create cookies in…
user1079425
12
votes
3 answers

Intercept and modify DOM before page is displayed to user

I'm trying to create a Firefox addon (using addon SDK) that will modify how the page is displayed, mostly as a training/learning exercise. For some tasks (like augmenting pages with new functionality) using pageMod is perfectly fine. Page loads and…
Gerino
  • 1,943
  • 1
  • 16
  • 21
12
votes
2 answers

Is it possible to trigger mouse middle click event using Javascript?

I want to trigger mouse middle click event using javascript. Is it possible to trigger mouse middle click using Javascript? I want it because it is pasting last selected object from clipboard. Thanks, Jimit
Jimit
  • 2,201
  • 7
  • 32
  • 66
11
votes
2 answers

How do I keep my cacert.pem current for security reasons when using curl?

I would like to keep my root certificates current for use with cURL and PHP's internal curl command, however there is no parameter currently to download the current file it requires for a proper secure connection and to keep it current. And example…
Kraang Prime
  • 9,981
  • 10
  • 58
  • 124
11
votes
2 answers

Open eclipse juno with error "No more handles ..." in Ubuntu 12.04

Starting today, every time I open up the eclipse, I got a message box with title "Problem Occured" pops up saying: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)] possible args: {0}, {1}, {2}, {3} No more handles [Unknown…
ssgao
  • 5,151
  • 6
  • 36
  • 52
11
votes
2 answers

Javascript - Assigning multiple variables to object properties using curly braces in variable declaration

While looking at some Javascript code for Mozilla's (Firefox) Add-on SDK, I saw kind of variable declaration I hadn't seen before: var { foo, bar } = someFunction("whatever"); // just an example See those curly braces around the variable name?…
grant
  • 735
  • 8
  • 17
10
votes
2 answers

Trigger an action when document.cookie changes?

I need to update localStorage when document.cookie changes. Is there any way to set a listener, overwrite a prototype to act as middleware or some other pattern that would result in the ability to trigger a function on change? I'm trying to avoid…
fancy
  • 48,619
  • 62
  • 153
  • 231
10
votes
2 answers

Using Coral Talk with React and Meteor

I am really struggling with implementing The Coral Talk Project commenting system into my app. I am attempting to implement it into a project that is primarily Meteor and React. It's on GitHub I think the main issue is that this is the first time…
10
votes
1 answer

Unable to download a blob file with Firefox, but it works in Chrome?

Here is my download code: var mimeType = this.getMime(obj); var ab = this.base64ToArrayBuffer(obj[key]); var blob = new Blob([ab.buffer], { type : mimeType }); var result = this.bintostring(blob); var url = window.URL.createObjectURL(blob); var…
Avneesh
  • 145
  • 2
  • 2
  • 11
10
votes
2 answers

How does the MDN website change the context menu?

How does the MDN (Mozilla Developer Network) website change the context menu? For example, this page. I thought they created the whole context menu to call it when the contextmenu event is fired, but it seems a little crazy. Furthermore, it doesn't…
user3624429
10
votes
4 answers

How to improve display quality in pdf.js

I'm using open source library for PDF documents from mozilla(pdf.JS). When i'm trying to open pdf documents with bad quality, viewer displays it with VERY BAD quality. But if I open it in reader, or in browser (drag/drop into new window), whis…
Arthur
  • 1,740
  • 3
  • 16
  • 36
10
votes
3 answers

What is the difference between padding-left and padding-start?

While inspecting some code I found this new declaration: -webkit-padding-start but I am been unable to understand what is the difference with the existing padding-left property. I have already read the page on Mozilla Developers and created a…
Mimo
  • 6,015
  • 6
  • 36
  • 46
9
votes
2 answers

HTML/Javascript: remember scroll independent of the window size

I've got a webpage for reading books online. I'd like to save the position inside the document so when a user resumes his reading, he starts in the point where he previously was. I can get the scroll using things like window.pageYOffset, but this…
user683887
  • 1,260
  • 1
  • 10
  • 20
9
votes
1 answer

Modifying viewer.js file

According to Mozilla's pdfjs plugin, I can view my pdfs by passing a query param to viewer.html as shown below: http://localhost/MyProject/viewer.html/?file=file.pdf This is working fine. But I have some different kind of requirement. The…
Mr_Green
  • 40,727
  • 45
  • 159
  • 271
8
votes
2 answers

Play mp3 file after uploading it with html5 drag and drop upload

Is it possible to first upload an mp3 file with the html5 drag and drop upload system, and then play it with webkit's audio API (http://chromium.googlecode.com/svn/trunk/samples/audio/index.html) without submitting a form (in Google Chrome)? Is it…
invisible bob
  • 864
  • 1
  • 9
  • 24