Skip to content

fix(inspector-proxy): fix protocol rewrite self-assignment#1

Open
mhdamirhamza wants to merge 1 commit into
mainfrom
mhdamirhamza-patch-1
Open

fix(inspector-proxy): fix protocol rewrite self-assignment#1
mhdamirhamza wants to merge 1 commit into
mainfrom
mhdamirhamza-patch-1

Conversation

@mhdamirhamza

Copy link
Copy Markdown
Owner

Fixed a critical bug in Device.js where debuggerRelativeUrl.protocol was assigned to itself, causing protocol rewrites to fail.
​Issue Details:
Inside #deviceRelativeUrlToDebuggerRelativeUrl(), the protocol rewrite was effectively a no-op because it assigned the property to its own value. This led to issues where HTTPS/HTTP rewrites didn't occur, causing broken source map and script URLs in the DevTools frontend.
​Fix:
Changed the assignment to debuggerRelativeBaseUrl.protocol.

Fixed a critical bug in Device.js where debuggerRelativeUrl.protocol was assigned to itself, causing protocol rewrites to fail.
​Issue Details:
Inside #deviceRelativeUrlToDebuggerRelativeUrl(), the protocol rewrite was effectively a no-op because it assigned the property to its own value. This led to issues where HTTPS/HTTP rewrites didn't occur, causing broken source map and script URLs in the DevTools frontend.
​Fix:
Changed the assignment to debuggerRelativeBaseUrl.protocol.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant