Misc Uncaught TypeError when trying to inspect elements in the New 3DS browser’s developer mode

Nightcat

New Member
OP
Newbie
Joined
Mar 15, 2017
Messages
4
Trophies
1
Location
United States
Website
nightc.at
XP
110
Country
United States
The New 3DS browser contains a hidden mode that allows you to remotely debug webpages from your computer by holding X+Y while launching the browser. However, the element tree is busted. Trying to inspect anything throws an error:
JavaScript:
treeoutline.js:1120 Uncaught TypeError: window.getComputedStyle(...).getPropertyCSSValue is not a function
    at WebInspector.ElementsTreeElement.TreeElement.isEventWithinDisclosureTriangle (treeoutline.js:1120)
    at HTMLLIElement.TreeElement.treeElementMouseDown (treeoutline.js:806)
I’ve tried the latest Chrome and Firefox as well as Chrome 49 and 69 all with no success.

Digging into treeoutline.js shows a comment explaining that this code is not okay:
JavaScript:
TreeElement.prototype.isEventWithinDisclosureTriangle = function(event)
{
    // FIXME: We should not use getComputedStyle(). For that we need to get rid of using ::before for disclosure triangle.
    var computedLeftPadding = window.getComputedStyle(this._listItemNode).getPropertyCSSValue("padding-left").getFloatValue(CSSPrimitiveValue.CSS_PX);
    var left = this._listItemNode.totalOffsetLeft() + computedLeftPadding;
    return event.pageX >= left && event.pageX <= left + this.arrowToggleWidth && this.hasChildren;
}
This issue was marked as RESOLVED WONTFIX on WebKit Bugzilla in June 2016. I can’t fix this myself and Nintendo definitely won’t, so where do I go from here?
 
  • Like
Reactions: jeffyTheHomebrewer

Nightcat

New Member
OP
Newbie
Joined
Mar 15, 2017
Messages
4
Trophies
1
Location
United States
Website
nightc.at
XP
110
Country
United States
Ran into a need to try this again and I kinda assumed this months ago given how many connectivity issues I was having in my basement, but it works on an iMac running Safari closer to my router so I’m assuming it was just my poor/dropped connection.
 
  • Like
Reactions: jeffyTheHomebrewer

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BakerMan @ BakerMan:
    you go bro
    +1
  • BakerMan @ BakerMan:
    i know, i know, i'm late
  • Sicklyboy @ Sicklyboy:
    @BigOnYa, I'll rip a bag off my Volcano to that, brother
    +2
  • a_username_that_is_cool @ a_username_that_is_cool:
    DDDS . Dual Developer Dedede System :)
    +1
  • BakerMan @ BakerMan:
    also happy birthday @Xdqwerty
    +1
  • BigOnYa @ BigOnYa:
    Is it me you're looking for?
  • MysticStarlight @ MysticStarlight:
    'Cause I wonder where you are
  • MysticStarlight @ MysticStarlight:
    wait I got the lyrics mixed up
    +1
  • BigOnYa @ BigOnYa:
    And I wonder what you do...Lol
  • BigOnYa @ BigOnYa:
    Its all good, I'm here to talk to you.
  • BigOnYa @ BigOnYa:
    Hello
  • BigOnYa @ BigOnYa:
    I've been playing fallout4 all day, I went into a elevator and it kept going, never stopped, waited 5 minutes, must of been a bug. How bout you, whatcha do today?
    +1
  • MysticStarlight @ MysticStarlight:
    I'm wondering why a stray tuxedo cat has a cloudy eye
  • MysticStarlight @ MysticStarlight:
    I've been playing TOTK all day also
    +1
  • MysticStarlight @ MysticStarlight:
    Oh you reminded me of those elevator nightmares
  • BigOnYa @ BigOnYa:
    Awesome game, fun how they force you to build, but you can build as you want
  • MysticStarlight @ MysticStarlight:
    It is super fun, I actually prefer it over BoTW
    +1
  • BigOnYa @ BigOnYa:
    The guy holding the sign always cracked me up, esp when you fail, and it falls
  • MysticStarlight @ MysticStarlight:
    Ah yes, that guy lol. I still need to find all his signs. The game has a lot to do though so I don't know what to finish first
  • MysticStarlight @ MysticStarlight:
    I'm 120 hours in and am still like 44.4% done
    +1
  • BigOnYa @ BigOnYa:
    Good times. Building is starting to get good around now for you. You making me want to make run thru again.
  • BigOnYa @ BigOnYa:
    Ok good chatting, enjoy your gaming, and avoid the lightning, or put your sword away. Good night.
    Veho @ Veho: https://i.imgur.com/E1U7Nlt.mp4 +1