Skip to content

Commit

Permalink
Fix bug: Missing to load the "net/http" library. (SeleniumHQ#12506)
Browse files Browse the repository at this point in the history
transitive dependency was removed from firefox driver file without replacing net/http requirement, preventing http calls for Firefox driver without the user first requiring the library.
this moves the requirement to webdriver file instead of putting it in each driver file
  • Loading branch information
dvarrui committed Aug 9, 2023
1 parent 889df2d commit d5a66c3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions rb/lib/selenium/webdriver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
require 'json'
require 'set'
require 'uri'
require 'net/http'

require 'selenium/webdriver/atoms'
require 'selenium/webdriver/common'
Expand Down
2 changes: 0 additions & 2 deletions rb/lib/selenium/webdriver/chrome.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# specific language governing permissions and limitations
# under the License.

require 'net/http'

module Selenium
module WebDriver
module Chrome
Expand Down
2 changes: 0 additions & 2 deletions rb/lib/selenium/webdriver/chromium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# specific language governing permissions and limitations
# under the License.

require 'net/http'

module Selenium
module WebDriver
module Chromium
Expand Down
2 changes: 0 additions & 2 deletions rb/lib/selenium/webdriver/edge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# specific language governing permissions and limitations
# under the License.

require 'net/http'

module Selenium
module WebDriver
module Edge
Expand Down

0 comments on commit d5a66c3

Please sign in to comment.