Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Fix fullscreen not working + menu refactor (fix #1206) #1210

Merged
merged 28 commits into from
Jun 7, 2021

Conversation

TheCleric
Copy link
Collaborator

@TheCleric TheCleric commented Jun 2, 2021

Fixes #1206

@TheCleric TheCleric requested a review from ronjouch June 2, 2021 19:24
Copy link
Contributor

@ronjouch ronjouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except a few nits & questions. Letting you address or ignore as you please and feel free to merge

package.json Show resolved Hide resolved
package.json Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
app/src/helpers/windowHelpers.ts Show resolved Hide resolved
app/src/components/mainWindow.ts Show resolved Hide resolved
app/src/components/menu.ts Show resolved Hide resolved
app/src/components/menu.ts Show resolved Hide resolved
app/src/components/menu.ts Show resolved Hide resolved
app/src/components/menu.ts Show resolved Hide resolved
app/src/components/menu.ts Show resolved Hide resolved
@ronjouch ronjouch changed the title Resolves #1206; Fix issues with fullscreen not working + menu refactor Fix fullscreen not working + menu refactor (fix #1206) Jun 4, 2021
@TheCleric TheCleric merged commit cdc6fa7 into nativefier:master Jun 7, 2021
@TheCleric TheCleric deleted the fix/fullscreen_not_working branch June 7, 2021 12:55
ronjouch added a commit that referenced this pull request Jun 7, 2021
```
Uncaught Exception:
TypeError: Cannot read property 'show' of undefined
at App.<anonymous> (/src/main.ts:177:18)
```

Seems like an oversight of the recent refactor.

* macOS: fix crash on activating main window (fix #1210)
* Eliminate need for global mainWindow, refactor widevine / non-widevine events (#1218)

Co-authored-by: Adam Weeden <adamweeden@gmail.com>
Adam777Z pushed a commit to Adam777Z/nativefier that referenced this pull request Nov 9, 2022
…ivefier#1210)

* Catch promise errors better

* Move subFunctions to bottom of createNewWindow

* Use parents when creating child BrowserWindow instances

* Some about:blank pages have an anchor (for some reason)

* Inject browserWindowOptions better

* Interim refactor to MainWindow object

* Split up the window functions/helpers/events some

* Further separate out window functions + tests

* Add a mock for unit testing functions that access electron

* Add unit tests for onWillPreventUnload

* Improve windowEvents tests

* Add the first test for windowHelpers

* Move WebRequest event handling to node

* insertCSS completely under test

* clearAppData completely under test

* Fix contextMenu require bug

* More tests + fixes

* Fix + add to createNewTab tests

* Convert createMainWindow back to func + work out gremlins

* Move setupWindow away from main since its shared

* Make sure contextMenu is handling promises

* Fix issues with fullscreen not working + menu refactor

* Run jest against app/dist so that we can hit app unit tests as well

* Requested PR changes
Adam777Z pushed a commit to Adam777Z/nativefier that referenced this pull request Nov 9, 2022
…ativefier#1213)

```
Uncaught Exception:
TypeError: Cannot read property 'show' of undefined
at App.<anonymous> (/src/main.ts:177:18)
```

Seems like an oversight of the recent refactor.

* macOS: fix crash on activating main window (fix nativefier#1210)
* Eliminate need for global mainWindow, refactor widevine / non-widevine events (nativefier#1218)

Co-authored-by: Adam Weeden <adamweeden@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot make Nativefier apps full-screen on macOS
2 participants