Closed Bug 1738954 Opened 3 years ago Closed 1 year ago

LoginHelper(Content): "Couldn't parse origin for" "data:text/html,<input type=password>" ({})

Categories

(Toolkit :: Password Manager, defect, P3)

x86_64
Linux
defect

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: MatsPalmgren_bugz, Assigned: Nwobodoe71, Mentored)

Details

(Keywords: good-first-bug)

Attachments

(2 files, 1 obsolete file)

STR

  1. run firefox -layoutdebug
  2. load data:text/html,<input type=password>
  3. type something in the password control

ACTUAL RESULTS
console.warn: LoginHelper(Content): "Couldn't parse origin for" "data:text/html,<input type=password>" ({})
JavaScript error: resource://gre/modules/LoginAutoComplete.jsm, line 536: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIURI.host]

Mentor: sgalich
Severity: -- → S3
Component: Form Autofill → Password Manager
Keywords: good-first-bug
Priority: -- → P3

We would like to skip log.warn() here for this particular scenario.

Hello, I am an outreachy applicant. I read through the description and I do now understand what you need to be done. Can you kindly please explain the error and what needs to be done.

And I use windows, Can I still work on this?

:gloriaeskor, sure, please give it a try!

I can reproduce it by opening Browser Console (Ctrl+Shift+J) and tab with data:text/html,<input type=password> in address line. When I type anything in the password box on that page, console gets a lot of warning messages. We do not want to call log.warn() when origin is data: scheme. No changes in logic, just reduce spam in logs.

Assignee: nobody → gloriaeskor
Attachment #9249379 - Attachment description: WIP: Bug 1738954 - Resolve "parse origin" error for "data:text/html,<input type=password>. "r?sgalich" → Bug 1738954 - Resolve "parse origin" error for "data:text/html,<input type=password>. r?sgalich
Attachment #9249379 - Attachment is obsolete: true
Attachment #9249379 - Attachment is obsolete: false
Attachment #9249506 - Attachment is obsolete: true

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.

Assignee: gloriaeskor → nobody

Please boss can i be assigned the bug?
Thank you...

Hi, I'm Ayesha Solanki, an Outreachy applicant. I would like to contribute on this issue. Can you assign it to me?

How can I reproduce this error, I have opened the console with what is mentioned above. How can I tab to data:text/html,<input type=password>

Flags: needinfo?(sgalich)
Assignee: nobody → Nwobodoe71
Status: NEW → ASSIGNED

(In reply to Ekene Nwobodo from comment #10)

How can I reproduce this error, I have opened the console with what is mentioned above. How can I tab to data:text/html,<input type=password>

Ekene, you can paste that data:text/html,<input type=password> in address bar.

Flags: needinfo?(sgalich)

(In reply to Sergey Galich [:serg] from comment #12)

(In reply to Ekene Nwobodo from comment #10)

How can I reproduce this error, I have opened the console with what is mentioned above. How can I tab to data:text/html,<input type=password>

Ekene, you can paste that data:text/html,<input type=password> in address bar.

Hello Sergey,
I want to check in because my PR hasn't be reviewed.

(In reply to Ekene Nwobodo from comment #13)

(In reply to Sergey Galich [:serg] from comment #12)

(In reply to Ekene Nwobodo from comment #10)

How can I reproduce this error, I have opened the console with what is mentioned above. How can I tab to data:text/html,<input type=password>

Ekene, you can paste that data:text/html,<input type=password> in address bar.

(In reply to Ekene Nwobodo from comment #13)

I want to check in because my PR hasn't be reviewed.

Review happens in Phabricator, all comments are there, they won't appear on Bugzilla.

(In reply to Sergey Galich [:serg] from comment #15)

(In reply to Ekene Nwobodo from comment #13)

I want to check in because my PR hasn't be reviewed.

Review happens in Phabricator, all comments are there, they won't appear on Bugzilla.

Patch has been updated

Pushed by sgalich@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5eb9fc85da10
Resolve console warning 'Couldn't parse origin for: data:text/html,<input type=password>' ({}). r=sgalich
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
QA Whiteboard: [qa-114b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: