Request params type test
+ + + + + diff --git a/browser/devtools/netmonitor/test/html_post-raw-test-page.html b/browser/devtools/netmonitor/test/html_post-raw-test-page.html index f8dc65783960..cee76e0a8371 100644 --- a/browser/devtools/netmonitor/test/html_post-raw-test-page.html +++ b/browser/devtools/netmonitor/test/html_post-raw-test-page.html @@ -15,6 +15,7 @@ function post(aAddress, aMessage, aCallback) { var xhr = new XMLHttpRequest(); xhr.open("POST", aAddress, true); + xhr.setRequestHeader("content-type", "application/x-www-form-urlencoded"); xhr.onreadystatechange = function() { if (this.readyState == this.DONE) { @@ -25,7 +26,7 @@ } function performRequests() { - var rawData = "Content-Type: application/x-www-form-urlencoded\r\n\r\nfoo=bar&baz=123"; + var rawData = "foo=bar&baz=123"; post("sjs_simple-test-server.sjs", rawData, function() { // Done. }); diff --git a/browser/devtools/sourceeditor/editor.js b/browser/devtools/sourceeditor/editor.js index 40fc18e1b2fa..30b08aeb849d 100644 --- a/browser/devtools/sourceeditor/editor.js +++ b/browser/devtools/sourceeditor/editor.js @@ -153,8 +153,8 @@ function Editor(config) { // Additional shortcuts. this.config.extraKeys[Editor.keyFor("jumpToLine")] = () => this.jumpToLine(); - this.config.extraKeys[Editor.keyFor("moveLineUp")] = () => this.moveLineUp(); - this.config.extraKeys[Editor.keyFor("moveLineDown")] = () => this.moveLineDown(); + this.config.extraKeys[Editor.keyFor("moveLineUp", { noaccel: true })] = () => this.moveLineUp(); + this.config.extraKeys[Editor.keyFor("moveLineDown", { noaccel: true })] = () => this.moveLineDown(); this.config.extraKeys[Editor.keyFor("toggleComment")] = "toggleComment"; // Disable ctrl-[ and ctrl-] because toolbox uses those shortcuts. @@ -844,12 +844,13 @@ Editor.accel = function (key, modifiers={}) { /** * Returns a string representation of a shortcut for a - * specified command 'cmd'. Cmd- for macs, Ctrl- for other - * platforms. Useful when overwriting or disabling default - * shortcuts. + * specified command 'cmd'. Append Cmd- for macs, Ctrl- for other + * platforms unless noaccel is specified in the options. Useful when overwriting + * or disabling default shortcuts. */ -Editor.keyFor = function (cmd) { - return Editor.accel(L10N.GetStringFromName(cmd + ".commandkey")); +Editor.keyFor = function (cmd, opts={ noaccel: false }) { + let key = L10N.GetStringFromName(cmd + ".commandkey"); + return opts.noaccel ? key : Editor.accel(key); }; // Since Gecko already provide complete and up to date list of CSS property diff --git a/browser/devtools/styleeditor/test/browser.ini b/browser/devtools/styleeditor/test/browser.ini index 248028c5d2c2..94c769415b78 100644 --- a/browser/devtools/styleeditor/test/browser.ini +++ b/browser/devtools/styleeditor/test/browser.ini @@ -31,6 +31,7 @@ support-files = [browser_styleeditor_autocomplete.js] [browser_styleeditor_bug_740541_iframes.js] +skip-if = os == "linux" || "mac" # bug 949355 [browser_styleeditor_bug_851132_middle_click.js] [browser_styleeditor_bug_870339.js] [browser_styleeditor_cmd_edit.js] diff --git a/browser/locales/en-US/chrome/browser/devtools/netmonitor.dtd b/browser/locales/en-US/chrome/browser/devtools/netmonitor.dtd index b213448292d4..79aa7149cb28 100644 --- a/browser/locales/en-US/chrome/browser/devtools/netmonitor.dtd +++ b/browser/locales/en-US/chrome/browser/devtools/netmonitor.dtd @@ -68,6 +68,10 @@ - in the network details pane identifying the timings tab. --> + + + diff --git a/browser/locales/en-US/chrome/browser/devtools/sourceeditor.properties b/browser/locales/en-US/chrome/browser/devtools/sourceeditor.properties index aa223a3effc4..170b9ba271b9 100644 --- a/browser/locales/en-US/chrome/browser/devtools/sourceeditor.properties +++ b/browser/locales/en-US/chrome/browser/devtools/sourceeditor.properties @@ -49,17 +49,17 @@ annotation.currentLine=Current line # user-defined lines. annotation.debugLocation.title=Current step: %S -# LOCALIZATION NOTE (jumpToLine.commandkey): This the key to use in +# LOCALIZATION NOTE (jumpToLine.commandkey): This is the key to use in # conjunction with accel (Command on Mac or Ctrl on other platforms) to jump to # a specific line in the editor. jumpToLine.commandkey=J -# LOCALIZATION NOTE (toggleComment.commandkey): This the key to use in +# LOCALIZATION NOTE (toggleComment.commandkey): This is the key to use in # conjunction with accel (Command on Mac or Ctrl on other platforms) to either # comment or uncomment selected lines in the editor. toggleComment.commandkey=/ -# LOCALIZATION NOTE (toolboxPrevTool.commandkey): This the key to use in +# LOCALIZATION NOTE (indentLess.commandkey): This is the key to use in # conjunction with accel (Command on Mac or Ctrl on other platforms) to reduce # indentation level in CodeMirror. However, its default value also used by # the Toolbox to switch between tools so we disable it. @@ -67,7 +67,7 @@ toggleComment.commandkey=/ # DO NOT translate this key without proper synchronization with toolbox.dtd. indentLess.commandkey=[ -# LOCALIZATION NOTE (toolboxPrevTool.commandkey): This the key to use in +# LOCALIZATION NOTE (indentMore.commandkey): This is the key to use in # conjunction with accel (Command on Mac or Ctrl on other platforms) to increase # indentation level in CodeMirror. However, its default value also used by # the Toolbox to switch between tools @@ -75,12 +75,10 @@ indentLess.commandkey=[ # DO NOT translate this key without proper synchronization with toolbox.dtd. indentMore.commandkey=] -# LOCALIZATION NOTE (moveLineUp.commandkey): This the key to use in -# conjunction with accel (Command on Mac or Ctrl on other platforms) to move +# LOCALIZATION NOTE (moveLineUp.commandkey): This is the key to use to move # the selected lines up. moveLineUp.commandkey=Alt-Up -# LOCALIZATION NOTE (moveLineDown.commandkey): This the key to use in -# conjunction with accel (Command on Mac or Ctrl on other platforms) to move +# LOCALIZATION NOTE (moveLineDown.commandkey): This is the key to use to move # the selected lines down. moveLineDown.commandkey=Alt-Down diff --git a/browser/metro/base/content/bindings/console.xml b/browser/metro/base/content/bindings/console.xml index 627da33a1ed0..33ddf91e85b7 100644 --- a/browser/metro/base/content/bindings/console.xml +++ b/browser/metro/base/content/bindings/console.xml @@ -3,7 +3,6 @@ - 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/. --> - %browserDTD; @@ -13,7 +12,6 @@ xmlns="http://www.mozilla.org/xbl" xmlns:xbl="http://www.mozilla.org/xbl" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> -