On Tue, Aug 04, 2015 at 02:40:47PM +0530, Anand Chitipothu wrote:
> On Tue, Aug 4, 2015 at 2:31 PM, Jon Leech <[email protected]> wrote:
> > On Tue, Aug 04, 2015 at 10:01:21AM +0530, Anand Chitipothu wrote:
> > > That happens because of the way that is implemented. The page refreshes
> > for
> > > 5 seconds or so after the link is pressed. The assumption was that the
> > > popup to save the acsm file wouldn't take longer than that. Sometimes it
> > > does take longer than that and we get into this trouble.
> >
> >     Is there supposed to be a visible (or invisible?) popup when
> > borrowing books? It might help diagnose what's going wrong if I know how
> > it should behave when it goes right.
>
> Yes, it is supposed to be visible. That is the file dialog that asks the
> user to save the acsm file.
>
> But if the reload happens before the form submit comes backs with the file
> dialog, we get to see the issue that is reported now.

    Thanks for explaining. After a bit more experimenting, I think the
basic issue is that browsers these days block pop-ups by default. When I
try to borrow in Iceweasel (aka Firefox) 31.8.0 / Debian 8, the default
behavior is as I described upthread; if I turn off "Block pop-up
windows" in the Preferences / Content dialog, then it will indeed pop up
a save-file window on the first attempt to borrow a book.

    Chromium (and thus presumably Chrome) is much more problematic. In
Chromium 43.0 / Debian 8, the default behavior (which is buried deeply
inside Settings / Advanced Settings / Privacy / Content Settings /
Pop-ups) is "Do not allow any site to show pop-ups". Changing this,
either by adding an exception for lending.us.archive.org and
openlibrary.org (not sure which is needed), or simply "Allow all sites
to show pop-ups", unfortunately does *not* fix the behavior. Perhaps
there is another setting blocking the pop-up as well.

    My thought is that OL is fighting an upstream battle if it tries to
make pop-ups be an important part of the checkout process. Almost
everyone hates them, most browsers now block them (even not considering
the added plethora of security / antispam browser extensions many users
have installed), and it's probably a better idea to use modern web
technologies in OL instead. I appreciate that's not something likely to
be addressed soon given the very limited dev resources available to OL,
though.

    Jon
_______________________________________________
Ol-discuss mailing list - [email protected]
http://mail.archive.org/cgi-bin/mailman/listinfo/ol-discuss
Archives: http://www.mail-archive.com/[email protected]/
To unsubscribe from this mailing list, send email to 
[email protected]

Reply via email to