Changeset 203309 in webkit
- Timestamp:
- Jul 15, 2016, 5:04:42 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 21 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/IndexedDB-private-browsing/idbindex_get7-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/IndexedDB-private-browsing/idbindex_getKey7-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/IndexedDB-private-browsing/idbindex_openCursor2-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/IndexedDB-private-browsing/idbindex_openKeyCursor3-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_get7-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_getKey7-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_openCursor2-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_openKeyCursor3-expected.txt (modified) (1 diff)
-
LayoutTests/storage/indexeddb/modern/createobjectstore-failures-expected.txt (modified) (2 diffs)
-
LayoutTests/storage/indexeddb/modern/createobjectstore-failures-private-expected.txt (modified) (2 diffs)
-
LayoutTests/storage/indexeddb/modern/double-abort-expected.txt (modified) (1 diff)
-
LayoutTests/storage/indexeddb/modern/double-abort-private-expected.txt (modified) (1 diff)
-
LayoutTests/storage/indexeddb/modern/idbdatabase-deleteobjectstore-failures-expected.txt (modified) (1 diff)
-
LayoutTests/storage/indexeddb/modern/idbdatabase-deleteobjectstore-failures-private-expected.txt (modified) (1 diff)
-
LayoutTests/storage/indexeddb/modern/idbdatabase-transaction-failures-expected.txt (modified) (1 diff)
-
LayoutTests/storage/indexeddb/modern/idbdatabase-transaction-failures-private-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/dom/ExceptionBase.cpp (modified) (2 diffs)
-
Source/WebCore/dom/ExceptionBase.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r203308 r203309 1 2016-07-15 Brady Eidson <beidson@apple.com> 2 3 Change toString() behavior for exceptions constructed with "createWithDescriptionAsMessage". 4 https://bugs.webkit.org/show_bug.cgi?id=159839 5 6 Reviewed by Alex Christensen. 7 8 * storage/indexeddb/modern/createobjectstore-failures-expected.txt: 9 * storage/indexeddb/modern/createobjectstore-failures-private-expected.txt: 10 * storage/indexeddb/modern/double-abort-expected.txt: 11 * storage/indexeddb/modern/double-abort-private-expected.txt: 12 * storage/indexeddb/modern/idbdatabase-deleteobjectstore-failures-expected.txt: 13 * storage/indexeddb/modern/idbdatabase-deleteobjectstore-failures-private-expected.txt: 14 * storage/indexeddb/modern/idbdatabase-transaction-failures-expected.txt: 15 * storage/indexeddb/modern/idbdatabase-transaction-failures-private-expected.txt: 16 1 17 2016-07-15 Brent Fulgham <bfulgham@apple.com> 2 18 -
trunk/LayoutTests/imported/w3c/ChangeLog
r203235 r203309 1 2016-07-15 Brady Eidson <beidson@apple.com> 2 3 Change toString() behavior for exceptions constructed with "createWithDescriptionAsMessage". 4 https://bugs.webkit.org/show_bug.cgi?id=159839 5 6 Reviewed by Alex Christensen. 7 8 * IndexedDB-private-browsing/idbindex_get7-expected.txt: 9 * IndexedDB-private-browsing/idbindex_getKey7-expected.txt: 10 * IndexedDB-private-browsing/idbindex_openCursor2-expected.txt: 11 * IndexedDB-private-browsing/idbindex_openKeyCursor3-expected.txt: 12 * web-platform-tests/IndexedDB/idbindex_get7-expected.txt: 13 * web-platform-tests/IndexedDB/idbindex_getKey7-expected.txt: 14 * web-platform-tests/IndexedDB/idbindex_openCursor2-expected.txt: 15 * web-platform-tests/IndexedDB/idbindex_openKeyCursor3-expected.txt: 16 1 17 2016-07-14 Youenn Fablet <youenn@apple.com> 2 18 -
trunk/LayoutTests/imported/w3c/IndexedDB-private-browsing/idbindex_get7-expected.txt
r198394 r203309 2 2 FAIL IDBIndex.get() - throw TransactionInactiveError on aborted transaction assert_throws: function "function (){ 3 3 index.get("data"); 4 }" threw object " Error: Failed to execute 'get' on 'IDBIndex': The transac..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 114 }" threw object "TransactionInactiveError (DOM IDBDatabase Exception): Fai..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 11 5 5 -
trunk/LayoutTests/imported/w3c/IndexedDB-private-browsing/idbindex_getKey7-expected.txt
r198394 r203309 2 2 FAIL IDBIndex.getKey() - throw TransactionInactiveError on aborted transaction assert_throws: function "function (){ 3 3 index.getKey("data"); 4 }" threw object " Error: Failed to execute 'getKey' on 'IDBIndex': The tran..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 114 }" threw object "TransactionInactiveError (DOM IDBDatabase Exception): Fai..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 11 5 5 -
trunk/LayoutTests/imported/w3c/IndexedDB-private-browsing/idbindex_openCursor2-expected.txt
r198394 r203309 2 2 FAIL IDBIndex.openCursor() - throw TransactionInactiveError on aborted transaction assert_throws: function "function (){ 3 3 index.openCursor(); 4 }" threw object " Error: Failed to execute 'openCursor' on 'IDBIndex': The..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 114 }" threw object "TransactionInactiveError (DOM IDBDatabase Exception): Fai..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 11 5 5 -
trunk/LayoutTests/imported/w3c/IndexedDB-private-browsing/idbindex_openKeyCursor3-expected.txt
r198394 r203309 2 2 FAIL IDBIndex.openKeyCursor() - throw TransactionInactiveError on aborted transaction assert_throws: function "function (){ 3 3 index.openKeyCursor(); 4 }" threw object " Error: Failed to execute 'openKeyCursor' on 'IDBIndex': T..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 114 }" threw object "TransactionInactiveError (DOM IDBDatabase Exception): Fai..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 11 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_get7-expected.txt
r200309 r203309 2 2 FAIL IDBIndex.get() - throw TransactionInactiveError on aborted transaction assert_throws: function "function (){ 3 3 index.get("data"); 4 }" threw object " Error: Failed to execute 'get' on 'IDBIndex': The transac..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 114 }" threw object "TransactionInactiveError (DOM IDBDatabase Exception): Fai..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 11 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_getKey7-expected.txt
r200309 r203309 2 2 FAIL IDBIndex.getKey() - throw TransactionInactiveError on aborted transaction assert_throws: function "function (){ 3 3 index.getKey("data"); 4 }" threw object " Error: Failed to execute 'getKey' on 'IDBIndex': The tran..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 114 }" threw object "TransactionInactiveError (DOM IDBDatabase Exception): Fai..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 11 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_openCursor2-expected.txt
r200309 r203309 2 2 FAIL IDBIndex.openCursor() - throw TransactionInactiveError on aborted transaction assert_throws: function "function (){ 3 3 index.openCursor(); 4 }" threw object " Error: Failed to execute 'openCursor' on 'IDBIndex': The..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 114 }" threw object "TransactionInactiveError (DOM IDBDatabase Exception): Fai..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 11 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_openKeyCursor3-expected.txt
r200309 r203309 2 2 FAIL IDBIndex.openKeyCursor() - throw TransactionInactiveError on aborted transaction assert_throws: function "function (){ 3 3 index.openKeyCursor(); 4 }" threw object " Error: Failed to execute 'openKeyCursor' on 'IDBIndex': T..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 114 }" threw object "TransactionInactiveError (DOM IDBDatabase Exception): Fai..." that is not a DOMException InvalidStateError: property "code" is equal to 0, expected 11 5 5 -
trunk/LayoutTests/storage/indexeddb/modern/createobjectstore-failures-expected.txt
r195380 r203309 9 9 indexedDB.open(dbname) 10 10 Initial upgrade needed: Old version - 0 New version - 1 11 Failed to create object store with both autoincrement and an empty keypath: Error: Failed to execute 'createObjectStore' on 'IDBDatabase': The autoIncrement option was set but the keyPath option was empty or an array.11 Failed to create object store with both autoincrement and an empty keypath: InvalidAccessError (DOM IDBDatabase Exception 15): Failed to execute 'createObjectStore' on 'IDBDatabase': The autoIncrement option was set but the keyPath option was empty or an array. 12 12 Object store names: 13 Failed to create object store with both autoincrement and a sequence keypath: Error: Failed to execute 'createObjectStore' on 'IDBDatabase': The autoIncrement option was set but the keyPath option was empty or an array.13 Failed to create object store with both autoincrement and a sequence keypath: InvalidAccessError (DOM IDBDatabase Exception 15): Failed to execute 'createObjectStore' on 'IDBDatabase': The autoIncrement option was set but the keyPath option was empty or an array. 14 14 Object store names: 15 Failed to create object store with invalid keyPath: Error: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.15 Failed to create object store with invalid keyPath: SyntaxError (DOM IDBDatabase Exception 12): Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path. 16 16 Object store names: 17 17 Actually created an object store 18 18 Object store names: 19 19 TestObjectStore1 20 Failed to create TestObjectStore a second time: Error: Failed to execute 'createObjectStore' on 'IDBDatabase': An object store with the specified name already exists.20 Failed to create TestObjectStore a second time: ConstraintError (DOM IDBDatabase Exception): Failed to execute 'createObjectStore' on 'IDBDatabase': An object store with the specified name already exists. 21 21 Object store names: 22 22 TestObjectStore1 … … 24 24 Object store names: 25 25 TestObjectStore1 26 Failed to create object store while there is no version change transaction: Error: Failed to execute 'createObjectStore' on 'IDBDatabase': The database is not running a version change transaction.26 Failed to create object store while there is no version change transaction: InvalidStateError (DOM IDBDatabase Exception 11): Failed to execute 'createObjectStore' on 'IDBDatabase': The database is not running a version change transaction. 27 27 Object store names: 28 28 TestObjectStore1 29 Failed to create object store outside of onupgradeneeded: Error: Failed to execute 'createObjectStore' on 'IDBDatabase': The database is not running a version change transaction.29 Failed to create object store outside of onupgradeneeded: InvalidStateError (DOM IDBDatabase Exception 11): Failed to execute 'createObjectStore' on 'IDBDatabase': The database is not running a version change transaction. 30 30 Object store names: 31 31 TestObjectStore1 -
trunk/LayoutTests/storage/indexeddb/modern/createobjectstore-failures-private-expected.txt
r195394 r203309 9 9 indexedDB.open(dbname) 10 10 Initial upgrade needed: Old version - 0 New version - 1 11 Failed to create object store with both autoincrement and an empty keypath: Error: Failed to execute 'createObjectStore' on 'IDBDatabase': The autoIncrement option was set but the keyPath option was empty or an array.11 Failed to create object store with both autoincrement and an empty keypath: InvalidAccessError (DOM IDBDatabase Exception 15): Failed to execute 'createObjectStore' on 'IDBDatabase': The autoIncrement option was set but the keyPath option was empty or an array. 12 12 Object store names: 13 Failed to create object store with both autoincrement and a sequence keypath: Error: Failed to execute 'createObjectStore' on 'IDBDatabase': The autoIncrement option was set but the keyPath option was empty or an array.13 Failed to create object store with both autoincrement and a sequence keypath: InvalidAccessError (DOM IDBDatabase Exception 15): Failed to execute 'createObjectStore' on 'IDBDatabase': The autoIncrement option was set but the keyPath option was empty or an array. 14 14 Object store names: 15 Failed to create object store with invalid keyPath: Error: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.15 Failed to create object store with invalid keyPath: SyntaxError (DOM IDBDatabase Exception 12): Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path. 16 16 Object store names: 17 17 Actually created an object store 18 18 Object store names: 19 19 TestObjectStore1 20 Failed to create TestObjectStore a second time: Error: Failed to execute 'createObjectStore' on 'IDBDatabase': An object store with the specified name already exists.20 Failed to create TestObjectStore a second time: ConstraintError (DOM IDBDatabase Exception): Failed to execute 'createObjectStore' on 'IDBDatabase': An object store with the specified name already exists. 21 21 Object store names: 22 22 TestObjectStore1 … … 24 24 Object store names: 25 25 TestObjectStore1 26 Failed to create object store while there is no version change transaction: Error: Failed to execute 'createObjectStore' on 'IDBDatabase': The database is not running a version change transaction.26 Failed to create object store while there is no version change transaction: InvalidStateError (DOM IDBDatabase Exception 11): Failed to execute 'createObjectStore' on 'IDBDatabase': The database is not running a version change transaction. 27 27 Object store names: 28 28 TestObjectStore1 29 Failed to create object store outside of onupgradeneeded: Error: Failed to execute 'createObjectStore' on 'IDBDatabase': The database is not running a version change transaction.29 Failed to create object store outside of onupgradeneeded: InvalidStateError (DOM IDBDatabase Exception 11): Failed to execute 'createObjectStore' on 'IDBDatabase': The database is not running a version change transaction. 30 30 Object store names: 31 31 TestObjectStore1 -
trunk/LayoutTests/storage/indexeddb/modern/double-abort-expected.txt
r195380 r203309 9 9 indexedDB.open(dbname) 10 10 Initial upgrade needed: Old version - 0 New version - 1 11 Second abort failed: Error: Failed to execute 'abort' on 'IDBTransaction': The transaction is inactive or finished.11 Second abort failed: InvalidStateError (DOM IDBDatabase Exception 11): Failed to execute 'abort' on 'IDBTransaction': The transaction is inactive or finished. 12 12 Initial upgrade versionchange transaction aborted 13 13 PASS successfullyParsed is true -
trunk/LayoutTests/storage/indexeddb/modern/double-abort-private-expected.txt
r195394 r203309 9 9 indexedDB.open(dbname) 10 10 Initial upgrade needed: Old version - 0 New version - 1 11 Second abort failed: Error: Failed to execute 'abort' on 'IDBTransaction': The transaction is inactive or finished.11 Second abort failed: InvalidStateError (DOM IDBDatabase Exception 11): Failed to execute 'abort' on 'IDBTransaction': The transaction is inactive or finished. 12 12 Initial upgrade versionchange transaction aborted 13 13 PASS successfullyParsed is true -
trunk/LayoutTests/storage/indexeddb/modern/idbdatabase-deleteobjectstore-failures-expected.txt
r195380 r203309 11 11 Initial upgrade versionchange transaction complete 12 12 readwrite put success - about to try to delete an objectstore 13 Failed to deleteObjectStore without a versionchange transaction - Error: Failed to execute 'deleteObjectStore' on 'IDBDatabase': The database is not running a version change transaction.13 Failed to deleteObjectStore without a versionchange transaction - InvalidStateError (DOM IDBDatabase Exception 11): Failed to execute 'deleteObjectStore' on 'IDBDatabase': The database is not running a version change transaction. 14 14 readwrite transaction complete 15 15 Second upgrade needed: Old version - 1 New version - 2 16 Failed to deleteObjectStore with a non-existent objectstore - Error: Failed to execute 'deleteObjectStore' on 'IDBDatabase': The specified object store was not found.17 Failed to deleteObjectStore with an in-progress versionchange transaction that is inactive - Error: A request was placed against a transaction which is either currently not active, or which is finished.16 Failed to deleteObjectStore with a non-existent objectstore - NotFoundError (DOM IDBDatabase Exception 8): Failed to execute 'deleteObjectStore' on 'IDBDatabase': The specified object store was not found. 17 Failed to deleteObjectStore with an in-progress versionchange transaction that is inactive - TransactionInactiveError (DOM IDBDatabase Exception): A request was placed against a transaction which is either currently not active, or which is finished. 18 18 Second version change transaction complete 19 19 PASS successfullyParsed is true -
trunk/LayoutTests/storage/indexeddb/modern/idbdatabase-deleteobjectstore-failures-private-expected.txt
r195394 r203309 11 11 Initial upgrade versionchange transaction complete 12 12 readwrite put success - about to try to delete an objectstore 13 Failed to deleteObjectStore without a versionchange transaction - Error: Failed to execute 'deleteObjectStore' on 'IDBDatabase': The database is not running a version change transaction.13 Failed to deleteObjectStore without a versionchange transaction - InvalidStateError (DOM IDBDatabase Exception 11): Failed to execute 'deleteObjectStore' on 'IDBDatabase': The database is not running a version change transaction. 14 14 readwrite transaction complete 15 15 Second upgrade needed: Old version - 1 New version - 2 16 Failed to deleteObjectStore with a non-existent objectstore - Error: Failed to execute 'deleteObjectStore' on 'IDBDatabase': The specified object store was not found.17 Failed to deleteObjectStore with an in-progress versionchange transaction that is inactive - Error: A request was placed against a transaction which is either currently not active, or which is finished.16 Failed to deleteObjectStore with a non-existent objectstore - NotFoundError (DOM IDBDatabase Exception 8): Failed to execute 'deleteObjectStore' on 'IDBDatabase': The specified object store was not found. 17 Failed to deleteObjectStore with an in-progress versionchange transaction that is inactive - TransactionInactiveError (DOM IDBDatabase Exception): A request was placed against a transaction which is either currently not active, or which is finished. 18 18 Second version change transaction complete 19 19 PASS successfullyParsed is true -
trunk/LayoutTests/storage/indexeddb/modern/idbdatabase-transaction-failures-expected.txt
r195380 r203309 9 9 indexedDB.open(dbname) 10 10 Upgrade needed: Old version - 0 New version - 1 11 Failed to start a transaction while a versionChange transaction was in progress - Error: Failed to execute 'transaction' on 'IDBDatabase': A version change transaction is running.11 Failed to start a transaction while a versionChange transaction was in progress - InvalidStateError (DOM IDBDatabase Exception 11): Failed to execute 'transaction' on 'IDBDatabase': A version change transaction is running. 12 12 versionchange transaction completed 13 Failed to start a transaction with an empty set of object stores - Error: Failed to execute 'transaction' on 'IDBDatabase': The storeNames parameter was empty.14 Failed to start a transaction to a nonexistent object store - Error: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found.13 Failed to start a transaction with an empty set of object stores - InvalidAccessError (DOM IDBDatabase Exception 15): Failed to execute 'transaction' on 'IDBDatabase': The storeNames parameter was empty. 14 Failed to start a transaction to a nonexistent object store - NotFoundError (DOM IDBDatabase Exception 8): Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found. 15 15 Failed to start a transaction with an invalid mode - TypeError: Failed to execute 'transaction' on 'IDBDatabase': The mode provided ('blahblah') is not one of 'readonly' or 'readwrite'. 16 16 Failed to explicitly start a versionchange transaction - TypeError: Failed to execute 'transaction' on 'IDBDatabase': The mode provided ('versionchange') is not one of 'readonly' or 'readwrite'. 17 Failed to explicitly start a transaction with the close pending flag set - Error: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.17 Failed to explicitly start a transaction with the close pending flag set - InvalidStateError (DOM IDBDatabase Exception 11): Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing. 18 18 PASS successfullyParsed is true 19 19 -
trunk/LayoutTests/storage/indexeddb/modern/idbdatabase-transaction-failures-private-expected.txt
r195394 r203309 9 9 indexedDB.open(dbname) 10 10 Upgrade needed: Old version - 0 New version - 1 11 Failed to start a transaction while a versionChange transaction was in progress - Error: Failed to execute 'transaction' on 'IDBDatabase': A version change transaction is running.11 Failed to start a transaction while a versionChange transaction was in progress - InvalidStateError (DOM IDBDatabase Exception 11): Failed to execute 'transaction' on 'IDBDatabase': A version change transaction is running. 12 12 versionchange transaction completed 13 Failed to start a transaction with an empty set of object stores - Error: Failed to execute 'transaction' on 'IDBDatabase': The storeNames parameter was empty.14 Failed to start a transaction to a nonexistent object store - Error: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found.13 Failed to start a transaction with an empty set of object stores - InvalidAccessError (DOM IDBDatabase Exception 15): Failed to execute 'transaction' on 'IDBDatabase': The storeNames parameter was empty. 14 Failed to start a transaction to a nonexistent object store - NotFoundError (DOM IDBDatabase Exception 8): Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found. 15 15 Failed to start a transaction with an invalid mode - TypeError: Failed to execute 'transaction' on 'IDBDatabase': The mode provided ('blahblah') is not one of 'readonly' or 'readwrite'. 16 16 Failed to explicitly start a versionchange transaction - TypeError: Failed to execute 'transaction' on 'IDBDatabase': The mode provided ('versionchange') is not one of 'readonly' or 'readwrite'. 17 Failed to explicitly start a transaction with the close pending flag set - Error: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.17 Failed to explicitly start a transaction with the close pending flag set - InvalidStateError (DOM IDBDatabase Exception 11): Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing. 18 18 PASS successfullyParsed is true 19 19 -
trunk/Source/WebCore/ChangeLog
r203303 r203309 1 2016-07-15 Brady Eidson <beidson@apple.com> 2 3 Change toString() behavior for exceptions constructed with "createWithDescriptionAsMessage". 4 https://bugs.webkit.org/show_bug.cgi?id=159839 5 6 Reviewed by Alex Christensen. 7 8 No new tests (Covered by changes to existing tests). 9 10 This is the first step towards extended exception messages for all exception types. 11 12 * dom/ExceptionBase.cpp: 13 (WebCore::ExceptionBase::ExceptionBase): 14 (WebCore::ExceptionBase::toString): 15 * dom/ExceptionBase.h: 16 1 17 2016-07-15 Geoffrey Garen <ggaren@apple.com> 2 18 -
trunk/Source/WebCore/dom/ExceptionBase.cpp
r193428 r203309 38 38 , m_name(description.name) 39 39 , m_description(description.description) 40 , m_typeName(description.typeName) 41 , m_messageSource(messageSource) 40 42 { 41 43 if (messageSource == MessageSource::UseDescription) { … … 52 54 String ExceptionBase::toString() const 53 55 { 54 return "Error: " + m_message; 56 if (m_messageSource != MessageSource::UseDescription) 57 return makeString("Error: ", m_message); 58 59 String lastComponent; 60 if (!m_description.isEmpty()) 61 lastComponent = makeString(": ", m_description); 62 63 if (m_name.isEmpty()) 64 return makeString(m_typeName, " Exception", m_code ? makeString(" ", String::number(m_code)) : "", lastComponent); 65 66 return makeString(m_name, " (", m_typeName, " Exception", m_code ? makeString(" ", String::number(m_code)) : "", ")", lastComponent); 55 67 } 56 68 -
trunk/Source/WebCore/dom/ExceptionBase.h
r193428 r203309 59 59 String m_message; 60 60 String m_description; 61 String m_typeName; 62 MessageSource m_messageSource; 61 63 }; 62 64
Note:
See TracChangeset
for help on using the changeset viewer.