Skip to content

Commit

Permalink
Merge fx-team to central, a=merge CLOSED TREE
Browse files Browse the repository at this point in the history
  • Loading branch information
KWierso committed Aug 16, 2016
2 parents 0f328cb + 8c1dd2a commit 320d215
Show file tree
Hide file tree
Showing 59 changed files with 1,501 additions and 607 deletions.
9 changes: 4 additions & 5 deletions browser/base/content/aboutNetError.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,11 @@
// display debug information about the cert error.
var errorCode = document.getElementById("errorCode");
if (errorCode) {
errorCode.href = "#technicalInformation";
errorCode.href = "javascript:void(0)";
errorCode.addEventListener("click", () => {
var div = document.getElementById("certificateErrorDebugInformation");
if (toggleDisplay(div) == "block") {
div.scrollIntoView({block: "start", behavior: "smooth"});
let debugInfo = document.getElementById("certificateErrorDebugInformation");
if (toggleDisplay(debugInfo) == "block") {
debugInfo.scrollIntoView({block: "start", behavior: "smooth"});
}
}, false);
}
Expand Down Expand Up @@ -646,7 +646,6 @@
</div>

<div id="certificateErrorDebugInformation">
<a name="technicalInformation"></a>
<button id="copyToClipboard">&certerror.copyToClipboard.label;</button>
<div id="certificateErrorText"/>
<button id="copyToClipboard">&certerror.copyToClipboard.label;</button>
Expand Down
2 changes: 0 additions & 2 deletions browser/base/content/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6787,7 +6787,6 @@ var gIdentityHandler = {

if (this._identityPopup.state == "open") {
this.updateSitePermissions();
this._identityPopupMultiView.setHeightToFit();
}
},

Expand Down Expand Up @@ -7306,7 +7305,6 @@ var gIdentityHandler = {
button.setAttribute("class", "identity-popup-permission-remove-button");
button.addEventListener("command", () => {
this._permissionList.removeChild(container);
this._identityPopupMultiView.setHeightToFit();
if (aPermission.inUse &&
["camera", "microphone", "screen"].includes(aPermission.id)) {
let windowId = this._sharingState.windowId;
Expand Down
2 changes: 1 addition & 1 deletion browser/components/controlcenter/content/panel.inc.xul
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<panelmultiview id="identity-popup-multiView"
mainViewId="identity-popup-mainView">
<panelview id="identity-popup-mainView" flex="1">
<panelview id="identity-popup-mainView">

<!-- Security Section -->
<hbox id="identity-popup-security" class="identity-popup-section">
Expand Down
4 changes: 2 additions & 2 deletions browser/components/customizableui/content/panelUI.xml
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
break;
case "popuphidden":
this.removeAttribute("panelopen");
this._mainView.style.removeProperty("height");
this._mainView.style.removeProperty("max-height");
this.showMainView();
this._mainViewObserver.disconnect();
break;
Expand Down Expand Up @@ -346,7 +346,7 @@
// Ignore the mutation that'll fire when we set the height of
// the main view.
this.ignoreMutations = true;
this._mainView.style.height =
this._mainView.style.maxHeight =
this.getBoundingClientRect().height + "px";
this.ignoreMutations = false;
]]></body>
Expand Down
3 changes: 3 additions & 0 deletions build/moz.configure/old.configure
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def old_configure_options(*options):

@old_configure_options(
'--cache-file',
'--datadir',
'--enable-accessibility',
'--enable-address-sanitizer',
'--enable-alsa',
Expand Down Expand Up @@ -260,6 +261,8 @@ def old_configure_options(*options):
'--enable-webspeechtestbackend',
'--enable-xul',
'--enable-zipwriter',
'--includedir',
'--libdir',
'--no-create',
'--prefix',
'--with-adjust-sdk-keyfile',
Expand Down
3 changes: 3 additions & 0 deletions devtools/client/debugger/test/mochitest/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ support-files =
doc_terminate-on-tab-close.html
doc_watch-expressions.html
doc_watch-expression-button.html
doc_whitespace-property-names.html
doc_with-frame.html
doc_worker-source-map.html
doc_WorkerActor.attach-tab1.html
Expand Down Expand Up @@ -521,6 +522,8 @@ skip-if = e10s && debug
skip-if = e10s && debug
[browser_dbg_variables-view-07.js]
skip-if = e10s && debug
[browser_dbg_variables-view-08.js]
skip-if = e10s && debug
[browser_dbg_variables-view-accessibility.js]
subsuite = clipboard
skip-if = e10s && debug
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,5 @@ var test = Task.async(function* () {
}
}

debugger;

resumeDebuggerThenCloseAndFinish(panel);
});
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ var test = Task.async(function* () {
ok(scope, "Should get the current function's scope.");

let proxy;
[...scope].forEach(function([name, value]) {
if(name === "proxy") proxy = value;
});
for (let [name, value] of scope) {
if (name === "proxy") {
proxy = value;
}
}
ok(proxy, "Should have found the proxy variable");

info("Expanding variable 'proxy'");
Expand All @@ -52,16 +54,16 @@ var test = Task.async(function* () {
}
} else {
is(property, "<handler>", "There shouldn't be properties other than <target> and <handler>");
for(let [subprop, subdata] of data) if(subprop === "name") {
is(subdata.value, "handler", "The value of '<handler>' should be the [[ProxyHandler]]");
foundHandler = true;
for (let [subprop, subdata] of data) {
if(subprop === "name") {
is(subdata.value, "handler", "The value of '<handler>' should be the [[ProxyHandler]]");
foundHandler = true;
}
}
}
}
ok(foundTarget, "Should have found the '<target>' property containing the [[ProxyTarget]]");
ok(foundHandler, "Should have found the '<handler>' property containing the [[ProxyHandler]]");

debugger;

resumeDebuggerThenCloseAndFinish(panel);
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */

/**
* Test that property values are not missing when the property names only contain whitespace.
*/

const TAB_URL = EXAMPLE_URL + "doc_whitespace-property-names.html";

var test = Task.async(function* () {
let options = {
source: TAB_URL,
line: 1
};
var dbg = initDebugger(TAB_URL, options);
const [tab,, panel] = yield dbg;
const debuggerLineNumber = 24;
const scopes = waitForCaretAndScopes(panel, debuggerLineNumber);
callInTab(tab, "doPause");
yield scopes;

const variables = panel.panelWin.DebuggerView.Variables;
ok(variables, "Should get the variables view.");

const scope = [...variables][0];
ok(scope, "Should get the current function's scope.");

let obj;
for (let [name, value] of scope) {
if (name === "obj") {
obj = value;
}
}
ok(obj, "Should have found the 'obj' variable");

info("Expanding variable 'obj'");
let expanded = once(variables, "fetched");
obj.expand();
yield expanded;

let values = [" ", "\r", "\n", "\t", "\f", "\uFEFF", "\xA0"];
let count = values.length;

for (let [property, value] of obj) {
let index = values.indexOf(property);
if (index >= 0) {
--count;
is(value._nameString, property,
"The _nameString is different than the property name");
is(value._valueString, index + "",
"The _valueString is different than the stringified value");
is(value._valueLabel.getAttribute("value"), index + "",
"The _valueLabel value is different than the stringified value");
}
}
is(count, 0, "There are " + count + " missing properties");

resumeDebuggerThenCloseAndFinish(panel);
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!DOCTYPE html>

<html>
<head>
<meta charset="utf-8"/>
<title>Debugger + Whitespace property name test page</title>
</head>

<body>
<script>
window.obj = {
" ": 0,
"\r": 1,
"\n": 2,
"\t": 3,
"\f": 4,
"\uFEFF": 5,
"\xA0": 6
};
window.doPause = function () {
var obj = window.obj;
debugger;
};
</script>
</body>

</html>
Loading

0 comments on commit 320d215

Please sign in to comment.