Simon Giesecke
80de7dcd75
Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/script. r=smaug
...
Depends on D66027
Differential Revision: https://phabricator.services.mozilla.com/D66028
--HG--
extra : moz-landing-system : lando
2020-03-09 15:04:35 +00:00
Boris Zbarsky
2f1001ccab
Bug 1496159 test.
...
Differential Revision: https://phabricator.services.mozilla.com/D65845
--HG--
extra : moz-landing-system : lando
2020-03-07 04:16:15 +00:00
Christoph Kerschbaumer
de17388af5
Bug 1374612 - CSP: Hide nonce values from the DOM. r=smaug,annevk
...
Differential Revision: https://phabricator.services.mozilla.com/D62811
--HG--
extra : moz-landing-system : lando
2020-02-29 12:35:46 +00:00
shindli
f5511fecc8
Backed out changeset ec4c2b2a561b (bug 1374612) for causing wpt permafails in /html/dom/reflection-metadata.html CLOSED TREE
2020-02-27 22:46:44 +02:00
Christoph Kerschbaumer
00976af48c
Bug 1374612 - CSP: Hide nonce values from the DOM. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D62811
--HG--
extra : moz-landing-system : lando
2020-02-27 18:08:54 +00:00
Dorel Luca
2e1e470d9e
Backed out changeset 59fe98b41d80 (bug 1374612) for WPT failures in /html/dom/idlharness.https.html. CLOSED TREE
...
--HG--
extra : amend_source : a537237327643c365f02c0bfbed643b0d54cf1d5
2020-02-27 14:08:48 +02:00
Christoph Kerschbaumer
ec996a7e9d
Bug 1374612 - CSP: Hide nonce values from the DOM. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D62811
--HG--
extra : moz-landing-system : lando
2020-02-27 09:32:04 +00:00
Simon Giesecke
aaf6cb4e75
Bug 1617628 - Hide nsBaseHashtable Put overloads in nsRefPtrHashtable subclass. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D63899
--HG--
extra : moz-landing-system : lando
2020-02-25 17:03:36 +00:00
Simon Giesecke
b50347f917
Bug 1611415 - Prefer using std::move over forget. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D60980
--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
shindli
91aa0518dd
Backed out changeset 0c982bc69cb3 (bug 1611415) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsCOMPtr CLOSED TREE
2020-02-12 20:13:29 +02:00
Simon Giesecke
f604a47fa5
Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D60980
--HG--
extra : moz-landing-system : lando
2020-02-12 17:24:41 +00:00
Nicolas B. Pierron
f862fc3ecb
Bug 1607769 - Remove script loader telemetry added by Bug 1579876 and Bug 1573904. r=jorendorff
...
Differential Revision: https://phabricator.services.mozilla.com/D60288
--HG--
extra : moz-landing-system : lando
2020-02-03 18:55:44 +00:00
Nazım Can Altınova
551cb5c008
Bug 1609660 - Rename "Script" marker to "ScriptEvaluation". r=gerald
...
Depends on D60231
Differential Revision: https://phabricator.services.mozilla.com/D60232
--HG--
extra : moz-landing-system : lando
2020-01-17 21:26:57 +00:00
Jon Coppeard
d7492d145d
Bug 1291535 - Clear the list of dynamic import requests after cancelling them in ScriptLoader::ParsingComplete as we do for other requests r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D59698
--HG--
extra : moz-landing-system : lando
2020-01-14 11:47:21 +00:00
Jonathan Kingston
27ca040dfd
Bug 1606774 - Change GetAttribute to GetAttr where possible r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D58585
--HG--
extra : moz-landing-system : lando
2020-01-03 23:40:53 +00:00
Ashutosh Tiwari
b1fed54115
Bug 1603690 - Remove a redundant return statement and removed empty lines. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D57086
--HG--
extra : moz-landing-system : lando
2019-12-13 17:49:07 +00:00
Jeff Walden
62a130ba0a
Bug 1602882 - Move array operations to a new js/Array.h header. r=sfink,bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D56595
--HG--
extra : moz-landing-system : lando
2019-12-11 06:17:44 +00:00
Gabriele Svelto
ace6d1063f
Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan
...
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.
find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
if [ -n "$interfaces" ]; then
if [[ "$interfaces" == *$'\n'* ]]; then
regexp="\("
for i in $interfaces; do regexp="$regexp$i\|"; done
regexp="${regexp%%\\\|}\)"
else
regexp="$interfaces"
fi
interface=$(basename "$path")
rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
if [ $hits -eq 0 ]; then
echo "Removing ${interface} from ${path2}"
grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
mv -f "$path2".tmp "$path2"
fi
done
fi
done
Differential Revision: https://phabricator.services.mozilla.com/D55442
--HG--
extra : moz-landing-system : lando
2019-12-06 09:24:56 +00:00
Boris Zbarsky
75124bdd98
Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D53067
--HG--
extra : moz-landing-system : lando
2019-12-05 04:44:32 +00:00
Dorel Luca
a381d5c96d
Backed out changeset f6e53d1c6518 (bug 1600545) for Android build bustage. CLOSED TREE
2019-12-04 17:32:27 +02:00
Gabriele Svelto
bc9290f767
Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan
...
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.
find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
if [ -n "$interfaces" ]; then
if [[ "$interfaces" == *$'\n'* ]]; then
regexp="\("
for i in $interfaces; do regexp="$regexp$i\|"; done
regexp="${regexp%%\\\|}\)"
else
regexp="$interfaces"
fi
interface=$(basename "$path")
rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
if [ $hits -eq 0 ]; then
echo "Removing ${interface} from ${path2}"
grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
mv -f "$path2".tmp "$path2"
fi
done
fi
done
Differential Revision: https://phabricator.services.mozilla.com/D55442
--HG--
extra : moz-landing-system : lando
2019-12-04 15:01:19 +00:00
Honza Bambas
ce072f8e6a
Bug 1594449 - <link rel="preload"> implemented as a speculative load initiated during the prescan phase in the HTML5 parser, disabled by default, only supports "script" and "styles" types, r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D52019
--HG--
extra : moz-landing-system : lando
2019-11-27 21:45:12 +00:00
Tooru Fujisawa
c66f627242
Bug 1597153 - Part 1: Add JS::BinASTFormat enum and use it in API. r=Yoric
...
Differential Revision: https://phabricator.services.mozilla.com/D53365
--HG--
extra : moz-landing-system : lando
2019-11-22 14:18:41 +00:00
Jean-Yves Avenard
e6d0e7dfda
Bug 1588899 - P1. Move classification flags related method to nsIClassifiedChannel. r=Ehsan,baku
...
This is where it should have been in the first place. Those attributes belong there.
Differential Revision: https://phabricator.services.mozilla.com/D49577
--HG--
extra : moz-landing-system : lando
2019-10-19 04:30:24 +00:00
Boris Zbarsky
43391c50c0
Bug 1589309. Pass XPCOM strings, not buffer pointers, to notifyJSRunToCompletionStart. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D49650
--HG--
extra : moz-landing-system : lando
2019-10-18 02:50:45 +00:00
Sebastian Streich
854f9b5f12
Bug 1585331 - Add nsIPrincipal::GetAboutModuleFlags r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D47775
--HG--
extra : moz-landing-system : lando
2019-10-17 13:54:41 +00:00
Jan de Mooij
4bb7d0451c
Bug 1586991 part 22 - Use nsAutoJSString instead of AutoStableStringChars in DocshellEntryMonitor::Entry to ensure null-termination. r=bzbarsky
...
Note that nsDocShell::NotifyJSRunToCompletionStart ends up passing this string to
JavascriptTimelineMarker where the constructor assigns it to |nsString mFunctionName|
so there should be no difference between passing nullptr or empty string.
Differential Revision: https://phabricator.services.mozilla.com/D49391
--HG--
extra : moz-landing-system : lando
2019-10-17 13:04:07 +00:00
Bobby Holley
1aac000114
Bug 1244247 - Remove racey sScriptSettingsTLSInitialized. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D49213
--HG--
extra : moz-landing-system : lando
2019-10-15 02:10:02 +00:00
Sylvestre Ledru
f12b9fa5c3
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D47737
--HG--
extra : moz-landing-system : lando
2019-10-06 18:29:55 +00:00
Steve Fink
91b1ffaac3
Bug 1560667 - Collection of fixes for things uncovered by improvements to the hazard analysis. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D46534
--HG--
extra : moz-landing-system : lando
2019-10-02 03:20:33 +00:00
Sebastian Streich
88670a47e9
Bug 1580782 - Change Callsites to use nsIPrincipal->SchemeIs r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D45654
--HG--
extra : moz-landing-system : lando
2019-09-26 10:47:16 +00:00
Nicolas B. Pierron
58585aac29
Bug 1579876 - Add telemetry to estimate the benefit of a streaming parser for JS. data-review=mlopatka r=jorendorff
...
Differential Revision: https://phabricator.services.mozilla.com/D45551
--HG--
extra : moz-landing-system : lando
2019-09-19 12:42:51 +00:00
Boris Zbarsky
4c12cf5540
Bug 1568171. Fix handling of load events if document.open() is called while async scripts are still loading for the original pageload. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D44248
--HG--
extra : moz-landing-system : lando
2019-09-10 20:43:56 +00:00
Boris Zbarsky
8330bb9a1b
Bug 1328307. AutoNoJSAPI should make it clearer that script is not running. r=bholley
...
Differential Revision: https://phabricator.services.mozilla.com/D41792
--HG--
extra : moz-landing-system : lando
2019-08-23 20:47:02 +00:00
Nicolas B. Pierron
2b2064b0e4
Bug 1573904 - Measure the potential for a streaming parser. data-review=chutten r=jorendorff,chutten
...
Differential Revision: https://phabricator.services.mozilla.com/D42039
--HG--
extra : moz-landing-system : lando
2019-08-26 15:26:16 +00:00
Thomas Nguyen
32ab8293ff
Bug 1528697 - Expose ReferrerPolicy.webidl and use referrerpolicy enum r=smaug
...
ReferrerPolicy gets tossed back and forth as a uint32_t and
ReferrerPolicy enum in header file. Expose ReferrerPolicyValues from
webidl file and use consistently in native code.
Differential Revision: https://phabricator.services.mozilla.com/D41954
--HG--
extra : moz-landing-system : lando
2019-08-21 13:24:45 +00:00
Brian Hackett
011f87c6f7
Bug 1570091 Part 2 - Don't use bytecode cache when loading scripts in globals with instrumentation, r=smaug,nbp.
...
Depends on D39932
Differential Revision: https://phabricator.services.mozilla.com/D39933
--HG--
extra : moz-landing-system : lando
2019-08-04 00:03:56 +00:00
Tom Schuster
88855a7ee5
Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D40108
--HG--
extra : source : 3da6e9e86be4a4a9eeaceec222398475b6679193
2019-08-02 08:54:18 +00:00
Mihai Alexandru Michis
0cc257addd
Backed out 2 changesets (bug 1558915) for causing bustages. CLOSED TREE
...
Backed out changeset e44c9fd81e5b (bug 1558915)
Backed out changeset 3da6e9e86be4 (bug 1558915)
2019-08-02 12:17:42 +03:00
Tom Schuster
f115dd9113
Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D40108
--HG--
extra : moz-landing-system : lando
2019-08-02 08:54:18 +00:00
Kannan Vijayan
3fb6190ec6
Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D39378
--HG--
extra : moz-landing-system : lando
2019-07-26 16:48:31 +00:00
Nicholas Nethercote
18fae65f38
Bug 1563139 - Remove StaticPrefs.h. r=glandium
...
This requires replacing inclusions of it with inclusions of more specific prefs
files.
The exception is that StaticPrefsAll.h, which is equivalent to StaticPrefs.h,
and is used in `Codegen.py` because doing something smarter is tricky and
suitable for a follow-up. As a result, any change to StaticPrefList.yaml will
still trigger recompilation of all the generated DOM bindings files, but that's
still a big improvement over trigger recompilation of every file that uses
static prefs.
Most of the changes in this commit are very boring. The only changes that are
not boring are modules/libpref/*, Codegen.py, and ServoBindings.toml.
Differential Revision: https://phabricator.services.mozilla.com/D39138
--HG--
extra : moz-landing-system : lando
2019-07-26 01:10:23 +00:00
Karl Tomlinson
53e03975c9
Bug 1542931 add CycleCollectedJSContext::ReportError() r=baku
...
to make AutoJSAPI error reporting safe for worklets.
Parameter order matches xpc::ErrorReport::Init().
Depends on D34477
Differential Revision: https://phabricator.services.mozilla.com/D34478
--HG--
extra : moz-landing-system : lando
2019-06-12 19:11:04 +00:00
Jonathan Kingston
31441f82ea
Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D35504
--HG--
extra : moz-landing-system : lando
2019-07-08 16:37:45 +00:00
Jeff Walden
0e736b9ffc
Bug 1559633 - Introduce a ScriptDecoding.h header containing templated decoding code for decoding script data as UTF-8 or UTF-16. r=bzbarsky
...
Depends on D36133
Differential Revision: https://phabricator.services.mozilla.com/D36134
--HG--
extra : moz-landing-system : lando
2019-06-26 23:25:19 +00:00
Jeff Walden
7761c7efbf
Bug 1554362 - Accumulate external source text as either UTF-8 or UTF-16, in pref-controlled fashion, and then compile the accumulated text using corresponding JSAPI entrypoints without inflating UTF-8 to UTF-16. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D34825
--HG--
extra : moz-landing-system : lando
2019-06-15 20:48:40 +00:00
Jeff Walden
5ae32bc84e
Bug 1554362 - Adjust some obsolete or debatably-misplaced comments in ScriptLoadRequest.h. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D34824
--HG--
extra : moz-landing-system : lando
2019-06-15 20:48:28 +00:00
Jeff Walden
f9ad080e62
Bug 1554362 - Replace the two ScriptLoadHandler::EnsureDecoder overloads with one inline function that fast-paths the already-have-one test and an out-of-line function that tries to provide one presuming none exists. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D34823
--HG--
extra : moz-landing-system : lando
2019-06-15 20:48:12 +00:00
Jonathan Kingston
aa0686544f
Bug 1554294 - Adding in chrome as a supported scriptLoader IsInternalURIScheme and adding relative file paths to aboutlogins r=baku,jaws
...
Differential Revision: https://phabricator.services.mozilla.com/D34705
--HG--
extra : moz-landing-system : lando
2019-06-14 14:28:05 +00:00
Gurzau Raul
1418970a97
Backed out changeset 3ae87fbf60a5 (bug 1554294) for failing at browser_deleteLogin.js on a CLOSED TREE.
2019-06-14 14:49:03 +03:00