Closed Bug 1585439 Opened 6 years ago Closed 3 years ago

Incorrect assertion in nsDOMWindowUtils::GetVisitedDependentComputedStyle(

Categories

(Core :: DOM: Content Processes, defect, P3)

defect

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: beth, Assigned: suhaib)

Details

(Keywords: good-first-bug)

Attachments

(1 file, 1 obsolete file)

In nsDOMWindowUtils::GetVisitedDependentComputedStyle there is the following code with assertions

  nsCOMPtr<nsPIDOMWindowOuter> window = do_QueryReferent(mWindow);
  NS_ENSURE_STATE(window && aElement);
  nsCOMPtr<nsPIDOMWindowInner> innerWindow = window->GetCurrentInnerWindow();
  NS_ENSURE_STATE(window); // <--

This should be an assertion of innerWindow as we've already checked that window exists.

The priority flag is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)
Flags: needinfo?(jmathies)
Priority: -- → P3
Keywords: good-first-bug

Hi, I would like to contribute to this bug. It is my first bug fix so could you please guide me and tell me how to proceed.
Thanks

Assignee: nobody → shrey2809
Status: NEW → ASSIGNED

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

Assignee: shrey2809 → nobody
Status: ASSIGNED → NEW

Hello, Kindly assign me this bug to work on

(In reply to Nekesa Patricia from comment #5)

Hello, Kindly assign me this bug to work on

Great! Feel free to just submit a patch here following our contribution quickref. This will automatically assign the bug to you. I will abandon the old one that has never been completed.

Assignee: nobody → jstutte
Status: NEW → ASSIGNED
Attachment #9121750 - Attachment is obsolete: true
Assignee: jstutte → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(nekepatri)
Assignee: nobody → smujahid
Status: NEW → ASSIGNED
Pushed by amccreight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/498161493c3b Replace assertion of window with innerWindow. r=mccr8
Flags: needinfo?(nekepatri)
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: