Closed
Bug 1490858
Opened 7 years ago
Closed 7 years ago
Streamline nsISHEntry
Categories
(Core :: DOM: Navigation, enhancement)
Core
DOM: Navigation
Tracking
()
RESOLVED
FIXED
mozilla64
| Tracking | Status | |
|---|---|---|
| firefox64 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
Details
Attachments
(5 files)
|
57.88 KB,
patch
|
nika
:
review+
|
Details | Diff | Splinter Review |
|
13.11 KB,
patch
|
nika
:
review+
|
Details | Diff | Splinter Review |
|
8.07 KB,
patch
|
nika
:
review+
|
Details | Diff | Splinter Review |
|
15.35 KB,
patch
|
nika
:
review+
|
Details | Diff | Splinter Review |
|
1.51 KB,
patch
|
frg
:
review+
|
Details | Diff | Splinter Review |
Still more shistory clean-ups.
| Assignee | ||
Comment 1•7 years ago
|
||
The patch also removes some NS_ENSURE_ARG_POINTER checks from these attributes'
getters. Most of these getters already lack such checks, and as long as the
infallible getters are used a non-null pointer is guaranteed. In the worst case
we'll safely null-crash anyway.
Attachment #9008575 -
Flags: review?(nika)
| Assignee | ||
Updated•7 years ago
|
Assignee: nobody → n.nethercote
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•7 years ago
|
||
By marking some C++-only nsISHistory methods as [noscript] or [noscript,
notxpcom].
Attachment #9008576 -
Flags: review?(nika)
| Assignee | ||
Comment 3•7 years ago
|
||
Both nsISHEntry.URI and nsISHEntry isSubFrame are readonly, but also have a
setter. This is silly, so this patch removes the setter and makes them
modifiable.
The patch also renames nsISHEntry.setAsHistoryLoad() as setLoadTypeAsHistory(),
which makes it clearer that it modifies the loadType attribute.
Attachment #9008579 -
Flags: review?(nika)
| Assignee | ||
Comment 4•7 years ago
|
||
nsISHEntry's attributes and methods are thoroughly mixed. This patch separates
them, making it easier to understand.
Attachment #9008580 -
Flags: review?(nika)
Comment 5•7 years ago
|
||
Comment on attachment 9008575 [details] [diff] [review]
Make most nsISHEntry attributes infallible
Review of attachment 9008575 [details] [diff] [review]:
-----------------------------------------------------------------
File a bug for supporting infallible on string class types and refer to it?
Attachment #9008575 -
Flags: review?(nika) → review+
Updated•7 years ago
|
Attachment #9008576 -
Flags: review?(nika) → review+
Updated•7 years ago
|
Attachment #9008579 -
Flags: review?(nika) → review+
Updated•7 years ago
|
Attachment #9008580 -
Flags: review?(nika) → review+
| Assignee | ||
Comment 6•7 years ago
|
||
> File a bug for supporting infallible on string class types and refer to it?
Bug 1491187.
| Assignee | ||
Comment 7•7 years ago
|
||
nsISHEntry.{URI,isSubFrame} both lost an explicit setter, but became mutable.
Attachment #9008989 -
Flags: review?(frgrahl)
Pushed by nnethercote@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/cc1de79de88f
Make most nsISHEntry attributes infallible. r=nika
https://hg.mozilla.org/integration/mozilla-inbound/rev/abf70961a783
Streamline nsISHEntry a little more. r=nika
https://hg.mozilla.org/integration/mozilla-inbound/rev/505759d44fda
Simplify some nsISHEntry attributes. r=nika
https://hg.mozilla.org/integration/mozilla-inbound/rev/c6a68b5804d5
Reorder nsISHEntry. r=nika
Comment 9•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/cc1de79de88f
https://hg.mozilla.org/mozilla-central/rev/abf70961a783
https://hg.mozilla.org/mozilla-central/rev/505759d44fda
https://hg.mozilla.org/mozilla-central/rev/c6a68b5804d5
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Comment 10•7 years ago
|
||
Comment on attachment 9008989 [details] [diff] [review]
Update comm-central for nsISHEntry changes
Looks good. Big thanks.
Attachment #9008989 -
Flags: review?(frgrahl) → review+
Comment 11•7 years ago
|
||
Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/4fa52926ba4c
Update comm-central for nsISHEntry changes. r=frg
You need to log in
before you can comment on or make changes to this bug.
Description
•