Skip to content

Commit

Permalink
Version up v0.31.2.
Browse files Browse the repository at this point in the history
Fixed Address bar bug.
Fixed a problem when maximizing the screen.
Changing chrome startup parameters.
  • Loading branch information
kura52 committed Mar 15, 2020
1 parent e3c8915 commit 495bc40
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.31.1
0.31.2
8 changes: 4 additions & 4 deletions ja/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ Puppeteer(ヘッドレスChromeでの自動化) APIと互換性のあるAPIを

各プラットフォームに対し、インストーラとポータブル版の両方がダウンロードできます。

- [Windows Installer v0.31.1](https://github.com/kura52/sushi-browser/releases/download/0.31.1/sushi-browser-0.31.1-setup-x64.exe)
- [Windows Portable v0.31.1(Chromium同梱)](https://github.com/kura52/sushi-browser/releases/download/0.31.1/sushi-browser-0.31.1-win-x64-chromium.zip)
- [Windows Portable v0.31.1(Brave同梱)](https://github.com/kura52/sushi-browser/releases/download/0.31.1/sushi-browser-0.31.1-win-x64-brave.zip)
- [Windows Portable v0.31.1](https://github.com/kura52/sushi-browser/releases/download/0.31.1/sushi-browser-0.31.1-win-x64.zip)
- [Windows Installer v0.31.2](https://github.com/kura52/sushi-browser/releases/download/0.31.2/sushi-browser-0.31.2-setup-x64.exe)
- [Windows Portable v0.31.2(Chromium同梱)](https://github.com/kura52/sushi-browser/releases/download/0.31.2/sushi-browser-0.31.2-win-x64-chromium.zip)
- [Windows Portable v0.31.2(Brave同梱)](https://github.com/kura52/sushi-browser/releases/download/0.31.2/sushi-browser-0.31.2-win-x64-brave.zip)
- [Windows Portable v0.31.2](https://github.com/kura52/sushi-browser/releases/download/0.31.2/sushi-browser-0.31.2-win-x64.zip)
- [MacOS dmg v0.27.0](https://github.com/kura52/sushi-browser/releases/download/0.27.0/SushiBrowser-0.27.0.dmg)
- [MacOS Portable v0.27.0](https://github.com/kura52/sushi-browser/releases/download/0.27.0/sushi-browser-0.27.0-mac-x64.zip)
- [Linux rpm (for Fedora/CentOS) v0.29.1](https://github.com/kura52/sushi-browser/releases/download/0.29.1/sushi-browser-0.29.1-1.x86_64.rpm)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sushi-browser",
"version": "0.31.1",
"version": "0.31.2",
"description": "Sushi Browser",
"main": "./lib/main.js",
"author": "kura52",
Expand Down
3 changes: 2 additions & 1 deletion src/BrowserWindowPlus.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function browserWindowMaximizeObserve(){
if(browserWindowMaximizeObserved) return
setInterval(() =>{
for(let bw of BrowserWindow.getAllWindows()){
if(bw._isVirtualMaximized){
if(bw._isVirtualMaximized && Date.now() - bw._isVirtualMaximizedTime > 1500){
const b = bw.getBounds()
const ms = bw._maximizedSize
if(b.x != ms.x || b.y != ms.y || b.width != ms.width || b.height != ms.height){
Expand Down Expand Up @@ -423,6 +423,7 @@ function create(args){
bw._isVirtualMaximized = false
}
else{
bw._isVirtualMaximizedTime = Date.now()
bw._isVirtualMaximized = bw._initVirtualMaximized || bw.getNormalBounds()
bw._initVirtualMaximized = void 0

Expand Down
3 changes: 2 additions & 1 deletion src/remoted-chrome/Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ Or, please use the Chromium bundled version.`
// '--test-type',
'--disable-default-apps',
// '--disable-dev-shm-usage',
'--disable-features=site-per-process,BlinkGenPropertyTrees,WebContentsOcclusion',
'--disable-features=WebContentsOcclusion',
// '--disable-features=site-per-process,BlinkGenPropertyTrees,WebContentsOcclusion',
// '--disable-features=site-per-process',
`--user-data-dir=${this.userDataDir}`,
`--load-extension=${path.resolve(__dirname, '../../resource/extension/default/1.0_0/').replace(/app.asar([\/\\])/,'app.asar.unpacked$1')}`,
Expand Down
2 changes: 1 addition & 1 deletion src/remoted-chrome/BrowserView.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class BrowserView {
}
this.newPanelCreateing = true

if(url) try{ new URL(url) }catch(e){ url = mainState.searchProviders[mainState.searchEngine].search.replace('%s',url) }
if(url) try{ new URL(url) }catch(e){ url = mainState.searchProviders[mainState.searchEngine].search.replace('%s',encodeURIComponent(url)) }

if (panelKey) {
const panel = BrowserPanel.getBrowserPanel(panelKey)
Expand Down
2 changes: 1 addition & 1 deletion src/remoted-chrome/webContents.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ export default class webContents extends EventEmitter {
}
}

try{ new URL(url) }catch(e){ url = mainState.searchProviders[mainState.searchEngine].search.replace('%s',url) }
try{ new URL(url) }catch(e){ url = mainState.searchProviders[mainState.searchEngine].search.replace('%s',encodeURIComponent(url)) }
;(await this._getPage()).goto(url)

// Browser.bg.evaluate((tabId, url) => {
Expand Down
4 changes: 2 additions & 2 deletions src/render/TabPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4806,10 +4806,10 @@ export default class TabPanel extends Component {
const searchs = searchMethod.multiple
let urls
if(tab.privateMode == 'persist:tor'){
urls = searchs.map(engine=> searchProviders[engine].search.replace('www.google.com/search','duckduckgo.com/').replace('tbs=qdr:','df=').replace('%s',text))
urls = searchs.map(engine=> searchProviders[engine].search.replace('www.google.com/search','duckduckgo.com/').replace('tbs=qdr:','df=').replace('%s',encodeURIComponent(text)))
}
else{
urls = searchs.map(engine=> searchProviders[engine].search.replace('%s',text))
urls = searchs.map(engine=> searchProviders[engine].search.replace('%s',encodeURIComponent(text)))
}

if(searchMethod.type == 'basic' || searchMethod.type == 'two'){
Expand Down
8 changes: 5 additions & 3 deletions tools/versionUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ const glob = require("glob")
const BEFORE_CODE_NAME = 'Fugu(Pufferfish)'
const CODE_NAME = 'Fugu(Pufferfish)'
const CURRENT_APP_VERSION = fs.readFileSync('../VERSION.txt').toString()
const NEXT_APP_VERSION = "0.31.1"
const NEXT_APP_VERSION = "0.31.2"
const NEXT_APP_VERSION2 = `${NEXT_APP_VERSION.split(".").slice(0,-1).join('.')}${NEXT_APP_VERSION.split(".").slice(-1)[0]}`

const CHANGE_ENGLISH =`Fixed Address bar bug.
Fixed a problem when maximizing the screen.`
Fixed a problem when maximizing the screen.
Changing chrome startup parameters.`

const CHANGE_JAPANESE = `アドレスバーの不具合修正
画面最大化時の不具合を修正`
画面最大化時の不具合を修正
クロームの起動パラメータの変更`

const isWindows = process.platform === 'win32'
const isDarwin = process.platform === 'darwin'
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ module.exports = [
// merge({fileName:"tabHistorySidebar.js",src:path.join(__dirname,"./src/toolPages"),dest:path.join(__dirname,"./resource/extension/default/1.0_0/js")},baseConfig2),
// merge({fileName:"tabTrashHistorySidebar.js",src:path.join(__dirname,"./src/toolPages"),dest:path.join(__dirname,"./resource/extension/default/1.0_0/js")},baseConfig2),

merge({fileName:"noteSidebar.js",src:path.join(__dirname,"./src/toolPages"),dest:path.join(__dirname,"./resource/extension/default/1.0_0/js")},baseConfig2),
// merge({fileName:"noteSidebar.js",src:path.join(__dirname,"./src/toolPages"),dest:path.join(__dirname,"./resource/extension/default/1.0_0/js")},baseConfig2),

// merge({fileName:"savedStateSidebar.js",src:path.join(__dirname,"./src/toolPages"),dest:path.join(__dirname,"./resource/extension/default/1.0_0/js")},baseConfig2),
// merge({fileName:"historySidebar.js",src:path.join(__dirname,"./src/toolPages"),dest:path.join(__dirname,"./resource/extension/default/1.0_0/js")},baseConfig2),
Expand All @@ -139,7 +139,7 @@ module.exports = [
// merge({fileName:"mobilePanel.js",src:path.join(__dirname,"./src/defaultExtension/"),dest:path.join(__dirname,"./resource/extension/default/1.0_0/js")},baseConfigExt),
// merge({fileName:"videoControllerSidebar.js",src:path.join(__dirname,"./src/toolPages"),dest:path.join(__dirname,"./resource/extension/default/1.0_0/js")},baseConfig2),

// merge({fileName:"contentscript.js",src:path.join(__dirname,"./src/defaultExtension/"),dest:path.join(__dirname,"./resource/extension/default/1.0_0/js")},baseConfigExt),
merge({fileName:"contentscript.js",src:path.join(__dirname,"./src/defaultExtension/"),dest:path.join(__dirname,"./resource/extension/default/1.0_0/js")},baseConfigExt),
// merge({fileName:"bg.js",src:path.join(__dirname,"./src/defaultExtension/"),dest:path.join(__dirname,"./resource/extension/default/1.0_0/js")},baseConfigExt),
]

0 comments on commit 495bc40

Please sign in to comment.