mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 517521: add about:firefox alias for about:fennec page, r=mfinkle
This commit is contained in:
parent
f1c9bee7d5
commit
02d4ecadee
@ -351,7 +351,14 @@
|
||||
<richlistbox id="prefs-list" seltype="single" flex="1">
|
||||
<setting title="&about.title;" type="control">
|
||||
&about.description;
|
||||
<button id="prefs-about-button" label="&about.button;" oncommand="Browser.addTab('about:fennec', true);"/>
|
||||
<button id="prefs-about-button" label="&about.button;"
|
||||
#ifdef MOZ_OFFICIAL_BRANDING
|
||||
# these two point to the same page, this just matters for what shows up in the
|
||||
# URL bar
|
||||
oncommand="Browser.addTab('about:firefox', true);"/>
|
||||
#else
|
||||
oncommand="Browser.addTab('about:fennec', true);"/>
|
||||
#endif
|
||||
</setting>
|
||||
<settings id="prefs-content" label="&content.title;">
|
||||
<setting pref="permissions.default.image" title="&showImages.title;" type="boolint" on="1" off="2"/>
|
||||
|
@ -45,6 +45,9 @@ let modules = {
|
||||
uri: "chrome://browser/content/about.xhtml",
|
||||
privileged: true
|
||||
},
|
||||
// about:firefox is an alias for about:fennec
|
||||
get firefox() this.fennec,
|
||||
|
||||
firstrun: {
|
||||
uri: "chrome://firstrun/content/firstrun.html",
|
||||
privileged: false
|
||||
@ -114,6 +117,14 @@ AboutFennec.prototype = {
|
||||
classID: Components.ID("{842a6d11-b369-4610-ba66-c3b5217e82be}")
|
||||
}
|
||||
|
||||
function AboutFirefox() {}
|
||||
AboutFirefox.prototype = {
|
||||
__proto__: AboutGeneric.prototype,
|
||||
classDescription: "About Firefox",
|
||||
contractID: "@mozilla.org/network/protocol/about;1?what=firefox",
|
||||
classID: Components.ID("{dd40c467-d206-4f22-9215-8fcc74c74e38}")
|
||||
}
|
||||
|
||||
function AboutRights() {}
|
||||
AboutRights.prototype = {
|
||||
__proto__: AboutGeneric.prototype,
|
||||
@ -131,4 +142,5 @@ AboutCertError.prototype = {
|
||||
}
|
||||
|
||||
function NSGetModule(compMgr, fileSpec)
|
||||
XPCOMUtils.generateModule([AboutFirstrun, AboutFennec, AboutRights, AboutCertError]);
|
||||
XPCOMUtils.generateModule([AboutFirstrun, AboutFennec, AboutRights,
|
||||
AboutCertError, AboutFirefox]);
|
||||
|
Loading…
Reference in New Issue
Block a user