Closed Bug 1124513 Opened 9 years ago Closed 7 years ago

Breakpoints wrong on prettified youtube source

Categories

(DevTools :: Debugger, defect, P1)

x86
macOS
defect

Tracking

(platform-rel -)

RESOLVED DUPLICATE of bug 1172931
Tracking Status
platform-rel --- -

People

(Reporter: bholley, Unassigned)

Details

STR:

* Load a youtube video on Nightly
* set breakpoints around the lines that check for YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH
* Refresh

The debugger stops at a totally different line. To make matters worse, f10 jumps to another seemingly-unrelated function.

This seems pretty bad - this was my only experience using the built-in debugger, and led me to conclude that the debugger is unreliable and doesn't work. I thought it was nightly-only, but sounds like we might be shipping it?
Flags: needinfo?(nfitzgerald)
Bobby, maybe bug 1124122 is related.
Eddy, can you look into this? I don't think this is a bogus source map, so much as choosing bad offsets to set the BP on. I'm hopeful that your source-mapped BP changes will make this better.
Flags: needinfo?(nfitzgerald) → needinfo?(ejpbruel)
(In reply to Bobby Holley (Busy with media, don't ask for DOM/JS/XPConnect things) from comment #0)
> * set breakpoints around the lines that check for
> YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH

specifically, in html5player.js.
I'll look into this.
Assignee: nobody → ejpbruel
Flags: needinfo?(ejpbruel)
Marking this as P1 as it is one of those issues that make the debugger unusable for people.
Priority: -- → P1
platform-rel: --- → ?
Whiteboard: [platform-rel-Youtube]
Assignee: ejpbruel → nobody
platform-rel: ? → -
I guess this is a dupe of https://bugzilla.mozilla.org/show_bug.cgi?id=1172931 (or vice-versa). This one came first, but the other one is linked to meta bugs.

Also, this bug makes me sad. ;------;
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Whiteboard: [platform-rel-Youtube]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.