Back out browser.inc

c960657 - October 9, 2009 - 11:49
Project:Drupal
Version:7.x-dev
Component:browser system
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Issue tags:API change
Description

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.

#1

Dave Reid - October 9, 2009 - 13:45

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

#2

c960657 - October 18, 2009 - 19:45
Status:active» needs review

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

AttachmentSizeStatusTest resultOperations
remove-browser-1.patch39.07 KBIdleFailed: Failed to apply patch.View details | Re-test

#3

moshe weitzman - October 18, 2009 - 20:12
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

#4

System Message - November 4, 2009 - 03:30
Status:reviewed & tested by the community» needs work

The last submitted patch failed testing.

#5

c960657 - November 4, 2009 - 22:43
Status:needs work» needs review
AttachmentSizeStatusTest resultOperations
remove-browser-2.patch2.47 KBIdleFailed: 14656 passes, 13 fails, 13 exceptionsView details | Re-test

#6

System Message - November 4, 2009 - 23:05
Status:needs review» needs work

The last submitted patch failed testing.

#7

c960657 - November 7, 2009 - 08:07
Status:needs work» needs review

The last patch was incomplete.

AttachmentSizeStatusTest resultOperations
remove-browser-3.patch39.22 KBIdlePassed: 14680 passes, 0 fails, 0 exceptionsView details | Re-test

#8

webchick - November 7, 2009 - 14:10
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.

#9

System Message - November 21, 2009 - 14:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.