Comments (8)
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.
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.
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.
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.
Awesome! Once I can properly test this I'll submit a PR.
from triflejs.
FYI: Proxy authentication will be down for a while, I need to knock it out as this is higher priority.
from triflejs.
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.
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)
- window.setTimeout never triggers after 3s HOT 1
- Avoid Window popup HOT 2
- Window SetTimeout / SetInterval don't work when building from source HOT 2
- WebPage.onInitialized is not called when set HOT 7
- TriffleJS --render fails on http://livedoor.com/ HOT 11
- window.callPhantom and unhandled error logging are not available until onload event fires. HOT 6
- page.onCallback() does not handle dates HOT 1
- Can trifleJS use Chakra instead of V8? HOT 3
- clipRect can not work well HOT 2
- Question: Any plans to make this work outside of windows? HOT 1
- System args not populating
- Render pages supplied as text
- TrifleJs in Windows Server
- Crash: Vector smash protection is enabled. HOT 1
- System.IO.FileNotFoundException HOT 1
- webpage method
- uriString can not be null exception when emulating
- trifleJS shut down & builds error :Please install Windows SDK 2010. HOT 1
- About command mode high concurrency HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from triflejs.