Merge mozilla-central and mozilla-inbound

This commit is contained in:
Ed Morley 2011-11-22 14:57:02 +00:00
Родитель 6ead4f7ddf 4503010373
Коммит 11599c6170
17 изменённых файлов: 89 добавлений и 24 удалений

Просмотреть файл

@ -26,6 +26,7 @@
* Julian Viereck <jviereck@mozilla.com>
* Paul Rouget <paul@mozilla.com>
* Kyle Simpson <ksimpson@mozilla.com>
* Johan Charlez <johan.charlez@gmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
@ -1112,8 +1113,8 @@ InspectorUI.prototype = {
this.inspectToolbutton.checked = false;
// Detach event listeners from content window and child windows to disable
// highlighting. We still want to be notified if the user presses "ESCAPE"
// to unlock the node, so we don't remove the "keypress" event until
// the highlighter is removed.
// to close the inspector, or "RETURN" to unlock the node, so we don't
// remove the "keypress" event until the highlighter is removed.
this.highlighter.detachInspectListeners();
this.inspecting = false;
@ -1186,7 +1187,8 @@ InspectorUI.prototype = {
this.restoreToolState(this.winID);
this.win.focus();
Services.obs.notifyObservers(null, INSPECTOR_NOTIFICATIONS.OPENED, null);
Services.obs.notifyObservers({wrappedJSObject: this},
INSPECTOR_NOTIFICATIONS.OPENED, null);
},
/**
@ -1248,8 +1250,12 @@ InspectorUI.prototype = {
break;
case "keypress":
switch (event.keyCode) {
case this.chromeWin.KeyEvent.DOM_VK_RETURN:
case this.chromeWin.KeyEvent.DOM_VK_ESCAPE:
this.closeInspectorUI(false);
event.preventDefault();
event.stopPropagation();
break;
case this.chromeWin.KeyEvent.DOM_VK_RETURN:
this.toggleInspection();
event.preventDefault();
event.stopPropagation();

Просмотреть файл

@ -94,11 +94,14 @@ function setupHighlighterTests()
InspectorUI.toggleInspectorUI();
}
function runSelectionTests()
function runSelectionTests(subject)
{
Services.obs.removeObserver(runSelectionTests,
InspectorUI.INSPECTOR_NOTIFICATIONS.OPENED, false);
is(subject.wrappedJSObject, InspectorUI,
"InspectorUI accessible in the observer");
executeSoon(function() {
Services.obs.addObserver(performTestComparisons,
InspectorUI.INSPECTOR_NOTIFICATIONS.HIGHLIGHTING, false);

Просмотреть файл

@ -44,7 +44,7 @@ function test()
Services.obs.removeObserver(lockNode,
InspectorUI.INSPECTOR_NOTIFICATIONS.HIGHLIGHTING);
EventUtils.synthesizeKey("VK_ESCAPE", { });
EventUtils.synthesizeKey("VK_RETURN", { });
executeSoon(isTheNodeLocked);
}
@ -57,7 +57,7 @@ function test()
}
function unlockNode() {
EventUtils.synthesizeKey("VK_ESCAPE", { });
EventUtils.synthesizeKey("VK_RETURN", { });
executeSoon(isTheNodeUnlocked);
}
@ -66,9 +66,12 @@ function test()
{
ok(InspectorUI.inspecting, "the node is unlocked");
// Let's close the inspector
Services.obs.addObserver(finishUp,
InspectorUI.INSPECTOR_NOTIFICATIONS.CLOSED, false);
InspectorUI.closeInspectorUI();
EventUtils.synthesizeKey("VK_ESCAPE", {});
ok(true, "Inspector is closing successfuly");
}
function finishUp() {

Просмотреть файл

@ -3762,8 +3762,8 @@ HeadsUpDisplay.prototype = {
]
},
{
name: "PageWebDeveloper",
category: "webdev",
name: "PageLogging",
category: "logging",
severities: [
{ name: "ConsoleErrors", prefKey: "error" },
{ name: "ConsoleWarnings", prefKey: "warn" },

Просмотреть файл

@ -21,7 +21,7 @@ function testFilterButtons() {
testMenuFilterButton("net");
testMenuFilterButton("css");
testMenuFilterButton("js");
testMenuFilterButton("webdev");
testMenuFilterButton("logging");
finishTest();
}

Просмотреть файл

@ -20,7 +20,7 @@ cliEvalJavascript=Enter JavaScript directly
# that has a number of pre-defined options the user interface presents these
# in a drop-down menu, where the first 'option' is an indicator that a
# selection should be made. This string describes that first option.
fieldSelectionSelect=Select a %S ...
fieldSelectionSelect=Select a %S
# LOCALIZATION NOTE (fieldArrayAdd): When a command has a parameter that can
# be repeated a number of times (e.g. like the 'cat a.txt b.txt' command) the

Просмотреть файл

@ -1,3 +1,12 @@
# LOCALIZATION NOTE These strings are used inside the Inspector
# which is available from the Web Developer sub-menu -> 'Inspect'.
#
# The correct localization of this file might be to keep it in
# English, or another language commonly spoken among web developers.
# You want to make that choice consistent across the developer tools.
# A good criteria is the language in which you'd find the best
# documentation on web development on the web.
# LOCALIZATION NOTE (confirmNavigationAway): Used in the Inspector tool, when
# the user tries to navigate away from a web page, to confirm the change of
# page.

Просмотреть файл

@ -1,6 +1,12 @@
<!-- LOCALIZATION NOTE : FILE This file contains the Scratchpad window strings -->
<!-- LOCALIZATION NOTE : FILE Do not translate commandkeys -->
<!-- LOCALIZATION NOTE : FILE The correct localization of this file might be to
- keep it in English, or another language commonly spoken among web developers.
- You want to make that choice consistent across the developer tools.
- A good criteria is the language in which you'd find the best
- documentation on web development on the web. -->
<!-- LOCALIZATION NOTE (scratchpad.title):
- The Scratchpad is intended to provide a simple text editor for creating
- and evaluating bits of JavaScript code for the purposes of function

Просмотреть файл

@ -1,3 +1,12 @@
# LOCALIZATION NOTE These strings are used inside the JavaScript scratchpad
# which is available from the Web Developer sub-menu -> 'Scratchpad'.
#
# The correct localization of this file might be to keep it in
# English, or another language commonly spoken among web developers.
# You want to make that choice consistent across the developer tools.
# A good criteria is the language in which you'd find the best
# documentation on web development on the web.
# LOCALIZATION NOTE (propertyPanel.updateButton.label): Used in the Property
# Panel that is opened by the Scratchpad window when inspecting an object. This
# is the Update button label.

Просмотреть файл

@ -1,3 +1,9 @@
<!-- LOCALIZATION NOTE : FILE The correct localization of this file might be to
- keep it in English, or another language commonly spoken among web developers.
- You want to make that choice consistent across the developer tools.
- A good criteria is the language in which you'd find the best
- documentation on web development on the web. -->
<!-- LOCALIZATION NOTE (userStylesLabel): This is the label for the checkbox
- that specifies whether the styles that are not from the user's stylesheet
- should be displayed or not. -->

Просмотреть файл

@ -1,4 +1,11 @@
# LOCALIZATION NOTE These strings are used inside the Style Inspector.
#
# The correct localization of this file might be to keep it in
# English, or another language commonly spoken among web developers.
# You want to make that choice consistent across the developer tools.
# A good criteria is the language in which you'd find the best
# documentation on web development on the web.
# LOCALIZATION NOTE (panelTitle): This is the panel title
panelTitle=Style Inspector

Просмотреть файл

@ -1,3 +1,9 @@
<!-- LOCALIZATION NOTE : FILE The correct localization of this file might be to
- keep it in English, or another language commonly spoken among web developers.
- You want to make that choice consistent across the developer tools.
- A good criteria is the language in which you'd find the best
- documentation on web development on the web. -->
<!ENTITY networkPanel.requestURL "Request URL">
<!ENTITY networkPanel.requestMethod "Request Method">
<!ENTITY networkPanel.statusCode "Status Code">

Просмотреть файл

@ -1,3 +1,10 @@
# LOCALIZATION NOTE
# The correct localization of this file might be to keep it in
# English, or another language commonly spoken among web developers.
# You want to make that choice consistent across the developer tools.
# A good criteria is the language in which you'd find the best
# documentation on web development on the web.
typeError=Error:
typeWarning=Warning:
typeNetwork=Network:
@ -18,19 +25,17 @@ btnPageCSS=CSS
tipPageCSS=Log CSS parsing errors
btnPageJS=JS
tipPageJS=Log JavaScript exceptions
# LOCALIZATION NOTE (btnPageWebDeveloper):
# LOCALIZATION NOTE (btnPageLogging):
#
# This is used as the text of the "Web Developer" button on the toolbar. It
# This is used as the text of the "Logging" button on the toolbar. It
# shows or hides messages that the web developer inserted on the page for
# debugging purposes, using calls such console.log() and console.error(). You
# may wish to localize this as "Page" if that is clearer in your locale. See
# bug 601667 for more information.
btnPageWebDeveloper=Web Developer
# LOCALIZATION NOTE (tipPageWebDeveloper):
# debugging purposes, using calls such console.log() and console.error().
btnPageLogging=Logging
# LOCALIZATION NOTE (tipPageLogging):
#
# This is used as the text of the tool tip for the "Web Developer" button on
# This is used as the text of the tool tip for the "Logging" button on
# the toolbar.
tipPageWebDeveloper=Log messages sent to the "console" object
tipPageLogging=Log messages sent to the "console" object
btnConsoleErrors=Errors
tipConsoleErrors=Log calls to console.error()
btnConsoleInfo=Info

Просмотреть файл

@ -347,6 +347,11 @@
this.video.networkState == this.video.NETWORK_LOADING))
show = true;
// Explicitly hide the status fader if this
// is audio only until bug 619421 is fixed.
if (this.isAudioOnly)
show = false;
this.log("Status overlay: seeking=" + this.video.seeking +
" error=" + this.video.error + " readyState=" + this.video.readyState +
" paused=" + this.video.paused + " ended=" + this.video.ended +

Просмотреть файл

@ -213,7 +213,7 @@
}
/* Web Developer styles */
.webconsole-filter-button[category="webdev"] {
.webconsole-filter-button[category="logging"] {
-moz-image-region: rect(24px, 8px, 32px, 0);
}

Просмотреть файл

@ -267,7 +267,7 @@
}
/* Web Developer styles */
.webconsole-filter-button[category="webdev"] {
.webconsole-filter-button[category="logging"] {
-moz-image-region: rect(24px, 8px, 32px, 0);
}

Просмотреть файл

@ -218,7 +218,7 @@
}
/* Web Developer styles */
.webconsole-filter-button[category="webdev"] {
.webconsole-filter-button[category="logging"] {
-moz-image-region: rect(24px, 8px, 32px, 0);
}