Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: refactor scripts and realms and fix generator serialization #1013

Merged
merged 6 commits into from
Jul 12, 2023

Conversation

thiagowfx
Copy link
Contributor

@thiagowfx thiagowfx commented Jul 11, 2023

  • Delete ScriptEvaluator, merge it into Realm.
  • Fix generator objects serialization

Bug: #562

@thiagowfx thiagowfx force-pushed the thiagowfx/serialization branch 4 times, most recently from aeeb902 to 19dea76 Compare July 12, 2023 08:39
@thiagowfx
Copy link
Contributor Author

It turns out ScriptEvaluator and Realm deal with the same domains. I decided to merge them, for ease of readability. And then did some refactoring to try to make function and variable names easier to read.

There's still more refactoring that can be done, but that's it for now.

@thiagowfx thiagowfx marked this pull request as ready for review July 12, 2023 08:40
Copy link
Collaborator

@OrKoN OrKoN left a comment

Choose a reason for hiding this comment

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

LGTM

src/bidiMapper/domains/script/realm.ts Outdated Show resolved Hide resolved
src/bidiMapper/domains/script/realm.ts Outdated Show resolved Hide resolved
src/bidiMapper/domains/script/realm.ts Show resolved Hide resolved
src/bidiMapper/domains/script/realm.ts Outdated Show resolved Hide resolved
src/bidiMapper/domains/script/realm.ts Outdated Show resolved Hide resolved
src/bidiMapper/domains/script/realm.ts Outdated Show resolved Hide resolved
src/bidiMapper/domains/script/realm.ts Show resolved Hide resolved
src/bidiMapper/domains/script/realm.ts Show resolved Hide resolved
@thiagowfx
Copy link
Contributor Author

Yay, all tests are passing. Let me see if I can refactor it a bit more.

@thiagowfx thiagowfx enabled auto-merge (squash) July 12, 2023 22:13
@thiagowfx thiagowfx merged commit 73ea6f0 into main Jul 12, 2023
@thiagowfx thiagowfx deleted the thiagowfx/serialization branch July 12, 2023 22:43
Lightning00Blade pushed a commit that referenced this pull request Jul 21, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.4.18](chromium-bidi-v0.4.17...chromium-bidi-v0.4.18)
(2023-07-21)


### Features

* implement browsingContext.activate
([#1002](#1002))
([22e2417](22e2417))
* implement drag n' drop
([#1006](#1006))
([6443045](6443045))
* **print:** throw unsupported operation when content area is empty
([#992](#992))
([71a8b5c](71a8b5c)),
closes
[#518](#518)
* refactor scripts and realms and fix generator serialization
([#1013](#1013))
([73ea6f0](73ea6f0)),
closes
[#562](#562)
* support iterator serialization
([#1042](#1042))
([9dff121](9dff121))


### Bug Fixes

* don't hold finished requests in memory
([#1058](#1058))
([f15163a](f15163a))
* NavigationStarted Event for sub-frames
([#1009](#1009))
([c4841f8](c4841f8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
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.

3 participants