Giter Club home page Giter Club logo

Comments (8)

tejacques avatar tejacques commented on July 19, 2024

I tracked this down to being caused by this line:

this.browser.InitialiseOLE();

I'm not sure why this occurs, but if you use this, it makes the ObjectForScripting inaccessible after navigating.

It looks like it's possible to get around this by Proffering the IAuthenticate instead of replacing the IOleClientSite: https://groups.google.com/forum/#!topic/microsoft.public.windows.inetexplorer.ie5.programming.components.webbrowser_ctl/in9QOEMvMo4

from triflejs.

tejacques avatar tejacques commented on July 19, 2024

Do you have a good test case for this? I have this in a state where the AuthenticateProxy event is being fired and the ObjectForScripting object is accessible, but I don't have a good test file to see if Authenticating really works.

from triflejs.

sdesalas avatar sdesalas commented on July 19, 2024

Hi @tejacques,

I noticed this behaviour as well and decided to postpone the bugfix til I turn my attention back to the CLI options such as proxy authentication. This is indeed triggered by InitialiseOLE() where there is additional code to support proxy authentication.

As you mentioned its hard to get a good test case running as TrifleJS does not have an internal built-in proxy to create a test case with, and thus debugging is tedious and painful. Thanks for bringing to my attention again. S

from triflejs.

sdesalas avatar sdesalas commented on July 19, 2024

Looking at command line proxies that I can incorporate into my unit tests, since phantoms ChildProcess functionality is up and running I can just spin off two sub-processes: a proxy.exe and a triflejs.exe --proxy=address:port and see what the output is for the latter.

from triflejs.

tejacques avatar tejacques commented on July 19, 2024

Awesome! Once I can properly test this I'll submit a PR.

from triflejs.

sdesalas avatar sdesalas commented on July 19, 2024

FYI: Proxy authentication will be down for a while, I need to knock it out as this is higher priority.

from triflejs.

tejacques avatar tejacques commented on July 19, 2024

No worries. Let me know if there's anything I can update / fix / tweak on any of the issues I've submitted. I'd love to help get some of this stuff fixed upstream.

from triflejs.

sdesalas avatar sdesalas commented on July 19, 2024

Should be working now. Only thing is getting the proxy authentication working but for that I have to write some proxy code to run unit tests with. Ta!

from triflejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.