Closed
Bug 105797
Opened 23 years ago
Closed 23 years ago
Pref to force frames to be resizable
Categories
(Core :: Layout: Images, Video, and HTML Frames, enhancement)
Core
Layout: Images, Video, and HTML Frames
Tracking
()
RESOLVED
FIXED
mozilla0.9.6
People
(Reporter: mpt, Assigned: bzbarsky)
References
Details
Attachments
(4 files, 2 obsolete files)
1.32 KB,
patch
|
Details | Diff | Splinter Review | |
15.45 KB,
patch
|
Details | Diff | Splinter Review | |
444 bytes,
text/html
|
Details | |
15.96 KB,
patch
|
attinasi
:
superreview+
|
Details | Diff | Splinter Review |
Web authors often make incorrect assumptions about the margins a UA will apply
to their page. They then present frames which would be completely visible if
they were just a little bit taller/wider, but which have the NORESIZE attribute
set.
Therefore, Mozilla should provide a pref to force frames to be resizable, by
ignoring NORESIZE. This bug is spun off from bug 89557, which would provide a
GUI to expose the pref.
Problem occurs in: Mozilla
Problem does not occur in: iCab
Assignee | ||
Comment 2•23 years ago
|
||
Taking this since I have a partial fix in my tree.
Assignee: evaughan → bzbarsky
Assignee | ||
Comment 3•23 years ago
|
||
Assignee | ||
Comment 4•23 years ago
|
||
Assignee | ||
Comment 5•23 years ago
|
||
hyatt? evaughan? reviews?
Assignee | ||
Updated•23 years ago
|
Attachment #54592 -
Attachment is obsolete: true
Assignee | ||
Updated•23 years ago
|
Attachment #54593 -
Attachment description: QA ONLY: Really ahcky UI for "Advanced" panel to test this patch (DO NOT EVER CHECK THIS ONE IN!) → QA ONLY: Really hacky UI for "Advanced" panel to test this patch (DO NOT EVER CHECK THIS ONE IN!)
Assignee | ||
Comment 6•23 years ago
|
||
Comment 7•23 years ago
|
||
Use NS_OK instead of returning a 'raw' 0.
Assignee | ||
Comment 8•23 years ago
|
||
This is for the nsrefcnt functions? I was not sure whether those returned
nsresult or just a number (the new refcount, eg).
Assignee | ||
Comment 9•23 years ago
|
||
Comment on attachment 54698 [details] [diff] [review]
Better patch (a bit simpler and fewer member vars)
<sigh>. Observer interfaces have changed. new patch coming up.
Attachment #54698 -
Attachment is obsolete: true
Assignee | ||
Comment 10•23 years ago
|
||
Assignee | ||
Comment 11•23 years ago
|
||
Comment 12•23 years ago
|
||
What is the default value of the pref? I assume we leave things alone by
default, and only do the override if the user changes the pref?
Comment 13•23 years ago
|
||
r=hyatt
Comment 14•23 years ago
|
||
Please make sure the pref is off and that the default behavior is unchanged
when you land this. Thanks.
Comment 15•23 years ago
|
||
Can't we cache the prefBranch and thus avoid the costly work to get it again in
the destructor? I'm worried about slowing down the tear-down of IFRAMES even
further...
Assignee | ||
Comment 16•23 years ago
|
||
We can certainly cache the prefBranch. I wasn't sure what the
performance/footprint tradeoffs were here... It may well be better to cache the
prefBranch and _not_ cache the pref, getting it from the prefbranch instead as
needed (every call to GetBorderWidth, unfortunately). Or we could cache both.
What do you think, Marc?
Assignee | ||
Comment 17•23 years ago
|
||
Comment 18•23 years ago
|
||
I think it is fine to cache the pref and the prefBranch - there are not
generally too many FrameFrames around, and the size of the added data members
are small, so I'm not worried about the footprint as much as the performance.
Comment 19•23 years ago
|
||
Comment on attachment 55839 [details] [diff] [review]
Patch that caches the pref branch
sr=attinasi
Attachment #55839 -
Flags: superreview+
Assignee | ||
Comment 20•23 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 21•9 years ago
|
||
Was this preference disabled in Firefox 42 because it's no longer working. It was really useful.
Assignee | ||
Comment 22•9 years ago
|
||
Yes, this preference was removed in bug 1184842 because it was significantly complicating some optimizations that were being done to attribute setting. See bug 1184842 comment 26 and bug 1184842 comment 33.
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•