Page MenuHomePhabricator

webkit problems with reftool site JS on en.wikipedia
Closed, InvalidPublic


From [[WP:VPT#Reftool 1.0 failing when filling fields from URL]]:

I use Reftools 1.0 because it can grab data and fill in fields when given the source URL. When I use it today, instead of filling in the fields, I find that I'm no longer in edit more and I'm looking at the "Read" version of the article. The browser is Chrome.
I have the same problem, not just in Chrome but also in Safari.

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:50 PM
bzimport set Reference to bz31430.
bzimport added a subscriber: Unknown Object (MLST).
brion added a comment.Oct 6 2011, 6:12 PM

What's reftools? Is it a gadget or someone's user script?

I believe people are referring to [[User:Mr.Z-man/refToolbar]] which, as the docs point out, is now part of the wikieditor's toolbar. See [[File:RefTools.ogv]] for more info.

brion added a comment.Oct 6 2011, 6:32 PM

This looks like some sort of local site JS or gadget that plugs into WikiEditor; there's no sign of it in WikiEditor's source.

Hrm... Reedy/Roan tell me it is a local mod. Sorry for the noise.

brion added a comment.Oct 6 2011, 6:37 PM etc

If the problem exists, no sense closing the bug. Reassigned to general Wikimedia group as it's not part of WikiEditor ext.

brion added a comment.Oct 6 2011, 6:41 PM

Can you provide a sample source URL to use and exact steps to reproduce? I'm not sure where to put a URL for it to "grab data"...

joedecker wrote:

I got asked for a test case. The simplest example is this:

  • Make sure reftools is enabled
  • Make sure " Enable enhanced editing toolbar " is *disabled* in editing prefs.
  • Edit an article (sandbox or whatever is fine)
  • Press the square "cite" button
  • Press the "Book" button. Note that a "form" appears.
  • Insert the following URL in the URL field:

(Most results from any Google Book search should suffice.)

  • Press he green icon to the right of the URL field.


After a delay, many of the other fields in the form that pops up should be filled in, but the "form" that appeared when we pressed the Book button is left up.  (After this, you should be able to press "Add citation" to have wikimarkup for the reference inserted into the article, which should close the form but insert the newly created reference in the text at the text insertion point, but I can't get that far right now.)


The page is refreshed, the form is closed, the URL and other fields are not inserted in the

The "News" option works similarly, but does its best work with a subset of New York Times articles, the "Books" use case I gave above is the probably the best single test case I can come up with.)

Feel free to drop me a note on my talk page (I'm on enwiki as "Joe Decker") if I can be of any assistance.



whpq wrote:

I was the editor who reported the problem originally. Joe Decker has described the problem, expected results, and actual results perfectly. That is exactly the same thing that is happening to me. I am available to provide additional info or assist as well. I'm on enwiki as "whpq"

TheDJ added a comment.Oct 9 2011, 8:52 PM

This is a weird one. It seems the input type="image" triggers the submit action for some reason. If i change it to type="button", the problem is gone...

TheDJ added a comment.Oct 9 2011, 9:29 PM

Right, an input=image IS a submit action. So probably before there was a bug in jquery that intercepted the submit action, this bug was fixed, and the Reftools script now behaves 'as it ought to' only is that not the desired behavior. Will fix the script to cancel the event.

I *think* this is still being reported:

Have you had a chance to do anything with this yet?

joedecker wrote:

I am now seeing the issue I described as "fixed". The URL I provided above works with the cite book template, and the following URL works with the cite news template:

I have not (yet) looked at the link Mark provided in the comment immediately above.

Cut-n-paste from WP:VPT: "The cite button in the toolbar. Cite book and web don't look up the information anymore. Instead, it submits the form and I end up saving an edit I was only halfway done with."

tagging bugs for Marcus to look at