Skip to content

Commit

Permalink
Merge branch 'current' of github.com:MrAlex94/Waterfox into current
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Kontos committed Aug 4, 2020
2 parents afbe679 + fffa8a9 commit 5694f91
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 21 additions & 1 deletion browser/components/customizableui/content/toolbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,25 @@
<constructor><![CDATA[
let scope = {};
ChromeUtils.import("resource:///modules/CustomizableUI.jsm", scope);
if (document.readyState == "complete") {
this._init();
} else {
// Need to wait until XUL overlays are loaded. See bug 554279.
let self = this;
document.addEventListener("readystatechange", function onReadyStateChange() {
if (document.readyState != "complete")
return;
document.removeEventListener("readystatechange", onReadyStateChange);
self._init();
});
}
]]></constructor>

<method name="_init">
<body><![CDATA[
let scope = {};
ChromeUtils.import("resource:///modules/CustomizableUI.jsm", scope);
let CustomizableUI = scope.CustomizableUI;
// Searching for the toolbox palette in the toolbar binding because
Expand All @@ -34,7 +53,8 @@
.filter(node => node.getAttribute("skipintoolbarset") != "true" && node.id)
.map(node => node.id);
CustomizableUI.registerToolbarNode(this, children);
]]></constructor>
]]></body>
</method>

<method name="insertItem">
<parameter name="aId"/>
Expand Down
2 changes: 2 additions & 0 deletions security/sandbox/linux/SandboxFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,8 @@ class ContentSandboxPolicy : public SandboxPolicyCommon {

case __NR_getpriority:
case __NR_setpriority:
case __NR_sched_getattr:
case __NR_sched_setattr:
case __NR_sched_get_priority_min:
case __NR_sched_get_priority_max:
case __NR_sched_getscheduler:
Expand Down

0 comments on commit 5694f91

Please sign in to comment.