Expose IsOffScreen method always to JS. by alespergl · Pull Request #12530 · electron/electron · GitHub
Skip to content

Expose IsOffScreen method always to JS.#12530

Merged
ckerr merged 1 commit into
masterfrom
fix_isoffscreen
Apr 4, 2018
Merged

Expose IsOffScreen method always to JS.#12530
ckerr merged 1 commit into
masterfrom
fix_isoffscreen

Conversation

@alespergl

Copy link
Copy Markdown
Contributor

isOffscreen should be available to JS even when OSR is disabled in build.

This needs to be backported to 2.0, where isOffscreen is actually called from lib/browser/rpc-server.js

@alespergl alespergl requested a review from a team April 4, 2018 13:29
@MarshallOfSound MarshallOfSound added semver/minor backwards-compatible functionality and removed target/2-0-x labels Apr 4, 2018
@MarshallOfSound

Copy link
Copy Markdown
Member

@alespergl

Copy link
Copy Markdown
Contributor Author

Well, as I mentioned, in 2.0 there's code which calls isOffscreen and when you build Electron without OSR, it crashes.

Since this API is available under normal circumstances, would we still say we're adding it?

@MarshallOfSound MarshallOfSound added target/2-0-x and removed semver/minor backwards-compatible functionality labels Apr 4, 2018
@MarshallOfSound

Copy link
Copy Markdown
Member

Seems legit 👍 Sounds like a bug fix to me 😄

@ckerr ckerr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

isOffscreen() is in the 2-0-x documentation, so I agree this is a bugfix rather than a feature addition

@trop

trop Bot commented Apr 4, 2018

Copy link
Copy Markdown
Contributor

@trop trop Bot added merged/2-0-x and removed target/2-0-x labels Apr 4, 2018
@ckerr ckerr deleted the fix_isoffscreen branch April 4, 2018 18:25
sethlu pushed a commit to sethlu/electron that referenced this pull request May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants