Skip to content

Commit

Permalink
Changelog for 5.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mastef committed Apr 28, 2020
1 parent 19b9222 commit bc57f23
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
5.1.6
=====
- Fix: Pressing "enter" or "return" when only one tab is selected, should focus that tab properly in Firefox
- Reduce options that would be restored in sessions, to limit conflicts
- Make inputs selectable in Firefox! You can now select text again in title, search and option inputs, etc.

5.1.5
=====
- Feature: Changing the name of a window will set change the windows' title in Firefox as well
Expand Down
7 changes: 7 additions & 0 deletions changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ <h3>Here's what's planned for future versions</h3>
<h3>Here's what's new since the last time</h3>
<div class="toggle-box">

<h3>5.1.6</h3>
<ul>
<li>Fix: Pressing "enter" or "return" when only one tab is selected, should focus that tab properly in Firefox</li>
<li>Reduce options that would be restored in sessions, to limit conflicts</li>
<li>Make inputs selectable in Firefox! You can now select text again in title, search and option inputs, etc. </li>
</ul>

<h3>5.1.5</h3>
<ul>
<li>Feature: Changing the name of a window will set change the windows' title in Firefox as well</li>
Expand Down
8 changes: 4 additions & 4 deletions outlib/Session.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@ Session = function (_React$Component) {_inherits(Session, _React$Component);
customName = this.props.window.name;
}

whitelistWindow = ["url", "tabId", "left", "top", "width", "height", "focused", "incognito", "type", "setSelfAsOpener"];
whitelistWindow = ["left", "top", "width", "height", "incognito", "type"];

if (navigator.userAgent.search("Firefox") > -1) {
whitelistWindow = ["url", "tabId", "left", "top", "width", "height", "incognito", "type", "setSelfAsOpener"];
whitelistWindow = ["left", "top", "width", "height", "incognito", "type"];
}

whitelistTab = ["windowId", "index", "url", "active", "selected", "pinned"];
whitelistTab = ["url", "active", "selected", "pinned"];

if (navigator.userAgent.search("Firefox") > -1) {
whitelistTab = ["windowId", "index", "url", "active", "pinned"];
whitelistTab = ["url", "active", "pinned"];
}

filteredWindow = Object.keys(this.props.window.windowsInfo).
Expand Down
20 changes: 12 additions & 8 deletions outlib/TabManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -663,16 +663,20 @@ TabManager = function (_React$Component) {_inherits(TabManager, _React$Component
return _this3.state.tabsbyid[id];
});if (!(

count == 0)) {_context5.next = 7;break;}
browser.windows.create({});_context5.next = 18;break;case 7:if (!(
count == 1)) {_context5.next = 14;break;}_context5.next = 10;return (
browser.runtime.getBackgroundPage());case 10:backgroundPage = _context5.sent;
backgroundPage.focusOnTabAndWindow(tabs[0]);_context5.next = 18;break;case 14:_context5.next = 16;return (
count == 0)) {_context5.next = 8;break;}_context5.next = 6;return (
browser.windows.create({}));case 6:_context5.next = 19;break;case 8:if (!(
count == 1)) {_context5.next = 15;break;}_context5.next = 11;return (
browser.runtime.getBackgroundPage());case 11:backgroundPage = _context5.sent;
if (navigator.userAgent.search("Firefox") > -1) {
backgroundPage.focusOnTabAndWindowDelayed(tabs[0]);
} else {
backgroundPage.focusOnTabAndWindow(tabs[0]);
}_context5.next = 19;break;case 15:_context5.next = 17;return (

browser.runtime.getBackgroundPage());case 16:backgroundPage = _context5.sent;
backgroundPage.createWindowWithTabs(tabs);case 18:
browser.runtime.getBackgroundPage());case 17:backgroundPage = _context5.sent;
backgroundPage.createWindowWithTabs(tabs);case 19:

if (!!window.inPopup) window.close();case 19:case "end":return _context5.stop();}}}, _callee5, this);}));function addWindow() {return _ref5.apply(this, arguments);}return addWindow;}() }, { key: "pinTabs", value: function () {var _ref6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {var _this4, tabs, i, t;return regeneratorRuntime.wrap(function _callee6$(_context6) {while (1) {switch (_context6.prev = _context6.next) {case 0:
if (!!window.inPopup) window.close();case 20:case "end":return _context5.stop();}}}, _callee5, this);}));function addWindow() {return _ref5.apply(this, arguments);}return addWindow;}() }, { key: "pinTabs", value: function () {var _ref6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {var _this4, tabs, i, t;return regeneratorRuntime.wrap(function _callee6$(_context6) {while (1) {switch (_context6.prev = _context6.next) {case 0:


_this4 = this;
Expand Down

0 comments on commit bc57f23

Please sign in to comment.