Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit d8fbefa

Browse files
committed
Unexport frameExecutionContext interface
1 parent 468cb44 commit d8fbefa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

common/frame.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ type Frame struct {
117117

118118
documentHandle *ElementHandle
119119

120-
mainExecutionContext FrameExecutionContext
121-
utilityExecutionContext FrameExecutionContext
120+
mainExecutionContext frameExecutionContext
121+
utilityExecutionContext frameExecutionContext
122122
mainExecutionContextCh chan bool
123123
utilityExecutionContextCh chan bool
124124
mainExecutionContextHasWaited int32
@@ -418,7 +418,7 @@ func (f *Frame) requestByID(reqID network.RequestID) *Request {
418418
return frameSession.networkManager.requestFromID(reqID)
419419
}
420420

421-
func (f *Frame) setContext(world string, execCtx FrameExecutionContext) {
421+
func (f *Frame) setContext(world string, execCtx frameExecutionContext) {
422422
if world == "main" {
423423
f.mainExecutionContext = execCtx
424424
if len(f.mainExecutionContextCh) == 0 {

common/frame_execution_context.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ import (
2929
"github.com/grafana/xk6-browser/api"
3030
)
3131

32-
// FrameExecutionContext represents a JS execution context that belongs to Frame.
33-
type FrameExecutionContext interface {
32+
// frameExecutionContext represents a JS execution context that belongs to Frame.
33+
type frameExecutionContext interface {
3434
// adoptBackendNodeId adopts specified backend node into this execution
3535
// context from another execution context.
3636
adoptBackendNodeId(backendNodeID cdp.BackendNodeID) (*ElementHandle, error)

0 commit comments

Comments
 (0)