Open Bug 1920314 Opened 8 months ago Updated 5 months ago

length property missing in /browser/extensions/pictureinpicture/video-wrappers/hotstar.js#15

Categories

(Toolkit :: Picture-in-Picture, defect, P3)

defect

Tracking

()

ASSIGNED

People

(Reporter: kernp25, Assigned: kernp25, NeedInfo)

Details

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0

Expected results:

It seems the length property is missing here?

Also, this should just be callback();.

Flags: needinfo?(mconley)
Assignee: nobody → kernp25
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(mconley)
Attachment #9426370 - Attachment is obsolete: true
Attachment #9426370 - Attachment is obsolete: false
Attachment #9426370 - Attachment description: Bug 1920314 - Fix subtitle support for dailymotion.com. r=#pip-reviewers → Bug 1920315 - Fix subtitle support for dailymotion.com. r=#pip-reviewers

Comment on attachment 9426370 [details]
Bug 1920315 - Fix subtitle support for dailymotion.com. r=#pip-reviewers

Revision D223069 was moved to bug 1920315. Setting attachment 9426370 [details] to obsolete.

Attachment #9426370 - Attachment is obsolete: true

Unlike Bug 1920309, I'm keeping this ticket as a defect.

kernp25 - I know your first patch was intended for dailymotion, but are you working on a patch for hotstar too? If not, I will unassign you from the bug.

(In reply to kernp25 from comment #0)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0

Expected results:

It seems the length property is missing here?

Good catch. We probably want to check for the NodeList's length here. In addition to this, there's no need for having container? since the query is run if container is not falsey in the first place.

(In reply to kernp25 from comment #1)

Also, this should just be callback();.

I think we can simplify to callback(), yes, since we're not using a loop to find the node with text content.

Severity: -- → S3
Flags: needinfo?(kernp25)
Priority: -- → P3
Attachment #9428656 - Attachment description: Bug 1920314 - Update video wrappers. r?mconley,#pip-reviewers → Bug 1920314 - Update video wrappers. r?#pip-reviewers,niklas
Attachment #9428656 - Attachment description: Bug 1920314 - Update video wrappers. r?#pip-reviewers,niklas → Bug 1920314 - Update video wrappers. r?#pip-reviewers,niklas,kpatenio
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: