зеркало из https://github.com/mozilla/gecko-dev.git
Bug 949413 - Set href with context in Location.assign r=bz
MozReview-Commit-ID: Ao5eIxdo5Qv --HG-- extra : rebase_source : c6f4a0a1d262cef057300cc39468c8f7eda59860
This commit is contained in:
Родитель
0c20427fe9
Коммит
b674c212ab
|
@ -922,6 +922,10 @@ nsLocation::Replace(const nsAString& aUrl)
|
|||
NS_IMETHODIMP
|
||||
nsLocation::Assign(const nsAString& aUrl)
|
||||
{
|
||||
if (JSContext *cx = nsContentUtils::GetCurrentJSContext()) {
|
||||
return SetHrefWithContext(cx, aUrl, false);
|
||||
}
|
||||
|
||||
nsAutoString oldHref;
|
||||
nsresult result = NS_OK;
|
||||
|
||||
|
|
|
@ -106,9 +106,6 @@
|
|||
[loading webvtt <track>]
|
||||
expected: TIMEOUT
|
||||
|
||||
[location.assign()]
|
||||
expected: FAIL
|
||||
|
||||
[history.pushState]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -106,9 +106,6 @@
|
|||
[loading webvtt <track>]
|
||||
expected: TIMEOUT
|
||||
|
||||
[location.assign()]
|
||||
expected: FAIL
|
||||
|
||||
[history.pushState]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -106,9 +106,6 @@
|
|||
[loading webvtt <track>]
|
||||
expected: TIMEOUT
|
||||
|
||||
[location.assign()]
|
||||
expected: FAIL
|
||||
|
||||
[history.pushState]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -24,9 +24,6 @@
|
|||
[window.open()]
|
||||
expected: FAIL
|
||||
|
||||
[location.assign()]
|
||||
expected: FAIL
|
||||
|
||||
[history.pushState]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче