Skip to content

Remove ChromoteSession$get_parent() and lock $protocol - #76

Merged
schloerke merged 5 commits into
mainfrom
rename_remove
Feb 26, 2022
Merged

schloerke merged 5 commits into
mainfrom
rename_remove

Conversation

@schloerke

@schloerke schloerke commented Feb 25, 2022 •

Copy link
Copy Markdown
Collaborator

Fixes #75

Changes

  • Remove ChromoteSession$get_parent()
  • Lock ChromoteSession$parent
  • Lock ChromoteSession$protocol
  • Rename Chromote$stop() -> Chromote$close()

However...

ChromoteSession can not access the private events of Chromote or vice versa. R6 objects do not inherit their super's private methods. This prevents moving many self helper methods to be private for both Chromote and ChromoteSession as they can not access each other's private methods.

It might be possible if R6 has access to super_private (or something similar), but it would not get rid of every method ($mark_closed()).

@schloerke
schloerke requested a review from wch February 25, 2022 21:19
@schloerke
schloerke merged commit 4e8308e into main Feb 26, 2022
@schloerke
schloerke deleted the rename_remove branch February 26, 2022 15:20
schloerke added a commit that referenced this pull request Feb 26, 2022
* main:
  Remove `ChromoteSession$get_parent()` and lock `$protocol` (#76)
schloerke added a commit that referenced this pull request Feb 26, 2022
* main:
  Remove `ChromoteSession$get_parent()` and lock `$protocol` (#76)
schloerke added a commit that referenced this pull request Apr 15, 2022
* main:
  Take screenshots beyond viewport without resizing (#83)
  Quote browser path if not using Windows (#80)
  Do not `shQuote()` the browser path (#78)
  `$view()` should use local `Chrome` browser if available (#73)
  Add a reasonable `{chromote}` wall `timeout_` if Protocol `timeout` exists (#69)
  Remove `ChromoteSession$get_parent()` and lock `$protocol` (#76)
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.

Rename / remove public R6 methods

2 participants