merge fx-team to mozilla-central

This commit is contained in:
Carsten "Tomcat" Book 2014-02-19 14:00:16 +01:00
commit c7afeb5a7b
21 changed files with 82 additions and 65 deletions

View File

@ -6503,6 +6503,7 @@ var gIdentityHandler = {
];
let options = {
dismissed: true,
learnMoreURL: Services.urlFormatter.formatURLPref("app.support.baseURL") + "mixed-content",
};
PopupNotifications.show(gBrowser.selectedBrowser, "mixed-content-blocked",
messageString, "mixed-content-blocked-notification-icon",

View File

@ -35,17 +35,9 @@
</popupnotificationcontent>
</popupnotification>
<popupnotification id="geolocation-notification" hidden="true">
<popupnotificationcontent orient="vertical" align="start">
<separator class="thin"/>
<label id="geolocation-learnmore-link" class="text-link"/>
</popupnotificationcontent>
</popupnotification>
<popupnotification id="servicesInstall-notification" hidden="true">
<popupnotificationcontent orient="vertical" align="start">
<separator class="thin"/>
<label id="servicesInstall-learnmore-link" class="text-link"/>
<!-- XXX bug 974146, tests are looking for this, can't remove yet. -->
</popupnotificationcontent>
</popupnotification>
@ -60,9 +52,5 @@
<popupnotificationcontent orient="vertical" align="start">
<separator/>
<description id="mixed-content-blocked-moreinfo">&mixedContentBlocked.moreinfo;</description>
<separator/>
<label id="mixed-content-blocked-helplink" class="text-link"
onclick="openHelpLink('mixed-content');"
value="&mixedContentBlocked.helplink;"/>
</popupnotificationcontent>
</popupnotification>

View File

@ -1914,17 +1914,20 @@ ContentPermissionPrompt.prototype = {
if (perm.type == "pointerLock") {
// If there's no mainAction, this is the autoAllow warning prompt.
let autoAllow = !mainAction;
aOptions = {
removeOnDismissal: autoAllow,
eventCallback: type => {
if (type == "removed") {
browser.removeEventListener("mozfullscreenchange", onFullScreen, true);
if (autoAllow) {
aRequest.allow();
}
if (!aOptions)
aOptions = {};
aOptions.removeOnDismissal = autoAllow;
aOptions.eventCallback = type => {
if (type == "removed") {
browser.removeEventListener("mozfullscreenchange", onFullScreen, true);
if (autoAllow) {
aRequest.allow();
}
},
};
}
}
}
var popup = chromeWin.PopupNotifications.show(browser, aNotificationId, aMessage, aAnchorId,
@ -1982,15 +1985,14 @@ ContentPermissionPrompt.prototype = {
});
}
var chromeWin = this._getBrowserForRequest(aRequest).ownerDocument.defaultView;
var link = chromeWin.document.getElementById("geolocation-learnmore-link");
link.value = browserBundle.GetStringFromName("geolocation.learnMore");
link.href = Services.urlFormatter.formatURLPref("browser.geolocation.warning.infoURL");
var options = {
learnMoreURL: Services.urlFormatter.formatURLPref("browser.geolocation.warning.infoURL"),
};
secHistogram.add(Ci.nsISecurityUITelemetry.WARNING_GEOLOCATION_REQUEST);
this._showPrompt(aRequest, message, "geo", actions, "geolocation",
"geo-notification-icon", null);
"geo-notification-icon", options);
},
_promptWebNotifications : function(aRequest) {

View File

@ -709,7 +709,6 @@ just addresses the organization to follow, e.g. "This site is run by " -->
<!ENTITY webrtcIndicatorButton.label "Camera / Microphone Access">
<!ENTITY webrtcIndicatorButton.tooltip "Display sites you are currently sharing your camera or microphone with">
<!ENTITY mixedContentBlocked.helplink "Learn more">
<!ENTITY mixedContentBlocked.moreinfo "Most websites will still work properly even when this content is blocked.">
<!ENTITY pointerLock.notification.message "Press ESC at any time to show it again.">

View File

@ -320,9 +320,6 @@ geolocation.neverShareLocation=Never Share Location
geolocation.neverShareLocation.accesskey=N
geolocation.shareWithSite=Would you like to share your location with %S?
geolocation.shareWithFile=Would you like to share your location with the file %S?
# LOCALIZATION NOTE (geolocation.learnMore): Use the unicode ellipsis char, \u2026,
# or use "..." if \u2026 doesn't suit traditions in your locale.
geolocation.learnMore=Learn More…
webNotifications.showForSession=Show for this session
webNotifications.showForSession.accesskey=s
@ -444,7 +441,6 @@ service.toolbarbutton.tooltiptext=Services
service.install.description=Would you like to enable services from %1$S to display in your %2$S toolbar and sidebar?
service.install.ok.label=Enable Services
service.install.ok.accesskey=E
service.install.learnmore=Learn More…
# LOCALIZATION NOTE (social.turnOff.label): %S is the name of the social provider
social.turnOff.label=Turn off %S

View File

@ -1923,8 +1923,7 @@ toolbar[iconsize="small"] .toolbarbutton-badge-container {
#servicesInstall-notification-icon {
list-style-image: url(chrome://browser/skin/social/services-16.png);
}
#social-undoactivation-button,
#servicesInstall-learnmore-link {
#social-undoactivation-button {
-moz-margin-start: 0; /* override default label margin to match description margin */
}

View File

@ -3304,10 +3304,6 @@ toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
}
}
#geolocation-learnmore-link {
-moz-margin-start: 0; /* override default label margin to match description margin */
}
.indexedDB-notification-icon,
#indexedDB-notification-icon {
list-style-image: url(chrome://global/skin/icons/question-16.png);
@ -3600,10 +3596,6 @@ toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
}
#mixed-content-blocked-helplink {
margin: 0px;
}
.popup-notification-icon[popupid="webRTC-sharingDevices"],
.popup-notification-icon[popupid="webRTC-shareDevices"] {
list-style-image: url(chrome://browser/skin/webRTC-shareDevice-64.png);
@ -3970,8 +3962,7 @@ toolbar[mode="icons"] > *|* > .toolbarbutton-badge[badge]:not([badge=""]):-moz-l
}
}
#social-undoactivation-button,
#servicesInstall-learnmore-link {
#social-undoactivation-button {
-moz-margin-start: 0; /* override default label margin to match description margin */
}

View File

@ -2385,8 +2385,7 @@ toolbarpaletteitem[place="palette"] > #switch-to-metro-button {
#servicesInstall-notification-icon {
list-style-image: url(chrome://browser/skin/social/services-16.png);
}
#social-undoactivation-button,
#servicesInstall-learnmore-link {
#social-undoactivation-button {
-moz-margin-start: 0; /* override default label margin to match description margin */
}

View File

@ -123,10 +123,6 @@ public class BookmarksPanel extends HomeFragment {
});
mList.setAdapter(mListAdapter);
// Invalidate the cached value that keeps track of whether or
// not desktop bookmarks (or reading list items) exist.
BrowserDB.invalidateCachedState();
// Create callbacks before the initial loader is started.
mLoaderCallbacks = new CursorLoaderCallbacks();
loadIfVisible();
@ -207,6 +203,14 @@ public class BookmarksPanel extends HomeFragment {
return BrowserDB.getBookmarksInFolder(getContext().getContentResolver(), mFolderInfo.id);
}
@Override
public void onContentChanged() {
// Invalidate the cached value that keeps track of whether or
// not desktop bookmarks exist.
BrowserDB.invalidateCachedState();
super.onContentChanged();
}
public FolderInfo getFolderInfo() {
return mFolderInfo;
}

View File

@ -1,12 +1,3 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!--
LOCALIZATION NOTE (geolocation.learnMore): Use the
unicode ellipsis char, \u2026,
or use "..." unless \u2026 doesn't suit traditions in your
locale.
-->
<!ENTITY geolocation.learnMore "Learn More…">

View File

@ -574,14 +574,13 @@ this.SocialService = {
},
};
let link = chromeWin.document.getElementById("servicesInstall-learnmore-link");
link.value = browserBundle.GetStringFromName("service.install.learnmore");
link.href = Services.urlFormatter.formatURLPref("app.support.baseURL") + "social-api";
let options = {
learnMoreURL: Services.urlFormatter.formatURLPref("app.support.baseURL") + "social-api",
};
let anchor = "servicesInstall-notification-icon";
let notificationid = "servicesInstall";
chromeWin.PopupNotifications.show(browser, notificationid, message, anchor,
action, [], {});
action, [], options);
},
installProvider: function(aDOMDocument, data, installCallback) {

View File

@ -456,6 +456,8 @@
<xul:description class="popup-notification-description"
xbl:inherits="xbl:text=label"/>
<children includes="popupnotificationcontent"/>
<xul:label class="text-link popup-notification-learnmore-link"
xbl:inherits="href=learnmoreurl">&learnMore;</xul:label>
<xul:spacer flex="1"/>
<xul:hbox class="popup-notification-button-container"
pack="end" align="center">

View File

@ -7,3 +7,5 @@
<!ENTITY closeNotificationItem.label "Not Now">
<!ENTITY checkForUpdates "Check for updates…">
<!ENTITY learnMore "Learn more…">

View File

@ -260,6 +260,10 @@ PopupNotifications.prototype = {
* A string. URL of the image to be displayed in the popup.
* Normally specified in CSS using list-style-image and the
* .popup-notification-icon[popupid=...] selector.
* learnMoreURL:
* A string URL. Setting this property will make the
* prompt display a "Learn More" link that, when clicked,
* opens the URL in a new tab.
* @returns the Notification object corresponding to the added notification.
*/
show: function PopupNotifications_show(browser, id, message, anchorID,
@ -547,6 +551,11 @@ PopupNotifications.prototype = {
if (n.options.popupIconURL)
popupnotification.setAttribute("icon", n.options.popupIconURL);
if (n.options.learnMoreURL)
popupnotification.setAttribute("learnmoreurl", n.options.learnMoreURL);
else
popupnotification.removeAttribute("learnmoreurl");
popupnotification.notification = n;
if (n.secondaryActions) {

View File

@ -63,6 +63,14 @@ notification[type="critical"] {
max-width: 24em;
}
.popup-notification-learnmore-link {
margin-top: 1em !important;
}
.popup-notification-learnmore-link:not([href]) {
display: none;
}
.popup-notification-button-container {
margin-top: 17px;
}

View File

@ -175,7 +175,9 @@ toolkit.jar:
skin/classic/global/media/throbber.png (media/throbber.png)
skin/classic/global/media/stalled.png (media/stalled.png)
skin/classic/global/media/volume-empty.png (media/volume-empty.png)
skin/classic/global/media/volume-empty@2x.png (media/volume-empty@2x.png)
skin/classic/global/media/volume-full.png (media/volume-full.png)
skin/classic/global/media/volume-full@2x.png (media/volume-full@2x.png)
skin/classic/global/media/clicktoplay-bgtexture.png (media/clicktoplay-bgtexture.png)
skin/classic/global/media/videoClickToPlayButton.svg (media/videoClickToPlayButton.svg)
skin/classic/global/menu/menu-arrow.png (menu/menu-arrow.png)

View File

@ -320,6 +320,14 @@ html|table {
background-image: url(chrome://global/skin/media/playButton@2x.png);
background-size: 28px 28px;
}
.volumeBackground {
background-image: url(chrome://global/skin/media/volume-empty@2x.png);
background-size: 32px 16px;
}
.volumeForeground {
background-image: url(chrome://global/skin/media/volume-full@2x.png);
background-size: 32px 16px;
}
.muteButton {
background-image: url(chrome://global/skin/media/muteButton@2x.png);
background-size: 33px 28px;

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

View File

@ -90,6 +90,15 @@ notification[type="critical"] {
max-width: 24em;
}
.popup-notification-learnmore-link {
margin-top: 1em !important;
-moz-margin-start: 0 !important; /* override default label margin to match description margin */
}
.popup-notification-learnmore-link:not([href]) {
display: none;
}
.popup-notification-button-container {
margin-top: 17px;
}

View File

@ -57,6 +57,14 @@ notification[type="critical"] {
max-width: 24em;
}
.popup-notification-learnmore-link {
margin-top: 1em !important;
}
.popup-notification-learnmore-link:not([href]) {
display: none;
}
.popup-notification-button-container {
margin-top: 17px;
}