Difference between revisions of "Mozilla.dev.extensions"

From CDOT Wiki
Jump to: navigation, search
(Friday, September 29 - October 6, 2006)
(Friday, September 29 - October 6, 2006)
Line 108: Line 108:
  
 
-----
 
-----
* nsiTimer platform differences [[http://groups.google.com/group/mozilla.dev.extensions/browse_thread/thread/8794b030be977108/f5fa9ec51dbb6675#f5fa9ec51dbb6675
+
* nsiTimer platform differences [http://groups.google.com/group/mozilla.dev.extensions/browse_thread/thread/8794b030be977108/f5fa9ec51dbb6675#f5fa9ec51dbb6675]
  
 
Question:
 
Question:

Revision as of 12:04, 6 October 2006

(back to newsgroup summaries)

Newsgroup

mozilla.dev.extensions

Authors

  1. Man Choi Kwan
  2. Richard Chu

Weekly Summaries

NOTE: these should be turned into links to separate pages.

  1. Friday, September 22 - 29, 2006
  2. Friday, September 29 - October 6, 2006
  3. Friday, October 06, 2006
  4. Friday, October 13, 2006
  5. Friday, October 20, 2006
  6. Friday, October 27, 2006
  7. Friday, November 03, 2006
  8. Friday, November 10, 2006
  9. Friday, November 17, 2006
  10. Friday, November 24, 2006

FAQ

1. How do I create my summary page?

Like this!

2. Should I put the FAQ questions/answers in the summaries?

No. Put them in a single place (here), instead of in the summaries.

Friday, September 22 - 29, 2006

  • Places queries
    • Asking for help in knowing the data that is typed into text boxes.
  • WM_COPY trouble
    • Asking for help with getting an extension to process Windows messages.
  • Replace HTML
    • Discussing the deasibility of creating an extension that can replace HTML code on a specific page that does not use Greasemonkey.
  • XUL Image
    • Discussing the feasibility of placing an image in a window that can be moved around anywhere within the window and will always remain on top.
  • Tracert extension feasible?
    • Asking about the feasibility of making an extension that has the same functionality as “trace route”.

Friday, September 29 - October 6, 2006

UAQ: UnAnswered Questions

  • How to extract information from a mail [1]

Question: How can we programmatically extract the subject, sender, date and the body of an e- mail when you are reading one (in Thunderbird presumably)?

Answer: No answer this week.


  • Could someone make an adressbook enchancer extension. [2]

Question: Could someone make an addressbook enhancer extension that has the ability to put pictures on a contact and other features the Thunderbird address book lacks.

Answer: No answer this week. The question is not specific enough, is too open ended and ambiguous.


  • Saving a whole news thread

[3]

Question: Is there a way to save a whole news thread in Thunderbird?

Answer: No answer this week.


  • nsiTimer platform differences [4]

Question: We're seeing a timing issue when using nsITimer on MSWindows that does not occur on GNU/Linux.

A javascript XPCOM component sets a TYPE_ONE_SHOT timer to go off in one hour. The timer does not go off until significantly (more than 2X) after that. Anyone else seems different nsITimer behavior on Windows or have any sort of explanation about whether this is a problem with the win32 timer implementation, or whether there is some workaround?

Answer: No answer this week.

FAQ: Frequently Asked Questions

Plugin or Extension? Need to launch Windows Explorer instance from a URL

Question: In IE, when I enter a URL that starts with "file://" in the address bar, an instance of the windows explorer will be launched and display the directory in the URL. However, in Firefox, a custom directory listing will be displayed instead of Windows Explorer. Is there anyway, via plugin or extension, for Firefox to mimic the functionality of IE in this respect?

Answer: The IETab (Opens IE in a Firefox tab) should be able do this if you set it to always open "file://*" URLs in an IE tab.

The appearance with a FireFox tab isn't quite the same as having a completely separate Explorer window. However, it's functional and does allow for the Explorer to be handling the display of the folder contents, and all of the right-click context menu support is present so it should meet my needs.


packaging to release on Mozilla extensions site

Question: Hi, I am planning to release our extension on the mozilla extensions site. When I tried uploading it, it said that update.rdf contains invalid location. What is the valid one and what other things do I need to change to make it work on Mozilla site?

Answer: You must remove updateURL from the install.rdf and use a known to AMO minVersion/maxVersion. It's mentioned in their FAQ I believe. No confirmation that the answer given worked yet.


Open a URL in new tab

Question: The Function "LoadURL" loads a URL in the Browser window:

function LoadURL(URL)
{
    window._content.document.location = URL;
    window.content.focus();
}

Is it possible to open the URL in a new tab?

Answer:

var tab = getBrowser().addTab( url );
// And if you want it to load in foreground:
getBrowser().selectedTab = tab; 

Is it possible to read the html-code of the current URL/site?

Question: Is it possible to read the html-code of the current URL/site?

Answer: Yes, this is possible. Use the DOM API (http://www.w3schools.com/dom/default.asp has a good tutorial).

Not the best answer but a good starting point for the question asker to do some research towards the answer.


Thunderbird segfault after extension reads preferences.

Question: Asking why after his extension reads preferences, it is not able to show the contents of a folder and then segmentation fault occurs

Answer: missing getService



Any Data Encryption Libraries?


Question: Are there any built in libraries that can be used to encrypt data?

Answer: Yes.

1. You can use nsISecretDecoderRing.encryptString() and nsISecretDecoderRing.decryptString(). However, I'm not sure how/if that works if the user hasn't defined a master password in Options->Security->Use a master password.

2. You can AES-128 or AES-256 symmetric encryption via aes.js (http://tinyurl.com/pp79t).

No confirmation from the question asker on whether this answer was helpful in solving their problem.