-
Notifications
You must be signed in to change notification settings - Fork 0
[CORRUPTED] Synthetic Benchmark PR #48762 - refactor: make api::WebRequest inherit from gin::Wrappable
#34
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
base: base_pr_48762_20251204_6917
Are you sure you want to change the base?
[CORRUPTED] Synthetic Benchmark PR #48762 - refactor: make api::WebRequest inherit from gin::Wrappable
#34
Conversation
refactor: remove unused v8::Isolate* arg from WebRequest ctor refactor: make electron::api::Session::web_request_ a cppgc::Member<api::WebRequest> refactor: allocate api::WebRequest on cpp heap refactor: modify Create(), Find(), and FindOrCreate() to return a WebRequest*
…nstead of a WebRequestAPI Experimental commit to ensure `ProxyingURLLoaderFactory::web_request_api_` won't be a dangling pointer.
…ndleOnBeforeRequestResponseEvent()
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
User description
Benchmark PR electron#48762
Type: Corrupted (contains bugs)
Original PR Title: refactor: make
api::WebRequestinherit fromgin::WrappableOriginal PR Description: #### Description of Change
Part of electron#47922
electron::api::WebRequestto inherit fromgin::Wrappableinstead ofgin_helper::DeprecatedWrappableelectron::api::Session::web_request_to be acppgc::Member<WebRequest>instead of av8::TracedReference<v8::Value>v8::Isolate*argument fromelectron::api::WebRequestconstructorWebRequest::Create(),WebRequest::Find(),andWebRequest::FindOrCreate()to return anapi::WebRequest*CC @deepak1556 as a electron#47922 stakeholder. All reviews welcomed.
Checklist
npm testpassesRelease Notes
Notes: none
Original PR URL: electron#48762
PR Type
Enhancement
Description
Refactor
WebRequestto inherit fromgin::Wrappableinstead ofgin_helper::DeprecatedWrappableChange
web_request_storage fromv8::TracedReferencetocppgc::Member<WebRequest>Allocate
WebRequeston C++ heap usingcppgc::MakeGarbageCollectedUse
cppgc::WeakPersistentinProxyingURLLoaderFactoryandProxyingWebSocketfor safe referencesAdd
gin::WeakCellFactorytoWebRequestfor bound callback handlingDiagram Walkthrough
File Walkthrough
8 files
Refactor WebRequest to inherit from gin::WrappableUpdate WebRequest implementation for gin::WrappableChange web_request_ to cppgc::Member storageUpdate WebRequest() method to return raw pointerUse cppgc::WeakPersistent for web_request_ referenceUpdate web_request_ member access throughoutUse cppgc::WeakPersistent for web_request_ referenceUpdate WebRequest pointer handling and initialization1 files
Add kElectronWebRequest to wrappable pointer tags