ferrum 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1cea2150084c494e0461e9a63b53ff215e34ed98f2bfe345458ae46c95f0f8f3
4
- data.tar.gz: 46fad57af780b5a5b6ff9659125642d6b57674db386af34b868dc07d1164e2b6
3
+ metadata.gz: a2256dbc8ed2c2fca2e3209c13e29009c69b4c2ccf328e8a73ade73ed69c89f0
4
+ data.tar.gz: 8d5604f8d4f8120b699ec3e341c37f77f25e90a794d3206660ecc0465b22e7b1
5
5
  SHA512:
6
- metadata.gz: 63d6104319d89bfa85897c946c01f6d44efd92de88204b4882ccea879e196dd80bebfd61b06a7566272dd6e22de1c306eb1385d17a6a72df739d94753adb0a41
7
- data.tar.gz: ef333fd514ea94d674bf4ad51117f736c4d7982ca56981192fe636010e1f34df6c84d889ce2ce40bfeeb47534f1c912a5aec54efdad01e23b7d915ac1be88524
6
+ metadata.gz: 7aa18fd5a01f387c27ade8ecdf6aa30df8118f4e90badddc242ed979e5be49c890036049f284555a937ccc79699bcbc954d62c077f45ff0770d9eeeec255a6ea
7
+ data.tar.gz: 25c4cc92e59a297a344cf85301a21c3f9e634f25ea685eb6c9d2f4ea1896fcba2898dc5f4cfcc8f3af358001a0e451034bb79bf24981e16a17a51cdd3f07d6a3
@@ -71,12 +71,14 @@ module Ferrum
71
71
  end
72
72
 
73
73
  on("Runtime.executionContextCreated") do |params|
74
+ setting_up_main_frame = false
74
75
  context_id = params.dig("context", "id")
75
76
  frame_id = params.dig("context", "auxData", "frameId")
76
77
 
77
78
  unless @main_frame.id
78
79
  root_frame = command("Page.getFrameTree").dig("frameTree", "frame", "id")
79
80
  if frame_id == root_frame
81
+ setting_up_main_frame = true
80
82
  @main_frame.id = frame_id
81
83
  @frames[frame_id] = @main_frame
82
84
  end
@@ -85,6 +87,9 @@ module Ferrum
85
87
  frame = @frames[frame_id] || Frame.new(frame_id, self)
86
88
  frame.set_execution_id(context_id)
87
89
 
90
+ # Set event because `execution_id` might raise NoExecutionContextError
91
+ @event.set if setting_up_main_frame
92
+
88
93
  @frames[frame_id] ||= frame
89
94
  end
90
95
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ferrum
4
- VERSION = "0.10.1"
4
+ VERSION = "0.10.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ferrum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Vorotilin