Граф коммитов

219 Коммитов

Автор SHA1 Сообщение Дата
Victor Porof bcdc3a9567 Bug 1561435 - Format docshell/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35900

--HG--
extra : source : b08f475f1140b9e650b316ee2813c13ec9947678
2019-07-05 09:59:46 +02:00
Kris Maglione 5f94103053 Bug 1560400: Part 3 - Update DocShell frame navigation tests to support remote frames. r=nika
The tests still fail under Fission, because the mechanisms they use to
navigate the frames don't work, but at least the checks for whether the
navigation succeeded now do. That means the tests should start passing when
the necessary APIs become Fission-compatible.

Differential Revision: https://phabricator.services.mozilla.com/D35473

--HG--
extra : rebase_source : 6abaf14899403beec1b00ee78e4796a4446a5f64
extra : source : bf0f0e95c61c2a57d176699f05e71e967a13d3e8
2019-06-20 14:30:47 -07:00
Edwin Gao 0b16ea99cf Bug 1555454 - move mochitests-plain over to macosx1014 r=jmaher
Changes:

- migrate over `mochitest-plain` to macosx1014
- disable some tests that are known to be problematic on macosx1014; they are noted in the comments

Differential Revision: https://phabricator.services.mozilla.com/D34589

--HG--
extra : moz-landing-system : lando
2019-06-24 20:35:05 +00:00
Brian Grinstead ede8c44ef2 Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky
This excludes dom/, otherwise the file size is too large for phabricator to handle.

This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 2` argument.

Differential Revision: https://phabricator.services.mozilla.com/D27456

--HG--
extra : moz-landing-system : lando
2019-04-16 03:50:44 +00:00
Ian Moody b6cbc669dc Bug 1536659 - docshell/ automated ESLint no-throw-literal fixes. r=nika
Result of running:
$ mach eslint -funix docshell/ | sed -Ee 's/:.+//' - | xargs sed -E \
    -e 's/throw ((["`])[^"]+\2);/throw new Error(\1);/g' \
    -e 's/throw ((["`])[^"]+\2 \+ [^ ";]+);/throw new Error(\1);/g' \
    -e 's/throw \(/throw new Error(/g' -i

Differential Revision: https://phabricator.services.mozilla.com/D24367

--HG--
extra : moz-landing-system : lando
2019-03-21 16:53:45 +00:00
Boris Zbarsky 2e5c884144 Bug 1489308 part 5. Align the work we do on document.open with the spec. r=mccr8,smaug
The main behavior changes are:

1) We no longer create a new Window when doing document.open().  We use the
same Window but remove all the event listeners on it and on the existing DOM
tree before removing the document's existing kids.

2) We no longer create a new session history entry.  The existing one always
gets replaced instead.

3) We now support document.open on documents that are not in a Window.

The reasons for the various test changes are as follows:

The change to browser_modifiedclick_inherit_principal.js is because we no
longer set the docshell to a wyciwyg URL when document.open() happens and the
test was depending on that to terminate.

browser_wyciwyg_urlbarCopying.js is being removed because it's trying to test
wyciwyg URIs, which no longer exist.

The changes in docshell/test/navigation are because document.open() no longer
affects session history.  One of the tests was testing the interactions there
and is being removed; another is being repurposed to just test that
document.open() does not affect history.length.

The change to test_x-frame-options.html is because document.open() now removes
event listeners on the window, which it didn't use to do (and in the specific
case in this test reused the existing inner too, so the listener was still
around in practice).  The new behavior matches other browsers.

The removal of test_bug172261.html is because document.open() no longer affects
session history, so you can't go back across it or forward to the "opened"
state, so the situation that test is trying to test no longer exists.

The changes to test_bug255820.html are because reloading a document after
document.open() will now just load the URL of the document that was the entry
document for the open() call, not reload the written content.  So there's not
much point testing reload behavior, and in this test it was just reloading the
toplevel test file inside the frames.

The change to test_bug346659.html is because now we no longer create a new
Window on document.open().

The change to test_bug1232829.html is because document.open() (implicit in this
test) no longer adds history entries, so the back() was just leaving the test
page instead of going back across the document.open().  The test is a
crashtest in practice, so might still be testing something useful about how
document.open() interacts with animations.

The change to test_bug715739.html is because the URL of the document after
document.open() is now the URL of the entry document, not a wyciwyg URL, so
reload() has different behavior than it used to.

The change to test_bug329869.html is because now when we go back we're
reloading the original document we had, not doing a wyciwyg load, and the
security info now doesn't include the untrusted script.

The changes to the wpt expectations are removing a bunch of expected failures
now that we pass those tests and disabling some tests that are fundamentally
racy and hence fail randomly.  The latter all have github issues filed for the
test problem.

The change to testing/web-platform/tests/common/object-association.js is fixing
tests that were not matching the spec (and were failing in other browsers).

The change to parser-uses-registry-of-owner-document.html is fixing tests that
were not matching the spec (and were failing in other browsers).

The change to document-write.tentative.html is because the test was buggy: it
was using the same iframe element for all its tests and racing loads from some
tests against API calls from other tests, etc.  It's a wonder it ever managed
to pass, independent of these patches (and in fact it doesn't pass according to
wpt.fyi data, even in Firefox).

The changes in html/browsers/history/the-history-interface are because
document.open() no longer adds history entries.  The test was failing in all
other browsers for the same reason.

The changes in html/browsers/history/the-location-interface are because
reloading a document.open()-created thing now loads the URL of the page that
was the entry document for the open() call.  The test was failing in all other
browsers.

The change to reload_document_open_write.html is because we now reload the url
of the document that entered the script that called open() when we reload, not
the written content.  Other browsers were failing this test too; Gecko with
the old document.open implementation was the only one that passed.

The change to http-refresh.py is to fix a test bug: it was not returning a
Content-Type header, so we were putting up helper app dialogs, etc.

The change to test_ext_contentscript.js is because we no create a new global
for document.open() calls.  Kris Maglione OKed this part.

Differential Revision: https://phabricator.services.mozilla.com/D17323

--HG--
extra : moz-landing-system : lando
2019-02-27 23:24:48 +00:00
Myk Melez 25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Toby Ward 3b7ee7c100 Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (manual fixes) r=bzbarsky
Implemented the manual linting fixes for docshell/test/navigation, docshell/test/unit and docshell/test/unit_ipc
Depends on D9430

Differential Revision: https://phabricator.services.mozilla.com/D10080

--HG--
extra : moz-landing-system : lando
2018-11-07 13:49:05 +00:00
Toby Ward 75e6200c17 Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky
Enabled ESLint for:

* docshell/test/navigation/**
* docshell/test/unit/**
* docshell/test/unit_ipc/**

Changed .eslintignore to allow for this and ran ./mach eslint --fix on the above directories and checked automatic fixes

Differential Revision: https://phabricator.services.mozilla.com/D9430

--HG--
extra : moz-landing-system : lando
2018-11-07 13:55:47 +00:00
Dorel Luca 6617a8c922 Backed out 2 changesets (bug 1496082) for mochitest faiures in docshell/test/navigation/test_bug270414.html
Backed out changeset 776b54474da9 (bug 1496082)
Backed out changeset 0852730f9ecd (bug 1496082)
2018-11-06 22:40:36 +02:00
Toby Ward a69d8ab823 Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (manual fixes) r=bzbarsky
Implemented the manual linting fixes for docshell/test/navigation, docshell/test/unit and docshell/test/unit_ipc
Depends on D9430

Differential Revision: https://phabricator.services.mozilla.com/D10080

--HG--
extra : moz-landing-system : lando
2018-11-06 17:03:39 +00:00
Toby Ward 4083f33603 Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky
Enabled ESLint for:

* docshell/test/navigation/**
* docshell/test/unit/**
* docshell/test/unit_ipc/**

Changed .eslintignore to allow for this and ran ./mach eslint --fix on the above directories and checked automatic fixes

Differential Revision: https://phabricator.services.mozilla.com/D9430

--HG--
extra : moz-landing-system : lando
2018-11-06 17:05:39 +00:00
Bogdan Tara 98c46b95b5 Backed out 2 changesets (bug 1496082) for test_bug270414.html failures CLOSED TREE
Backed out changeset 74780d0a4848 (bug 1496082)
Backed out changeset 4f87e383a807 (bug 1496082)
2018-11-06 17:58:24 +02:00
Toby Ward dec5a37fbe Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (manual fixes) r=bzbarsky
Implemented the manual linting fixes for docshell/test/navigation, docshell/test/unit and docshell/test/unit_ipc
Depends on D9430

Differential Revision: https://phabricator.services.mozilla.com/D10080

--HG--
extra : moz-landing-system : lando
2018-11-06 14:54:38 +00:00
Toby Ward 415ae552bb Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky
Enabled ESLint for:

* docshell/test/navigation/**
* docshell/test/unit/**
* docshell/test/unit_ipc/**

Changed .eslintignore to allow for this and ran ./mach eslint --fix on the above directories and checked automatic fixes

Differential Revision: https://phabricator.services.mozilla.com/D9430

--HG--
extra : moz-landing-system : lando
2018-11-06 14:48:43 +00:00
Julian Descottes 2fcd6cb020 Bug 1499096 - Update tests using ok() to is();r=Standard8
This changeset updates all the test that were wrongly using ok() and wanted to
use is() AND for which the assert is still passing without any modification
required.

Differential Revision: https://phabricator.services.mozilla.com/D8739

--HG--
extra : moz-landing-system : lando
2018-10-23 07:12:23 +00:00
Mark Banner fe8b12afbf Bug 1417383 - Add initial .eslintrc.js files for docshell test directories (not enabled yet). r=qdot
Depends on D7053

Differential Revision: https://phabricator.services.mozilla.com/D7055

--HG--
extra : moz-landing-system : lando
2018-10-02 07:51:39 +00:00
shindli 71f504e2e3 Backed out 3 changesets (bug 1417383) for bustages in /builds/worker/workspace/build/src/docshell/test/mochitest/moz.build CLOSED TREE
Backed out changeset 44d07650e6fe (bug 1417383)
Backed out changeset d0d9cd85f3db (bug 1417383)
Backed out changeset ddaef0a8de5f (bug 1417383)

--HG--
rename : docshell/test/mochitest/bug123696-subframe.html => docshell/test/bug123696-subframe.html
rename : docshell/test/mochitest/bug404548-subframe.html => docshell/test/bug404548-subframe.html
rename : docshell/test/mochitest/bug404548-subframe_window.html => docshell/test/bug404548-subframe_window.html
rename : docshell/test/mochitest/bug413310-post.sjs => docshell/test/bug413310-post.sjs
rename : docshell/test/mochitest/bug413310-subframe.html => docshell/test/bug413310-subframe.html
rename : docshell/test/mochitest/bug529119-window.html => docshell/test/bug529119-window.html
rename : docshell/test/mochitest/bug530396-noref.sjs => docshell/test/bug530396-noref.sjs
rename : docshell/test/mochitest/bug530396-subframe.html => docshell/test/bug530396-subframe.html
rename : docshell/test/mochitest/bug570341_recordevents.html => docshell/test/bug570341_recordevents.html
rename : docshell/test/mochitest/bug668513_redirect.html => docshell/test/bug668513_redirect.html
rename : docshell/test/mochitest/bug668513_redirect.html^headers^ => docshell/test/bug668513_redirect.html^headers^
rename : docshell/test/mochitest/bug691547_frame.html => docshell/test/bug691547_frame.html
rename : docshell/test/mochitest/dummy_page.html => docshell/test/dummy_page.html
rename : docshell/test/mochitest/file_anchor_scroll_after_document_open.html => docshell/test/file_anchor_scroll_after_document_open.html
rename : docshell/test/mochitest/file_bfcache_plus_hash_1.html => docshell/test/file_bfcache_plus_hash_1.html
rename : docshell/test/mochitest/file_bfcache_plus_hash_2.html => docshell/test/file_bfcache_plus_hash_2.html
rename : docshell/test/mochitest/file_bug1121701_1.html => docshell/test/file_bug1121701_1.html
rename : docshell/test/mochitest/file_bug1121701_2.html => docshell/test/file_bug1121701_2.html
rename : docshell/test/mochitest/file_bug1151421.html => docshell/test/file_bug1151421.html
rename : docshell/test/mochitest/file_bug1186774.html => docshell/test/file_bug1186774.html
rename : docshell/test/mochitest/file_bug1450164.html => docshell/test/file_bug1450164.html
rename : docshell/test/mochitest/file_bug385434_1.html => docshell/test/file_bug385434_1.html
rename : docshell/test/mochitest/file_bug385434_2.html => docshell/test/file_bug385434_2.html
rename : docshell/test/mochitest/file_bug385434_3.html => docshell/test/file_bug385434_3.html
rename : docshell/test/mochitest/file_bug475636.sjs => docshell/test/file_bug475636.sjs
rename : docshell/test/mochitest/file_bug509055.html => docshell/test/file_bug509055.html
rename : docshell/test/mochitest/file_bug511449.html => docshell/test/file_bug511449.html
rename : docshell/test/mochitest/file_bug540462.html => docshell/test/file_bug540462.html
rename : docshell/test/mochitest/file_bug580069_1.html => docshell/test/file_bug580069_1.html
rename : docshell/test/mochitest/file_bug580069_2.sjs => docshell/test/file_bug580069_2.sjs
rename : docshell/test/mochitest/file_bug590573_1.html => docshell/test/file_bug590573_1.html
rename : docshell/test/mochitest/file_bug590573_2.html => docshell/test/file_bug590573_2.html
rename : docshell/test/mochitest/file_bug637644_1.html => docshell/test/file_bug598895_1.html
rename : docshell/test/mochitest/file_bug637644_2.html => docshell/test/file_bug598895_2.html
rename : docshell/test/mochitest/file_bug634834.html => docshell/test/file_bug634834.html
rename : docshell/test/mochitest/file_bug640387.html => docshell/test/file_bug640387.html
rename : docshell/test/mochitest/file_bug662170.html => docshell/test/file_bug653741.html
rename : docshell/test/mochitest/file_bug660404 => docshell/test/file_bug660404
rename : docshell/test/mochitest/file_bug660404-1.html => docshell/test/file_bug660404-1.html
rename : docshell/test/mochitest/file_bug660404^headers^ => docshell/test/file_bug660404^headers^
rename : docshell/test/mochitest/file_bug668513.html => docshell/test/file_bug668513.html
rename : docshell/test/mochitest/file_bug669671.sjs => docshell/test/file_bug669671.sjs
rename : docshell/test/mochitest/file_bug675587.html => docshell/test/file_bug675587.html
rename : docshell/test/mochitest/file_bug680257.html => docshell/test/file_bug680257.html
rename : docshell/test/mochitest/file_bug703855.html => docshell/test/file_bug703855.html
rename : docshell/test/mochitest/file_bug728939.html => docshell/test/file_bug728939.html
rename : docshell/test/mochitest/file_close_onpagehide1.html => docshell/test/file_close_onpagehide1.html
rename : docshell/test/mochitest/file_close_onpagehide2.html => docshell/test/file_close_onpagehide2.html
rename : docshell/test/mochitest/file_framedhistoryframes.html => docshell/test/file_framedhistoryframes.html
rename : docshell/test/mochitest/file_pushState_after_document_open.html => docshell/test/file_pushState_after_document_open.html
rename : docshell/test/mochitest/historyframes.html => docshell/test/historyframes.html
rename : docshell/test/mochitest/mochitest.ini => docshell/test/mochitest.ini
rename : docshell/test/mochitest/moz.build => docshell/test/moz.build
rename : docshell/test/mochitest/start_historyframe.html => docshell/test/start_historyframe.html
rename : docshell/test/mochitest/test_anchor_scroll_after_document_open.html => docshell/test/test_anchor_scroll_after_document_open.html
rename : docshell/test/mochitest/test_bfcache_plus_hash.html => docshell/test/test_bfcache_plus_hash.html
rename : docshell/test/mochitest/test_bug1045096.html => docshell/test/test_bug1045096.html
rename : docshell/test/mochitest/test_bug1121701.html => docshell/test/test_bug1121701.html
rename : docshell/test/mochitest/test_bug1151421.html => docshell/test/test_bug1151421.html
rename : docshell/test/mochitest/test_bug1186774.html => docshell/test/test_bug1186774.html
rename : docshell/test/mochitest/test_bug123696.html => docshell/test/test_bug123696.html
rename : docshell/test/mochitest/test_bug1450164.html => docshell/test/test_bug1450164.html
rename : docshell/test/mochitest/test_bug384014.html => docshell/test/test_bug384014.html
rename : docshell/test/mochitest/test_bug385434.html => docshell/test/test_bug385434.html
rename : docshell/test/mochitest/test_bug387979.html => docshell/test/test_bug387979.html
rename : docshell/test/mochitest/test_bug402210.html => docshell/test/test_bug402210.html
rename : docshell/test/mochitest/test_bug404548.html => docshell/test/test_bug404548.html
rename : docshell/test/mochitest/test_bug413310.html => docshell/test/test_bug413310.html
rename : docshell/test/mochitest/test_bug475636.html => docshell/test/test_bug475636.html
rename : docshell/test/mochitest/test_bug509055.html => docshell/test/test_bug509055.html
rename : docshell/test/mochitest/test_bug511449.html => docshell/test/test_bug511449.html
rename : docshell/test/mochitest/test_bug529119-1.html => docshell/test/test_bug529119-1.html
rename : docshell/test/mochitest/test_bug529119-2.html => docshell/test/test_bug529119-2.html
rename : docshell/test/mochitest/test_bug530396.html => docshell/test/test_bug530396.html
rename : docshell/test/mochitest/test_bug540462.html => docshell/test/test_bug540462.html
rename : docshell/test/mochitest/test_bug551225.html => docshell/test/test_bug551225.html
rename : docshell/test/mochitest/test_bug570341.html => docshell/test/test_bug570341.html
rename : docshell/test/mochitest/test_bug580069.html => docshell/test/test_bug580069.html
rename : docshell/test/mochitest/test_bug590573.html => docshell/test/test_bug590573.html
rename : docshell/test/mochitest/test_bug598895.html => docshell/test/test_bug598895.html
rename : docshell/test/mochitest/test_bug634834.html => docshell/test/test_bug634834.html
rename : docshell/test/mochitest/test_bug637644.html => docshell/test/test_bug637644.html
rename : docshell/test/mochitest/test_bug640387_1.html => docshell/test/test_bug640387_1.html
rename : docshell/test/mochitest/test_bug640387_2.html => docshell/test/test_bug640387_2.html
rename : docshell/test/mochitest/test_bug653741.html => docshell/test/test_bug653741.html
rename : docshell/test/mochitest/test_bug660404.html => docshell/test/test_bug660404.html
rename : docshell/test/mochitest/test_bug662170.html => docshell/test/test_bug662170.html
rename : docshell/test/mochitest/test_bug668513.html => docshell/test/test_bug668513.html
rename : docshell/test/mochitest/test_bug669671.html => docshell/test/test_bug669671.html
rename : docshell/test/mochitest/test_bug675587.html => docshell/test/test_bug675587.html
rename : docshell/test/mochitest/test_bug680257.html => docshell/test/test_bug680257.html
rename : docshell/test/mochitest/test_bug691547.html => docshell/test/test_bug691547.html
rename : docshell/test/mochitest/test_bug694612.html => docshell/test/test_bug694612.html
rename : docshell/test/mochitest/test_bug703855.html => docshell/test/test_bug703855.html
rename : docshell/test/mochitest/test_bug728939.html => docshell/test/test_bug728939.html
rename : docshell/test/mochitest/test_bug797909.html => docshell/test/test_bug797909.html
rename : docshell/test/mochitest/test_close_onpagehide_by_history_back.html => docshell/test/test_close_onpagehide_by_history_back.html
rename : docshell/test/mochitest/test_close_onpagehide_by_window_close.html => docshell/test/test_close_onpagehide_by_window_close.html
rename : docshell/test/mochitest/test_forceinheritprincipal_overrule_owner.html => docshell/test/test_forceinheritprincipal_overrule_owner.html
rename : docshell/test/mochitest/test_framedhistoryframes.html => docshell/test/test_framedhistoryframes.html
rename : docshell/test/mochitest/test_pushState_after_document_open.html => docshell/test/test_pushState_after_document_open.html
rename : docshell/test/mochitest/test_triggeringprincipal_location_seturi.html => docshell/test/test_triggeringprincipal_location_seturi.html
rename : docshell/test/mochitest/test_windowedhistoryframes.html => docshell/test/test_windowedhistoryframes.html
rename : docshell/test/mochitest/url1_historyframe.html => docshell/test/url1_historyframe.html
rename : docshell/test/mochitest/url2_historyframe.html => docshell/test/url2_historyframe.html
2018-10-02 00:04:57 +03:00
Mark Banner 103dc8d830 Bug 1417383 - Add initial .eslintrc.js files for docshell test directories (not enabled yet). r=qdot
Depends on D7053

Differential Revision: https://phabricator.services.mozilla.com/D7055

--HG--
extra : moz-landing-system : lando
2018-10-01 19:09:36 +00:00
Jonathan Kingston d8c962ddb9 Bug 1485305 - docshell/ Ensure loadURI always passes a triggeringPrincipal() r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D4556

--HG--
extra : source : 980570093e18dfa77b28173dc18beb27f663bc1e
extra : intermediate-source : 14fe80bbe0838259e36edc24e6a99c431388a123
2018-08-29 15:46:43 +01:00
Brindusan Cristian 1db0587c0e Backed out 10 changesets (bug 1485305) for browser-chrome failures on docshell/test/browser/browser_loadURI.js. CLOSED TREE
Backed out changeset 50439ec01661 (bug 1485305)
Backed out changeset a05e40ef7215 (bug 1485305)
Backed out changeset c99b97b4348b (bug 1485305)
Backed out changeset 75220b2f6669 (bug 1485305)
Backed out changeset e698f2fc1c1a (bug 1485305)
Backed out changeset acce14683c13 (bug 1485305)
Backed out changeset 323773a395cc (bug 1485305)
Backed out changeset 1b74152cabc1 (bug 1485305)
Backed out changeset 4b5c9d5929fc (bug 1485305)
Backed out changeset 238d92348159 (bug 1485305)
2018-09-19 18:47:27 +03:00
Jonathan Kingston 0cfe86dda9 Bug 1485305 - docshell/ Ensure loadURI always passes a triggeringPrincipal() r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D4556

--HG--
extra : source : ef824d059e06f565cf0f92ce7dedb5eb81f3416d
2018-08-29 15:46:43 +01:00
arthur.iakab d2e647e133 Backed out 10 changesets (bug 1485305)for failing browser chrome tests on browser_loadDisallowInherit.js
Backed out changeset 138b8596a9cd (bug 1485305)
Backed out changeset d9f04aeeeef7 (bug 1485305)
Backed out changeset cd063d8afe4e (bug 1485305)
Backed out changeset 2f8a5a03ccb5 (bug 1485305)
Backed out changeset 8085d1eefd7c (bug 1485305)
Backed out changeset 3aaccb374a59 (bug 1485305)
Backed out changeset 3a111e9e5c9c (bug 1485305)
Backed out changeset 61aa1cfb0b01 (bug 1485305)
Backed out changeset bca973d90acc (bug 1485305)
Backed out changeset 4eb33bf25d6f (bug 1485305)
2018-09-18 20:30:07 +03:00
Jonathan Kingston b879b521d0 Bug 1485305 - docshell/ Ensure loadURI always passes a triggeringPrincipal() r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D4556

--HG--
extra : source : 9634aa3014342bcbc4e4432d449faee15f916a6a
2018-08-29 15:46:43 +01:00
Tiberius Oros 3235f6720f Backed out 10 changesets (bug 1485305) for failures at browser/content/browser.js on a CLOSED TREE
Backed out changeset 63c50fd60ae4 (bug 1485305)
Backed out changeset bf0f2adb765e (bug 1485305)
Backed out changeset 721871bb64f1 (bug 1485305)
Backed out changeset e9da73786c5f (bug 1485305)
Backed out changeset e02038177b6b (bug 1485305)
Backed out changeset 35bd32f99f60 (bug 1485305)
Backed out changeset f40900bf8621 (bug 1485305)
Backed out changeset 03632075ac2c (bug 1485305)
Backed out changeset 2fee48378f73 (bug 1485305)
Backed out changeset 6263695b3cb8 (bug 1485305)
2018-09-18 14:46:54 +03:00
Jonathan Kingston b40ee11ead Bug 1485305 - docshell/ Ensure loadURI always passes a triggeringPrincipal() r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D4556

--HG--
extra : source : a935c1118e0f03a76e2ea81698a936cdeecb90cf
2018-08-29 15:46:43 +01:00
Nicholas Nethercote f5d9c8867c Bug 1488321 - Remove all traces of the "transaction" terminology in SHistory. r=nika.
This patch:

- removes GetTransactionAtIndex(), because getTransactionAtIndex() can be used
  instead;

- renames a lot of things;

- updates some comments.

--HG--
extra : rebase_source : 845a1c1d5fe7f84eaa03db39a344d98fd5784afd
2018-09-05 09:03:22 +10:00
Nicholas Nethercote 13643f64e8 Bug 1488321 - Fix up nsISHEntry.{index,getEntryAtIndex()}. r=nika
nsISHEntry.index is readonly, but if you pass `true` as getEntryAtIndex()'s
second argument, nsISHEntry.index will be modified. This is pretty gross.

This patch changes `index` so it's not readonly (because it's not!) and removes
getEntryAtIndex()'s second argument.

--HG--
extra : rebase_source : c519d77fcc1c3bda2f260b5888ce9cd0f6cfdab5
2018-09-05 09:02:37 +10:00
Nicholas Nethercote f369a978ca Bug 1487296 - Merge nsISHistoryInternal into nsISHistory. r=nika
With legacy add-ons gone, there is no benefit to keeping them separate.
2018-08-30 11:37:40 +10:00
Kris Maglione 3a5c05e76f Bug 1484496: Part 5e - Convert remaining nsISimpleEnumerator users to use JS iteration. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D3733

--HG--
extra : rebase_source : c0fac176d7b3d840c4dbb14f8d95ccfc7f83a5a8
extra : histedit_source : a92c40117d0808a3ad68c972f622a7a42c9ae8ba
2018-08-18 18:13:14 -07:00
Nicholas Nethercote 8cb0711355 Bug 1485279 - Merge nsISHContainer into nsISHEntry. r=qdot
nsSHEntry is the only class that instantiates those two interfaces, so the
separation is not useful. This lets us remove numerous pointless QIs.

--HG--
extra : rebase_source : 570b7ade669fb89a789184198bec9da186c5f1d3
2018-08-22 19:20:56 +10:00
Boris Zbarsky 754087a992 Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
Kris Maglione 031076f2f3 Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : source : fcfb99baa0f0fb60a7c420a712c6ae7c72576871
extra : histedit_source : 5be9b7b29a52a4b8376ee0bdfc5c08b12e3c775a
2018-05-21 16:58:23 -07:00
Narcis Beleuzu 561ccb2ceb Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione cb1ee1e34d Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : rebase_source : a13c59d1a5ed000187c7fd8e7339408ad6e2dee6
2018-05-21 16:58:23 -07:00
Boris Zbarsky 75abc43e0d Bug 1476145 part 8. Stop using getInterface(nsIDOMWindowUtils) in various test code. r=kmag 2018-07-24 19:47:43 -04:00
Kartikaya Gupta fc66c485b6 Bug 1456882 - Enable some passing mochitests on linux64-qr. r=jrmuizel
MozReview-Commit-ID: 5VIHjwx6A2j

--HG--
extra : rebase_source : d986028cff52ba52a58887225e272bf04ad88de3
2018-04-25 11:29:07 -04:00
Nika Layzell 4464c02334 Bug 1434768 - Part 3: Rewrite JS consumers of .sessionHistory, r=bz 2018-04-10 17:49:45 -04:00
Christoph Kerschbaumer 4197b7d96d Bug 1439713 - Update tests relying on nsIContentPolicy. r=bz 2018-03-29 11:14:58 +02:00
Florian Quèze 2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Mike Conley 5ece45274a Bug 1397426 - Stop disabling tab warming in browser_bug343515.js. r=billm
Tab warming was originally disabled in this test because it was accidentally
setting the DocShell to be active at an unexpected time.

Because tab warming no longer activates DocShells, we can revert this change,
though we also have to make it deal with the fact that switching tabs no longer
makes docShells become activate immediately.

MozReview-Commit-ID: K0fiA5AVfEm

--HG--
extra : rebase_source : 874f112e4368a037b4baf02f205198c0f598b5b8
extra : source : e7a6fe9f9ce7186e8dc3c7aaeab47362c7060f5a
2017-10-23 17:01:48 -04:00
Kartikaya Gupta 4f18e92ffb Bug 1334189 - Enable mochitest-plain for linux64-qr. r=jrmuizel
MozReview-Commit-ID: nbcWhDq5de

--HG--
extra : rebase_source : 25e2c2b8b996ae11cd25dee07d9092ba574a9e40
2017-12-13 18:38:39 -05:00
Bill McCloskey 9f4d083047 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-07 12:55:24 -08:00
Andreea Pavel 89531e8dc3 Backed out 9 changesets (bug 1412456) for crashing talos g2 and unexpected network connections in browser-chrome's browser_searchEngine_behaviors.js r=backout a=backout on a CLOSED TREE
Backed out changeset 0c01a98f4fd5 (bug 1412456)
Backed out changeset 27077db47231 (bug 1412456)
Backed out changeset f35ec2a884f8 (bug 1412456)
Backed out changeset 602b30ac3c69 (bug 1412456)
Backed out changeset b1ff1050c589 (bug 1412456)
Backed out changeset f100d953f9eb (bug 1412456)
Backed out changeset d85af60fe259 (bug 1412456)
Backed out changeset 736f38486832 (bug 1412456)
Backed out changeset 13a637602dc2 (bug 1412456)
2017-12-07 12:20:21 +02:00
Bill McCloskey bef7c122df Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 21:17:05 -08:00
Dorel Luca eb65c24c7b Backed out 8 changesets (bug 1412456) for ESlint failure on browser_urlbarKeepStateAcrossTabSwitches.js:13:49 r=backout on a CLOSED TREE
Backed out changeset 0e88de036c55 (bug 1412456)
Backed out changeset 49b93f807db0 (bug 1412456)
Backed out changeset 039e980b7dc6 (bug 1412456)
Backed out changeset c7698410ddbd (bug 1412456)
Backed out changeset e56a1ba26b7c (bug 1412456)
Backed out changeset 0c4506e124ac (bug 1412456)
Backed out changeset a7aec2ce903b (bug 1412456)
Backed out changeset 3e9fb71f1e8e (bug 1412456)
2017-12-07 07:09:33 +02:00
Bill McCloskey be77cf4a01 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 20:46:58 -08:00
Mike Conley 69e38dfce8 Backed out changeset e7a6fe9f9ce7 (bug 1397426)
--HG--
extra : rebase_source : 2c1b37bd607eee584bafa9f2be8daab3084fc3d0
2017-12-06 15:58:02 -05:00
Mike Conley 94c19b3bf1 Bug 1397426 - Stop disabling tab warming in browser_bug343515.js. r=billm
Tab warming was originally disabled in this test because it was accidentally
setting the DocShell to be active at an unexpected time.

Because tab warming no longer activates DocShells, we can revert this change,
though we also have to make it deal with the fact that switching tabs no longer
makes docShells become activate immediately.

MozReview-Commit-ID: K0fiA5AVfEm

--HG--
extra : rebase_source : 5de92eb125e1001dd358a5deaa76f626802e3928
2017-10-23 17:01:48 -04:00
Bevis Tseng a22e59eff8 Bug 1414136 - Fix test failures in session history relying on non-comformant Promise handling. r=sawang 2017-11-10 10:33:25 +08:00