Closed
Bug 1071964
Opened 11 years ago
Closed 11 years ago
openAndLoadSubDialog compares the injectedStylesheets against the owner document's stylesheets instead of the subdialog's stylesheets
Categories
(Firefox :: Settings UI, defect)
Firefox
Settings UI
Tracking
()
People
(Reporter: jaws, Assigned: jaws)
References
Details
Attachments
(1 file)
|
1.33 KB,
patch
|
MattN
:
review+
|
Details | Diff | Splinter Review |
If a stylesheet is added to the injectedStylesheet array but is not present in the preferences.xul file, the openAndLoadSubDialog() helper function will fail when making sure that all injected stylesheets are found.
This is because the function is currently looking at content.document.styleSheets, but it should instead be looking at content.gSubDialog._frame.contentDocument.styleSheets.
Flags: qe-verify-
Flags: in-testsuite+
Flags: firefox-backlog+
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8494081 -
Flags: review?(MattN+bmo)
Comment 2•11 years ago
|
||
Comment on attachment 8494081 [details] [diff] [review]
Patch
Review of attachment 8494081 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/preferences/in-content/tests/head.js
@@ +54,5 @@
> is_element_visible(content.gSubDialog._overlay, "Overlay is visible");
>
> // Check that stylesheets were injected
> let expectedStyleSheetURLs = content.gSubDialog._injectedStyleSheets.slice(0);
> + for (let styleSheet of content.gSubDialog._frame.contentDocument.styleSheets) {
Since the frame is already loaded in this case (we're in the load listener) this should be fine. Thanks
Attachment #8494081 -
Flags: review?(MattN+bmo) → review+
Updated•11 years ago
|
Iteration: 34.2 → 35.2
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 35
You need to log in
before you can comment on or make changes to this bug.
Description
•