Why does Firefox Use Chrome extension technology?
Mozilla announced last week that it would remove Firefox's old Add-on extension technology and switch to WebExtensions (Chrome extension technology). This decision has aroused controversy between users and developers. Today, Mozilla explained this question on the official website and answered several questions that users are concerned about.
Mozilla:
• XUL and XPCOM technologies (that is, the technol
Some time ago, I tried to install firefox on debian5, but it was always unable to run. the prompt " quot; Couldn amp; #39; tloadXPCOM" is displayed. I can run it unexpectedly today, probably because the system was updated a few days ago. after the surprise, I found that flash could not be played, but in google-chro...
Some time ago, I tried to install firefox on debian5, but it was always unable to run. the prompt "Couldn't load XPCOM" is displaye
the same.In the Mozilla directory, create a file named Mozconfig# This file specifies the build flags for Thunderbird. You can use it by adding:#. $topsrcdir/mail/config/mozconfig# to the top of your mozconfig file.Mk_add_options Moz_co_project=mailAc_add_options--enable-application=mail2, download winmg32.can go to Http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.1.exeAfter downloading, install to C:\mozilla-build, in fact, it is the default directory, it is r
JavaScript 1.8 is intended to be used as part of Gecko 1.9 (to be merged in Firefox 3. Compared with JavaScript 1.7, this is only a small update, but it does contain traces of evolution to ECMAScript 4/JavaScript 2. JavaScript 1.8 will also include all the new features in JavaScript 1.6 and JavaScript 1.7.Use JavaScript 1.8 To use the new features of JavaScript 1.8 in HTML, you need to write as follows:When using JavaScript shell, JavaScript XPCOM com
The JavaScript 1.8 plan is used as part of Gecko 1.9, which will be merged in Firefox 3. This is a small update compared to JavaScript 1.7来, but it does contain traces of evolution to ECMAScript 4/javascript 2. JavaScript 1.8 will also contain all the new features in JavaScript 1.6 and JavaScript 1.7.
using JavaScript 1.8
To use the new features of JavaScript 1.8 in HTML, you need to write the following:
When you use JavaScript shells, JavaScript XPCOM
Part 3: JavaScript Code inefficiencies for more information about using closures in IE.Avoid using
with
Avoid usingwithIt has a very bad impact on performance, because it modifies the scope chain, making it expensive to search for variables in other scopes.Avoid browser memory leakage
Memory leakage is a common problem for Web applications, which may cause serious performance problems. when the browser memory usage increases, your Web applications, along with other parts of the user system, wil
principleThe rendering process is as follows:Mozilla Architecture Design: interface and implementation separation. Use markup Language, javascript,c++ to develop. Jsengine means that spidemonkey,layout means gecko. A key part of Mozilla is xpcom and NSPR.WebKit Processing Flow:The pros and cons of the browser kernelTrident: This browser kernel is the kernel of IE browser, because in the early IE occupies a lot of market share, so this kernel is more
libraries to simplify the implementation.
Cross-language: All component libraries that can implement multi-language interfaces are implemented based on C ++, such as COM, XPCOM, and CORBA. This provides basic support for uniagent to implement cross-language programming in the future.
Many build systems support C ++, such as automake, scons, cmake, nmake (MS build, that is, Visual Studio), among which cmake has good "native" features, that is, the b
XPCOM
Using the. NET Framework class to parse HTML files and read data is not the easiest. Although you can use. many classes (such as streamreader) in the Net Framework to Parse Files row by row. However, the APIS provided by xmlreader are not "out of the box, because the HTML format is not standard. You can use regular expressions (regular expressions), but if you are not familiar with these expressions, you may find them difficult at the beginning.
Javascript 1.8 is intended to be used as part of Gecko 1.9 (to be merged in Firefox 3. Compared with JavaScript 1.7, this is only a small update, but it does contain traces of evolution to ecmascript 4/JavaScript 2. Javascript 1.8 will also include all the new features in Javascript 1.6 and JavaScript 1.7.
Use JavaScript 1.8
To use the new features of JavaScript 1.8 in HTML, you need to write as follows:
When using JavaScript shell, JavaScript XPCOM
malloc is extremely fast.
Tlslite Homepage
Python library for implementing SSL 3.0, TLS 1.0, and TLS 1.1
Undoview Homepage
GTK + extension, used to support undo and highlight of invalid number of text edit boxes.
WebDriver Homepage
Web application testing tool.
Wtl 8.0 Homepage
Windows template library and chrome UI controls on windows are developed on this basis, that is, chrome UI = skia + wtl on Windows.
Xdg-utils Homepage
Xdgutils is a series of tools on Linux, including the xdg-mime m
-" cat >> confdefs.h
3 first time configure and make:
../mozilla/configure --enable-application=browser --enable-official-branding --with-l10n-base=/lang --enable-ui-locale=zh-CN\ --enable-optimize="-fast -Qprof-gen -Qprof-dird:/temp/ffprof -W0" --disable-accessibility --disable-debug --disable-tests\ --disable-installer --disable-updater --disable-update-channel --disable-crashreporter
Make must be modified as follows (in the OBJ directory ):Makefile: Comment out $ (RM) under the
-oriented. IE has built a solid city. If it can still be broken, it will naturally feel a sense of accomplishment for attackers. at the same time, news always focuses on the security of IE. After all, most computers around the world are in danger, which is definitely big news. once and for all, the reputation of IE is also established. as for how secure Firefox is, that is not necessarily true. is the Firefox plug-in made with XPCOM really safer than
development to be more like Web development: the same code should be able to run in multiple browsers and comply with the behaviors determined by the standards, along with a comprehensive instruction document provided by a number of developers ."
From any perspective, this should be considered an important step forward. First, developing Firefox plug-ins is always more complex than Chrome and Opera. Why? Firefox currently uses technologies such as XUL and X
. Therefore, the next-generation application platform should have the permission to access local computing resources.
Better integrate local resources. This is related to the above. The difference is that it will allow network applications to access local disks, configurations, registry files, and so on.
Better security mechanisms. Without a doubt, all applications run through ActiveX and XPCOM, but the security mechanism is a weakness, and it i
the preferred language for developing efficient systems. Therefore, we need to use C ++ to implement the plug-in mechanism. In many cases, this is something we cannot bypass.Is there any solution?
Before developing our new plug-in framework, we 'd better take a look at the existing library or framework.
Currently, there are both heavyweight solutions, such as Microsoft's com and Mozilla's XPCOM (cross-platform com), and they only provide basic functi
operations on its browser interface and its interface are completed by JS and XUL, this is the power of ff, and it also provides a good extension mechanism for everyone.
FF extended development directory structure:
-- Content
-- [Main JS XUL files]
-- Locale
-- En-US
-- [Some DTD or properties files]
-- [Other ages]
-- Skin
-- [Some CSS files or pictures]
-- Defaults
-- Preferences
-- Components [Optional]
-- Chrome. manifest
-- Install. RDF
-- Install. js [Optional]
FF working method:
For a
SATA raw disks andpartitions
USB support, with remote devices over RDP
Snapshots
Seamless mode
Clipboard
Shared folders
Special drivers and utilities to facilitateswitching between systems
Command Line Interaction (in addition to Thegui)
Public APIs (Java, Python, SOAP, XPCOM) tocontrol VM configuration and execution [10]
Remote display (useful for headless hostmachines)
Nested Paging for Amd-v
VMware Virtual Machine Disk Format (VMDK) sup
Explorer, or Jav Ascript engine and Firefox's XPCOM infrastructure).
Here are some rules of thumb to avoid memory leaks:
Use an event system to attach an event handler function
The most common circular reference mode [DOM element--> event handler--> closure Scope--> DOM] is discussed in this MSDN blog article. To avoid this problem, you can use a rigorously tested event system to attach event-handling functions such as Google doctype, Dojo, or JQu
performance because it modifies the scope chain, making it expensive to find variables in other scopes.
Avoid browser memory leaks
Memory leaks are a common problem for WEB applications, which can cause serious performance problems. When the browser's memory usage goes up, your Web application, along with other parts of the user's system, slows down. The most common memory leaks for WEB applications are the circular references between the JavaScript scripting engine and the C + + object imple
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.