Giter Club home page Giter Club logo

Comments (6)

tejacques avatar tejacques commented on August 19, 2024

I have a fix for this I'm happy to submit a PR for. Wanted to get feedback on the first one though since this fix relies on that PR.

Also, fixing this issue lead me to discover bug #51.

from triflejs.

sdesalas avatar sdesalas commented on August 19, 2024

Thanks @tejacques, I agree its better this way. Just have to check unit tests after doing the merge. Will get to this after more delicate work on page.onCallback.

from triflejs.

sdesalas avatar sdesalas commented on August 19, 2024

I've integrated this functionality into 'Navigated' event as you suggested, thanks for picking this up.

Just need to add a couple of unit tests for page.onError.

from triflejs.

sdesalas avatar sdesalas commented on August 19, 2024

Hi @tejacques,

Did you manage to get JS error handlers to fire at all using browser.Document.Window.Error += delegate(object obj, HtmlElementErrorEventArgs e)?, I had to give up on this approach which worked last time I look at it about a year ago. Instead I'm using injected javascript to capture window.onerror, which works more predictably.

Fix is ready, feel free to take a look and provide any comments. Ta.

from triflejs.

tejacques avatar tejacques commented on August 19, 2024

Pretty much all I had to do to get it to work in some simple tests was moving browser.Document.Window.Error += delegate(object obj, HtmlElementErrorEventArgs e) to the Navigated event.

from triflejs.

sdesalas avatar sdesalas commented on August 19, 2024

Hmm that didnt work for me, I wonder if its different OS or IE version (I'm Win7 x86 running IE11). Or perhaps I've stuffed up my mshtml.dll reference by fiddling with it.

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.