Skip to content

Commit

Permalink
Backed out changeset 149e69327bbb (bug 1746524) for causing gv-junit …
Browse files Browse the repository at this point in the history
…failures on bypassHTTPSOnlyError. CLOSED TREE

UltraBlame original commit: 5d6699b34edce04ffd8886be86de9d604d88a89a
  • Loading branch information
marco-c committed Nov 8, 2023
1 parent 8602d3e commit efb16a9
Show file tree
Hide file tree
Showing 2 changed files with 134 additions and 104 deletions.
190 changes: 134 additions & 56 deletions docshell/base/CanonicalBrowsingContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14046,54 +14046,6 @@ aOuterWindowId
/
We
currently
only
support
starting
loads
directly
from
the
/
/
CanonicalBrowsingContext
for
top
-
level
BCs
.
if
(
!
IsTopContent
(
)
|
|
!
GetContentParent
(
)
|
|
(
StaticPrefs
:
:
browser_tabs_documentchannel_parent_controlled
(
)
)
)
{
return
false
;
}
/
/
We
currently
don
'
t
Expand Down Expand Up @@ -14464,6 +14416,73 @@ bool
aSetNavigating
)
{
/
/
We
currently
only
support
starting
loads
directly
from
the
/
/
CanonicalBrowsingContext
for
top
-
level
BCs
.
/
/
We
currently
only
support
starting
loads
directly
from
the
/
/
CanonicalBrowsingContext
for
top
-
level
BCs
.
if
(
!
IsTopContent
(
)
|
|
!
GetContentParent
(
)
|
|
!
StaticPrefs
:
:
browser_tabs_documentchannel_parent_controlled
(
)
)
{
return
false
;
}
uint64_t
outerWindowId
=
Expand Down Expand Up @@ -14583,22 +14602,81 @@ nsDocShellLoadState
aLoadState
)
{
uint64_t
outerWindowId
=
0
;
/
/
We
currently
only
support
starting
loads
directly
from
the
/
/
CanonicalBrowsingContext
for
top
-
level
BCs
.
/
/
We
currently
only
support
starting
loads
directly
from
the
/
/
CanonicalBrowsingContext
for
top
-
level
BCs
.
if
(
!
IsTopContent
(
)
|
|
!
GetContentParent
(
)
|
|
(
StaticPrefs
:
:
browser_tabs_documentchannel_speculative_load
browser_tabs_documentchannel_parent_controlled
(
)
|
|
)
)
{
return
false
;
}
uint64_t
outerWindowId
=
0
;
if
(
!
SupportsLoadingInParent
(
Expand Down
48 changes: 0 additions & 48 deletions modules/libpref/init/StaticPrefList.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9559,54 +9559,6 @@ type
bool
value
:
true
mirror
:
always
#
If
set
use
DocumentChannel
to
attempt
a
speculative
load
from
the
#
parent
whenever
it
'
s
not
possible
to
directly
load
from
the
parent
.
-
name
:
browser
.
tabs
.
documentchannel
.
speculative
-
load
type
:
bool
value
:
false
mirror
:
Expand Down

0 comments on commit efb16a9

Please sign in to comment.