Closed Bug 1457422 Opened 7 years ago Closed 7 years ago

getComputedStyle throws NS_ERROR_NOT_AVAILABLE when called inside an iframe

Categories

(Core :: DOM: CSS Object Model, defect)

59 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 548397

People

(Reporter: support, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

(deleted), application/x-zip-compressed
Details
Attached file ffbug.zip (deleted) —
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 Steps to reproduce: 1. Run main.html 2. Click getStyle 3. Check the developer tools console Actual results: NS_ERROR_NOT_AVAILABLE error is thrown Expected results: 'table' in the console output
Has STR: --- → yes
Component: Untriaged → DOM: CSS Object Model
Keywords: testcase
Product: Firefox → Core
This is effectively bug 548397. The iframe becomes display: none as part of the flush and thus the behavior is slightly different (throwing vs. returning null), but the root cause is the same. There's work happening there, though it's a tough one :) Thanks for the report!
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: