Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade the embedded browser (xulrunner) to the latest version #2

Open
jimmejardine opened this issue Jul 3, 2019 · 5 comments
Open

Comments

@jimmejardine
Copy link
Owner

No description provided.

@GerHobbelt
Copy link
Collaborator

That would mean upgrading both GeckoFX and XulRunner I suppose, as those two are sort of married together if I read the entrails right here, here and here and then more confusing old cruft here.

Extracting my nose out of the divinating bisected chicken, my initial bet would be picking up GeckoFX 60 (or later) and taking it from there, maybe, while praying their blurb about "This repository aims to Firefox 60.0 support" isn't meant too inflexibly this time around...?

@GerHobbelt
Copy link
Collaborator

Possible replacement for the whole GeckoFX+XulRunner business:
https://github.com/cefsharp/CefSharp/ -- which embeds Chromium

@jimmejardine
Copy link
Owner Author

if possible, removing xulrunner would be brilliant
i originally tried using a chromium wrapper back in 2015 but it was too unstable so i had to go with xulrunner (blech)
by now a WPF binding for chromium must surely be a beaut9iful thing!

@GerHobbelt
Copy link
Collaborator

Note to self = @GerHobbelt

Decision: must use CefSharp as that is, at the time of writing, the only viable fully open source solution which is actively maintained and tracking a modern browser: Chrome. The choice has become mandatory as there are regrettable few ways to keep Google Scholar BibTeX access.

Direct BibTeX access is only really viable as we've been used when you are able to 'log in' in the browser, i.e. Google has to know who you are, so that you can adjust your google scholar settings and be identified as not-a-robot in a feasible manner (xulrunner reacts very badly to a google captcha-so-we-can-see-you-are-not-a-bot action from Scholar)

The current work-around used by several people is using a [the side effect of] an anonymity VPN which is a frequent switching between many nodes, hence google will 'see' short Scholar sessions from many IP addresses, while it's you doing a long scholar search session in Qiqqa or otherwise.

However, my expectation is this workaround will become less useful in (near?) future as google and others are very actively collecting VPN endpoint IP addresses and blocking them from scholar access or otherwise thwarting their usefulness -- as I have observed in the months past at time of writing. IMO this is a regrettable side effect of Google fighting anonymity efforts which are counteractive to its data collection and tracking activities which help Google optimize their marketing strategy and picking 'optimal ads' for each of us. But that's just me guessing why I see both immediate captcha or 403 access denied responses coming back plus some other network response oddities when using some VPNs in testing.

This may sound hare-brained ATM, but the bottom line is this: no matter why, but observed fact is that Scholar BibTeX access is blocked/rejected/made bloody tough, unless you are 'recognized' as using a modern browser and being logged in as a known individual. This wasn't the case in 2018AD or before, but it's reality for me at least at end 2019AD. Hence the choice for qiqqa is one where it is paramount to have a modern browser embedded in such a way that cookies can be transported between instances of that embedded webbrowser so that you can go to google, log in, visit Google Scholar in the sniffer and then continue working there, or in other sniffer sessions in the same qiqqa instance, without the need to identify yourself again and again.

CefSharp documentation mentions the possibility of this [cookie sharing], CefSharp in initial tests has turned out to be sufficiently robust to continue testing it, no other open source potential solution has been found which is both current, active and not itself based on CefSharp so we'll go with CefSharp and that's it.

/End of note.

@GerHobbelt
Copy link
Collaborator

Addition to note to self above: Microsoft Bing / Academy / what-was-it-called-again?

Microsoft's Scholar alternative offering (forgot the exact name and too lazy to google it now) doesn't even deign to render adequately on current xulrunner; debugging efforts to discover why have been horribly ineffective: several javascript errors and some 'weird shit' (don't ask) has been observed while trying to get a non-all-white page from the Microsoft server in latest and older Qiqqa releases, while the same site (URL incl. query params, etc.) renders fine in latest Chrome browser. (FireFox did give some trouble a few months ago while testing this, but I did not pursue that venue so can't tell if that was 'a glitch' or a more permanent render issue of MS Academy in FF.)

Again, the conclusion is the same: we'll have to ride with CefSharp and hope it stays active for a long time and I can get the proper hooks attached to make the sniffer work again. (There's the unlisted(?) issue of PDF download behaviour for cached visits, which is completely b0rked in xulrunner: #54


Other bits to mind when migrating:

GerHobbelt added a commit that referenced this issue Apr 21, 2020
…new bits of technology to be integrated into Qiqqa as we upgrade the functional elements to modern standards (embedded browser, etc.): #2 #7 #34 #35
GerHobbelt added a commit to GerHobbelt/qiqqa-open-source that referenced this issue Aug 9, 2020
GerHobbelt added a commit to GerHobbelt/qiqqa-technology-tests that referenced this issue Sep 14, 2022
…new bits of technology to be integrated into Qiqqa as we upgrade the functional elements to modern standards (embedded browser, etc.): jimmejardine/qiqqa-open-source#2 jimmejardine/qiqqa-open-source#7 jimmejardine/qiqqa-open-source#34 jimmejardine/qiqqa-open-source#35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants