Closed Bug 1404245 Opened 7 years ago Closed 5 years ago

Source map requests don't use stored HTTP basic auth credentials

Categories

(DevTools :: Debugger, defect, P5)

57 Branch
defect

Tracking

(firefox57 fix-optional)

RESOLVED WORKSFORME
Tracking Status
firefox57 --- fix-optional

People

(Reporter: kyle, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0 Build ID: 20170920100426 Steps to reproduce: I have compiled javascript assets that use a source map. All three pages (the page I'm accessing, the compiled javascript file, and the source map) are all on the same domain behind the same http basic auth protection. I am authenticated and the credentials are saved. Accessing any of the pages directly uses the stored credentials and does not prompt for them. Actual results: The source map request made by the dev tools fails with status 401, but accessing the source map directly works. Expected results: The source map request should use the stored http basic auth credentials for the domain.
Component: Untriaged → Developer Tools: Debugger
Blocks: source-maps
Thanks for filing, we'll have to look at where the source map request is made.
Priority: -- → P2
Product: Firefox → DevTools

Honza, Kyle, would you be able to try to reproduce this and share a minimal test case? Anecdotally, I've heard from others that this can be a problem.

Flags: needinfo?(odvarko)
Flags: needinfo?(kyle)
Priority: P2 → P3

I put together a really simple example running express-js with some static assets, a sourcemap, and http basic auth and I couldn't reproduce. I will try again compiled js files instead of css since that is what the original bug was about, but I'm not sure what difference that would make.

Thanks Kyle. Could you share the example in maybe a github repo?

(In reply to Jason Laster [:jlast] from comment #6)

Thanks Kyle. Could you share the example in maybe a github repo?

See here: https://github.com/kylethebaker/ff-bug-testcase-1404245

The basic auth user/pass combo is (in classic fashion) user:password

I'm currently on Firefox Nightly 66.0a1 (2019-01-24) (64-bit)

This seems to be working with sourcemaps generated for be css and js assets

Flags: needinfo?(kyle)
Attached image image.png (deleted) —

Thanks for the example Kyle!

JS seems to be working for me. I can see script.ts (source mapped from script.js) in the Debugger panel.

I can also see the styles.css (in Style Editor) nicely formatted (not the same as the HTTP request response data), but not sure if source map is used in this case.

Screenshot attached.

Jason, can you check the CSS mapping?

Honza

Flags: needinfo?(odvarko) → needinfo?(jlaster)

I'm not sure what to look for wrt the scss -> css mappings. Martin, would you be able to take a look?

Flags: needinfo?(jlaster)
Priority: P3 → P5
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: