This issue is a repost of comment #101 in #340283: Abstract SimpleTest browser in to its own object. I am opening a separate issue for discussing this.

---

So far, no code in core uses the new browser. While trying to convert drupal_http_request() to a wrapper around the browser (#553280: Integrate browser.inc and drupal_http_request()), I noticed that it lacked several methods in order to provide the same functionality as drupal_http_request(). I think this would also be the case when replacing the Simpletest browser in #553278: Replace DrupalWebTestCase browser with browser.inc. In order to fix these, modifying/extending the browser API is necessary.

There is just one week until the API freeze on October 15, but it seems like there is still a lot to do. If we are not able to get at least #553278: Replace DrupalWebTestCase browser with browser.inc committed in time for the freeze (not that fixing that bug itself would constitute an API change, but it will give us an understanding of the necessary changes to the browser API), would it be better to remove browser.inc for D7?

Don't get me wrong — I like the idea about a separate browser class and I appreciate the work that has gone into this, but I'd rather not see D7 ship with three different HTTP implementations (drupal_http_request(), DWTC and browser.inc) because there is no time to consolidate the code.

Comments

dave reid’s picture

I'd be fine wish pushing back to D8 and properly getting this integrated with other HTTP-request type code. I don't see it happening anytime in the next week. :(

Sad +1

c960657’s picture

Status: Active » Needs review
Issue tags: +API change
StatusFileSize
new39.07 KB

Don't know if this is too late for D7, but here is a patch.

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

It sounds like this was committed in the hopes of follow-on implementations. Those will come, but not for D7

Status: Reviewed & tested by the community » Needs work

The last submitted patch failed testing.

c960657’s picture

Status: Needs work » Needs review
StatusFileSize
new2.47 KB

Status: Needs review » Needs work

The last submitted patch failed testing.

c960657’s picture

Status: Needs work » Needs review
StatusFileSize
new39.22 KB

The last patch was incomplete.

webchick’s picture

Status: Needs review » Fixed

I spoke with Jimmy about this, and he agreed he'd like to work on improving the browser over the D7 release cycle. He's created http://drupal.org/project/browser for that, which wraps browser.inc into a module.

Therefore, committed to HEAD.

Status: Fixed » Closed (fixed)
Issue tags: -API change

Automatically closed -- issue fixed for 2 weeks with no activity.