X
點擊此處開啟此網站的行動版。

技術支援討論區

I want Firefox to open in a maximized window

已張貼

That used to happen for years. About 2 months ago Firefox began opening with a 'restored' (i.e. not maximised) window. For a few days in the last fortnight it resumed opening maximised. Now it is opening with a 'restored' window which is wider and shorter than the size used previously.

The localstore.rdf file is dated 09 May 2014.

That used to happen for years. About 2 months ago Firefox began opening with a 'restored' (i.e. not maximised) window. For a few days in the last fortnight it resumed opening maximised. Now it is opening with a 'restored' window which is wider and shorter than the size used previously. The localstore.rdf file is dated 09 May 2014.

被選擇的解決方法

Note that current Firefox releases haven't used localstore.rdf for quite some time and that only xulstore.json is used to store data about windows.

The window size is no longer stored (sizemode: normal;) and thus is it impossible in current releases to force a maximized window or full screen mode on startup.

See also:

從原來的回覆中察看解決方案 1

額外的系統細節

已安裝的外掛程式

  • mplayerplug-in 3.50Video Player Plug-in for QuickTime, RealPlayer and Windows Media Player streams using MPlayer JavaScript Enabled and Using GTK2 Widgets
  • Next Generation Java Plug-in 11.112.2 for Mozilla browsers
  • Shockwave Flash 23.0 r0

應用程式

  • Firefox 50.0.2
  • 使用者代理:Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
  • 技術支援網址:https://support.mozilla.org/1/firefox/50.0.2/Linux/en-GB/

擴充套件

  • Application Update Service Helper 1.0 (aushelper@mozilla.org)
  • CanvasBlocker 0.3.4-Release (CanvasBlocker@kkapsner.de)
  • Classic Theme Restorer 1.5.9 (ClassicThemeRestorer@ArisT2Noia4dev)
  • Default Full Zoom Level 7.7 ({D9A7CBEC-DE1A-444f-A092-844461596C4D})
  • Dimmer 1.3.1-signed.1-signed (dimmer@tejohnso.github.com)
  • Disconnect 3.15.3.1-signed.1-signed (2.0@disconnect.me)
  • Facebook™ Disconnect 0.1.5 (jid0-dBgF7UkIiOsWqvBng4hYu@jetpack)
  • FoxClocks 4.2.3 ({d37dc5d0-431d-44e5-8c91-49419370caa1})
  • Greasemonkey 3.9 ({e4a8a97b-f2ed-450b-b12d-ee082ba24781})
  • Hide Navigation Bar 1.41.1-signed.1-signed (hidenavbar@jaybaldwin)
  • Hide Tabbar 2.1.0.1-signed.1-signed ({7EE8902C-75BE-4286-A6CE-0C483607A322})
  • Location Guard 1.2.3 (jid1-HdwPLukcGQeOSh@jetpack)
  • Multi-process staged rollout 1.5 (e10srollout@mozilla.org)
  • NoScript 2.9.5.2 ({73a6fe31-595d-460b-a920-fcc0f8843232})
  • Nuke Anything Enhanced 1.1.1-signed.1-signed ({1ced4832-f06e-413f-aa14-9eb63ad40ace})
  • Pocket 1.0.5 (firefox@getpocket.com)
  • Referrer Control 0.4.6.1-signed.1-signed (referrercontrol@qixinglu.com)
  • ReminderFox 2.1.5.5.3 ({ada4b710-8346-4b82-8199-5de2b400a6ae})
  • Restart 1.2.8 (Restart@schuzak.jp)
  • Show my Password 2.0.1-signed.1-signed ({cd617372-6743-4ee4-bac4-fbf60f35719e})
  • Tab Mix Plus 0.5.0.1 ({dc572301-7619-498c-a57d-39143191b318})
  • Tiny Menu 2.0.4.1-signed.1-signed ({d33c2f7c-b1e6-4d46-ab0e-be1f6d05c904})
  • Toggle Find Bar 0.2.1.1-signed.1-signed (togglefindbar@ashphy.com)
  • uBlock Origin 1.10.0 (uBlock0@raymondhill.net)
  • Web Compat 1.0 (webcompat@mozilla.org)
  • YouTube ALL HTML5 3.1.0 (jid1-qj0w91o64N7Eeg@jetpack)
  • YouTube Center 2.1.0.1-signed.1-signed (jid1-cwbvBTE216jjpg@jetpack)

JavaScript

  • incrementalGCEnabled: True

圖形

  • adapterDescription: Intel Open Source Technology Center -- Mesa DRI Intel(R) Ivybridge Desktop
  • adapterDeviceID: Mesa DRI Intel(R) Ivybridge Desktop
  • adapterDrivers:
  • adapterRAM:
  • adapterVendorID: Intel Open Source Technology Center
  • crashGuards: []
  • currentAudioBackend: alsa
  • driverDate:
  • driverVersion: 3.0 Mesa 13.0.2
  • featureLog: {u'fallbacks': [], u'features': [{u'status': u'blocked', u'description': u'Compositing', u'log': [{u'status': u'blocked', u'message': u'Acceleration blocked by platform', u'type': u'default'}], u'name': u'HW_COMPOSITING'}, {u'status': u'unavailable', u'description': u'OpenGL Compositing', u'log': [{u'status': u'unavailable', u'message': u'Hardware compositing is disabled', u'type': u'default'}], u'name': u'OPENGL_COMPOSITING'}]}
  • info: {u'AzureCanvasAccelerated': 0, u'AzureCanvasBackend': u'skia', u'AzureFallbackCanvasBackend': u'none', u'CairoUseXRender': 0, u'AzureContentBackend': u'cairo'}
  • numAcceleratedWindows: 0
  • numAcceleratedWindowsMessage: [u'']
  • numTotalWindows: 1
  • supportsHardwareH264: No
  • webgl2Renderer: (no info)
  • webglRenderer: Intel Open Source Technology Center -- Mesa DRI Intel(R) Ivybridge Desktop
  • windowLayerManagerRemote: True
  • windowLayerManagerType: Basic

修改過的偏好設定

其他

  • User JS: 否
  • 輔助功能: 否
FredMcD
  • Top 10 Contributor
4254 個解決方法 59582 個答案

You may have a corrupt xulstore.json or Localstore.rdf file.

https://support.mozilla.org/en-US/kb/changes-toolbars-and-window-sizes-are-not-saved

You may have a corrupt '''xulstore.json''' or '''Localstore.rdf''' file. '''https://support.mozilla.org/en-US/kb/changes-toolbars-and-window-sizes-are-not-saved'''

提出問題者

Thank you. I will try deleting xulstore.json. That file is dated today so I am guessing it is created daily. I am reluctant to delete localstore.rdf because I will then have to re-customise the browser from scratch.

Thank you. I will try deleting xulstore.json. That file is dated today so I am guessing it is created daily. I am reluctant to delete localstore.rdf because I will then have to re-customise the browser from scratch.
the-edmeister
  • Top 25 Contributor
  • Moderator
5406 個解決方法 40223 個答案

With Firefox closed you could try editing the localstore.rdf file.

With Firefox closed you could try editing the localstore.rdf file.

提出問題者

Thanks. What amendments do you suggest? Is there an entry relating to the opening window state?

Thanks. What amendments do you suggest? Is there an entry relating to the opening window state?
John99 971 個解決方法 13138 個答案

有幫助的回覆

It may be worth noting that if you rename localstore.rdf whilst firefox is closed it will be recreated when it restarts. If the problem goes away you know that localstore.rdf was part of the problem.

Comparing the two versions of the files may help to identify the problem. Make additional versions and try editing and renaming them to fix the issue.

It may be worth noting that if you rename localstore.rdf whilst firefox is closed it will be recreated when it restarts. If the problem goes away you know that localstore.rdf was part of the problem. Comparing the two versions of the files may help to identify the problem. Make additional versions and try editing and renaming them to fix the issue.
cor-el
  • Top 10 Contributor
  • Moderator
17521 個解決方法 158427 個答案

選擇的解決方法

Note that current Firefox releases haven't used localstore.rdf for quite some time and that only xulstore.json is used to store data about windows.

The window size is no longer stored (sizemode: normal;) and thus is it impossible in current releases to force a maximized window or full screen mode on startup.

See also:

Note that current Firefox releases haven't used localstore.rdf for quite some time and that only xulstore.json is used to store data about windows. The window size is no longer stored (sizemode: normal;) and thus is it impossible in current releases to force a maximized window or full screen mode on startup. See also: *https://developer.mozilla.org/Command_Line_Options
bygabyga 15 個解決方法 171 個答案

Similar issue

Firefox overwrites window manager rules by restoring window size / position after startup

>OS GNU/Linux >Firefox 52 >WM Openbox

>What happens /0 Start Firefox /1 Firefox window is maximized as per Openbox rule /2 Firefox window is resized to before closed previous state

I know this because it does not maximize if I turn off the Openbox rule it starts with /2 instead

I would like to disable /2 i.e. remember size / position before close

Similar issue Firefox overwrites window manager rules by restoring window size / position after startup >OS GNU/Linux >Firefox 52 >WM Openbox >What happens /0 Start Firefox /1 Firefox window is maximized as per Openbox rule /2 Firefox window is resized to before closed previous state I know this because it does not maximize if I turn off the Openbox rule it starts with /2 instead I would like to disable /2 i.e. remember size / position before close
cor-el
  • Top 10 Contributor
  • Moderator
17521 個解決方法 158427 個答案

Hi bygabyga

I don't think that that is possible. Firefox no longer stores the maximized and full-screen mode state in xulstore.json, but stores the last unmaximized settings like I posted above. So Firefox will always with the last used settings or with the defaults if you would clear this data from xulstore.json. You can check this for yourself by inspecting the xulstore.json file and modifying the main-window section.

"main-window":{"screenX":"44","screenY":"-12","width":"1280","height":"920","sizemode":"normal"}
Hi bygabyga I don't think that that is possible. Firefox no longer stores the maximized and full-screen mode state in xulstore.json, but stores the last unmaximized settings like I posted above. So Firefox will always with the last used settings or with the defaults if you would clear this data from xulstore.json. You can check this for yourself by inspecting the xulstore.json file and modifying the main-window section. <pre>"main-window":{"screenX":"44","screenY":"-12","width":"1280","height":"920","sizemode":"normal"}</pre>